Click or drag to resize

XPRBprobmaxim(String) Method

Use setSense(BCLconstant.XPRB_MAXIM) followed by lpOptimize and mipOptimize methods instead

Maximize a problem. This method selects and starts the Xpress-Optimizer solution algorithm. The characters indicating the algorithm choice may be combined where it makes sense, e.g. "dg". If the matrix loaded in Xpress-Optimizer does not correspond to the current problem definition it is regenerated automatically prior to the start of the algorithm. Before solving a problem, the objective function must be selected with setObj(). Note that if you use an incomplete global search you should finish your program with a call to the Xpress-Optimizer method XPRSprob.PostSolve() (see Xpress-Optimizer manual for details) in order to remove all search tree information that has been stored. Otherwise you may not be able to re-run your program.

Namespace: BCL
Assembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntax
[ObsoleteAttribute("Use setSense(BCLconstant.XPRB_MAXIM) followed by lpOptimize and mipOptimize methods instead")]
public int maxim(
	string alg
)

Parameters

alg  String
The string choice of solution algorithm. Possible values are:
  • "p" – Use primal simplex algorithm.
  • "d" – Use dual simplex algorithm.
  • "b" – Use Newton-Barrier algorithm.
  • "l" – Only solve the (relaxed) linear problem.
  • "g" – Solve the global (MIP) problem.
  • "" – No parameter, use the default setting (LP only).

Return Value

Int32
0 on success, 1 otherwise.
Example
xbchess.cs, xbworkrng.cs and xbworks.cs in the Introductory Examples folder. xbgoalobj.cs in the Advanced Examples folder. foliodata.cs, folioheur.cs, folioinit.cs, foliolp.cs, foliomip1.cs and foliomip2.cs in the User's Guide Examples folder.
See Also