SOL Using the Matlab Interface

From TomWiki

Jump to: navigation, 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
minosThe layer one Matlab interface routine, calls the MEX-file interface minos.dll
minosTLThe layer two interface routine called by the TOMLAB driver routine tomRun. This routine then calls minos.m.
minosLPTLThe 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.
minosQPTLThe 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
lpoptThe layer one Matlab interface routine, calls the MEX-file interface lpopt.dll
lpoptTLThe layer two interface routine called by the TOMLAB driver routine tomRun. This routine then calls lpopt.m.
qpoptThe layer one Matlab interface routine, calls the MEX-file interface qpopt.dll
qpoptTLThe layer two interface routine called by the TOMLAB driver routine tomRun. This routine then calls qpopt.m.
lssolThe layer one Matlab interface routine, calls the MEX-file interface lssol.dll
lssolTLThe layer two interface routine called by the TOMLAB driver routine tomRun. This routine then calls lssol.m.
nlssolThe layer one Matlab interface routine, calls the MEX-file interface nlssol.dll
nlssolTLThe layer two interface routine called by the TOMLAB driver routine tomRun. This routine then calls nlssol.m.
npsolThe layer one Matlab interface routine, calls the MEX-file interface npsol.dll
npsolTLThe layer two interface routine called by the TOMLAB driver routine tomRun. This routine then calls npsol.m.
snoptThe layer one Matlab interface routine, calls the MEX-file interface snopt.dll
snoptTLThe layer two interface routine called by the TOMLAB driver routine tomRun. This routine then calls snopt.m.
sqoptThe layer one Matlab interface routine, calls the MEX-file interface sqopt.dll
sqoptTLThe 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
Personal tools