The following example first calls the Xpress-SLP maximization procedure to solve the linear relaxation and
then the mixed integer optimizer to solve the integer problem.
SLPglobal can only be used after a call to
SLPmaximize or
SLPminimize to
solve the linear relaxation of the problem. If a problem is known to be an integer problem, then
SLPmaximize
and
SLPminimize automatically include the
"l" (linear relaxation) option which therefore
does not have to be explicitly included.
SLPglobal can be called automatically after the linear relaxation by including the
"g" option for
SLPmaximize or
SLPminimize.