Initializing help system before first use

solve Method (String)

Note: This API is now obsolete.

Call Xpress-Optimizer solution algorithm. 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. The sense of the optimization (default: minimization) can be changed with method setSense(int). 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.InitGlobal() (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: 4.0.0.0
Syntax
C#
VB
[ObsoleteAttribute("Use lpOptimize and mipOptimize methods instead")]
public int solve(
	string alg
)

Parameters

alg
Type:  SystemString
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

Type:  Int32
0 on success, 1 otherwise.
Examples
xbburg.cs, xbburgi.cs, xbcoco.cs, xbcoco1.cs, xbcoco2.cs, xbcoco3.cs, xbcontr1.cs, xbdelvr.cs, xbexpl.cs, xbportf.cs and xbpurch.cs in the Introductory Examples folder. xbcutstk.cs, xbels.cs, xbelsc.cs, xbfixbv.cs and xbrecurs.cs in the Advanced Examples folder. xbcutex.cs, xbexpl1.cs, xbexpl1i.cs, xbexpl2.cs, xbqprl2.cs and xbexpl3.cs in teh User's Guide Examples folder.
See Also

© 2001-2019 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.