SLPmaximize, SLPminimize


Purpose
Maximize or minimize the current SLP problem
Synopsis
procedure SLPmaximise([Objective:linctr|genctr] [Options:string])
procedure SLPminimise([Objective:linctr|genctr] [Options:string])
procedure SLPmaximize([Objective:linctr|genctr] [Options:string])
procedure SLPminimize([Objective:linctr|genctr] [Options:string])
Arguments
Objective 
The name of the objective function. See SLPloadprob for more details.
Options 
string containing any options as used in the Xpress-SLP or Xpress-Optimizer maximize or minimize procedures. In addition, the following are specific to SLP:
Perform SLPglobal immediately after a successful optimization
Use the linear optimizer even if the objective is quadratic
Example
The following examples load a nonlinear problem and then maximize it using the Newton barrier code in the Xpress-SLP optimizer:
!(1) Separate load and solve
     SLPloadprob(OBJ)
     SLPmaximize("b")

!(2) Combined load and solve
     SLPmaximize(OBJ,"b")
Further information

These functions call Xpress-SLP to optimize the problem previously loaded by SLPloadprob.

If Objective is omitted, SLPloadprob must be called explicitly.

If SLPloadprob is called explicitly, then parameter changes and other functions and procedures can be called after the problem is loaded and before it is optimized. Otherwise, all settings have to be made before the call to optimize.

Both the English and American spellings are accepted.

Note that the linear procedures maximize and minimize will not solve a nonlinear problem. Instead, they will solve only the linear part of the nonlinear problem. This can be useful because if the linear part of the problem is infeasible, there is no point in trying to solve the whole problem.


Related topics
SLPglobal, SLPloadprob


If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.