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

« Previous « Start » Next »

2  Using the Matlab Interface

The main routines in the 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 solvers should be called with the driver routine tomRun. Following is an example on how to call BARNLP in the TOMLAB /BARNLP package.
Prob = conAssign( ... );           % Assigning the problem.
Result = tomRun('barnlp', Prob, 1) % Calls the solver and prints the results.

The interface routines.
Function Description Section
TOMLAB /SPRNLP
 
sprnlpTL TOMLAB routine for sparse nonlinear programming. The interface routine called by the TOMLAB driver routine tomRun. This routine then calls bosnlpTL.m. 3.1
sprlsTL TOMLAB routine for sparse constrained nonlinear least squares. The interface routine called by the TOMLAB driver routine tomRun. This routine then calls boslsTL.m. 3.2
sprqpTL TOMLAB routine for sparse quadratic programming. The interface routine called by the TOMLAB driver routine tomRun. This routine then calls bosqpTL.m. 3.3
TOMLAB /BARNLP
 
barnlpTL TOMLAB routine for sparse barrier nonlinear programming. The interface routine called by the TOMLAB driver routine tomRun. This routine then calls bosnlpTL.m. 4.1
barlsTL TOMLAB routine for sparse barrier constrained nonlinear least squares. The interface routine called by the TOMLAB driver routine tomRun. This routine then calls boslsTL.m. 4.2
barqpTL TOMLAB routine for sparse barrier quadratic programming. The interface routine called by the TOMLAB driver routine tomRun. This routine then calls bosqpTL.m. 4.3
Other interface routines
bosnlpTL TOMLAB interface routine for sparse barrier nonlinear programming. This routine checks the problem and calls bos.dll.  
boslsTL TOMLAB interface routine for sparse constrained nonlinear least squares. Same functionality as bosnlpTL.  
bosqpTL TOMLAB interface routine for sparse quadratic programming. Same functionality as bosnlpTL.  
bos_ There is a number of routines (starting with bos_) in /tomlab/lib that handle all the interfacing.  

The SPRNLP and BARNLP control parameters are possible to set from TOMLAB.

The user sets fields in a structure called Prob.BOS.options. The following example shows how to set the maximum number of function evaluations.
Prob.BOS.options.MAXNFE = 1000; % Maximum number of function evaluations

« Previous « Start » Next »