Click or drag to resize

XPRBprobsetSense Method

Set the sense of the objective function. The objective sense is set to minimization by default.

Namespace: BCL
Assembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntax
public int setSense(
	int dir
)

Parameters

dir  Int32
The sense of the problem solution to search for. Possible values:
  • BCLconstant.XPRB_MAXIM – Maximize the objective.
  • BCLconstant.XPRB_MINIM – Minimize the objective.

Return Value

Int32
Example
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, xbfixbv.cs and xbrecurs.cs in the Advanced Examples folder. foliolp.cs, xbcutex.cs, xbexpl1.cs, xbexpl1i.cs, xbqprl2.cs and xbexpl3.cs in the User's Guide Examples folder.
See Also