SOL Using the Matlab Interface: Difference between revisions
From TomWiki
Jump to navigationJump to search
(Created page with "{{Part Of Manual|title=the SOL Manual|link=SOL}} The main routines in the two-layer design of the interface are shown in <xr id="tab:interfaceRout" />. Page and section r...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Part Of Manual|title=the SOL Manual|link=[[SOL|SOL]]}} | {{Part Of Manual|title=the SOL Manual|link=[[SOL|SOL]]}} | ||
The main routines in the two-layer design of the interface are shown in | 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.==== | |||
{| class="wikitable" | {| class="wikitable" | ||
!Function | !Function | ||
!Description | !Description | ||
|-valign="top" | |-valign="top" | ||
|''minos''||The layer one Matlab interface routine, calls the MEX-file interface ''minos.dll'' | |''minos''||The layer one Matlab interface routine, calls the MEX-file interface ''minos.dll'' | ||
Line 44: | Line 44: | ||
|''sqoptTL''||The layer two interface routine called by the TOMLAB driver routine ''tomRun''. This routine then calls ''sqopt.m''. | |''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. | The SOL control parameters are possible to set from Matlab. |
Latest revision as of 12:54, 22 January 2012
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