# TOMLAB  
# REGISTER (TOMLAB)
# LOGIN  
# myTOMLAB
TOMLAB LOGO

« Previous « Start » Next »

2  Using the Matlab Interface

The main routines in the two-layer design of the interface are shown in Table 2. Page and section references are given to detailed descriptions on how to use the routines.

The interface routines.
Function Description Section
minos The layer one Matlab interface routine, calls the MEX-file interface minos.dll 3.1.1
minosTL The layer two interface routine called by the TOMLAB driver routine tomRun. This routine then calls minos.m. 3.1.2
minosLPTL The layer two TOMLAB interface routine that calls minosLPTL.m. Converts the input Prob format before calling minos.m and converts back to the output Result structure. This option only handles linear programming problems 3.2.1
minosQPTL The layer two TOMLAB interface routine that calls minosQPTL.m. Converts the input Prob format before calling minos.m and converts back to the output Result structure. This option only handles quadratic programming problems 3.3.1
lpopt The layer one Matlab interface routine, calls the MEX-file interface lpopt.dll 3.4.1
lpoptTL The layer two interface routine called by the TOMLAB driver routine tomRun. This routine then calls lpopt.m. 3.4.2
qpopt The layer one Matlab interface routine, calls the MEX-file interface qpopt.dll 3.5.1
qpoptTL The layer two interface routine called by the TOMLAB driver routine tomRun. This routine then calls qpopt.m. 3.5.2
lssol The layer one Matlab interface routine, calls the MEX-file interface lssol.dll 3.6.1
lssolTL The layer two interface routine called by the TOMLAB driver routine tomRun. This routine then calls lssol.m. 3.6.2
nlssol The layer one Matlab interface routine, calls the MEX-file interface nlssol.dll 3.7.1
nlssolTL The layer two interface routine called by the TOMLAB driver routine tomRun. This routine then calls nlssol.m. 3.7.2
npsol The layer one Matlab interface routine, calls the MEX-file interface npsol.dll 3.8.1
npsolTL The layer two interface routine called by the TOMLAB driver routine tomRun. This routine then calls npsol.m. 3.8.2
snopt The layer one Matlab interface routine, calls the MEX-file interface snopt.dll 3.9.1
snoptTL The layer two interface routine called by the TOMLAB driver routine tomRun. This routine then calls snopt.m. 3.9.2
sqopt The layer one Matlab interface routine, calls the MEX-file interface sqopt.dll 3.10.1
sqoptTL The layer two interface routine called by the TOMLAB driver routine tomRun. This routine then calls sqopt.m. 3.10.2

The SOL control parameters are possible to set from Matlab.

They can be set as inputs to the interface routine minos for example and the others. The user sets fields in a structure called Prob.SOL.optPar, where the subfield names follow the SOL standard for setting solver options. The following example shows how to set the maximum number of iterations.
Prob.SOL.optPar(30)   = 500;    % Setting maximum number of iterations

« Previous « Start » Next »