In this section we discuss how to install and setup the MOSEK Fusion API for Matlab.
Before running this MOSEK interface please make sure that you:
The Fusion API for Matlab can be used with MATLAB version r2014a or newer, with enabled support for Java version 1.7 or later.
The files in Fusion API for Matlab are organized as reported in Table 4.1.
||Libraries and jar file||
<MSKHOME>is the folder in which the MOSEK package has been installed,
<PLATFORM>is the actual platform among those supported by MOSEK, i.e.
Setting up the paths
To execute a MATLAB script using Fusion API for Matlab the correct path to
<JARDIR>/mosekmatlab.jar must be provided in MATLAB‘s Java classpath. This can be set by running the following command from MATLAB:
Alternatively, this path may be set from the command line or it can be added to MATLAB permanently using the configuration file
startup.m or from the FileSet Path menu item. We refer to MATLAB documentation for details.
4.1 Building Examples and Testing the Installation¶
This section describes how to verify that MOSEK has been installed correctly, and how to build and execute the Matlab examples distributed with MOSEK.
To compile the example
lo1.m distributed with MOSEK:
Open MATLAB, set the Java library path and go to the examples directory
Execute the function by typing:
Other example programs can be tested in a similar fashion.