SOL Using the Matlab Interface

From TomWiki
Jump to navigationJump to search

Notice.png

This page is part of the SOL Manual. See SOL.

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

Table: The interface routines.

Function Description
minos The layer one Matlab interface routine, calls the MEX-file interface minos.dll
minosTL The layer two interface routine called by the TOMLAB driver routine tomRun. This routine then calls minos.m.
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.
minosQPTL The layer two TOMLAB interface routine that calls minosQPTL.m. Converts the input Prob format before calling minos.m and con- verts back to the output Result structure. This option only handles quadratic programming problems
lpopt The layer one Matlab interface routine, calls the MEX-file interface lpopt.dll
lpoptTL The layer two interface routine called by the TOMLAB driver routine tomRun. This routine then calls lpopt.m.
qpopt The layer one Matlab interface routine, calls the MEX-file interface qpopt.dll
qpoptTL The layer two interface routine called by the TOMLAB driver routine tomRun. This routine then calls qpopt.m.
lssol The layer one Matlab interface routine, calls the MEX-file interface lssol.dll
lssolTL The layer two interface routine called by the TOMLAB driver routine tomRun. This routine then calls lssol.m.
nlssol The layer one Matlab interface routine, calls the MEX-file interface nlssol.dll
nlssolTL The layer two interface routine called by the TOMLAB driver routine tomRun. This routine then calls nlssol.m.
npsol The layer one Matlab interface routine, calls the MEX-file interface npsol.dll
npsolTL The layer two interface routine called by the TOMLAB driver routine tomRun. This routine then calls npsol.m.
snopt The layer one Matlab interface routine, calls the MEX-file interface snopt.dll
snoptTL The layer two interface routine called by the TOMLAB driver routine tomRun. This routine then calls snopt.m.
sqopt The layer one Matlab interface routine, calls the MEX-file interface sqopt.dll
sqoptTL The layer two interface routine called by the TOMLAB driver routine tomRun. This routine then calls sqopt.m.

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