Set the sense of the objective function. The objective sense is set to minimization by default.
Namespace: BCLAssembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntaxpublic int setSense(
int dir
)
Public Function setSense (
dir As Integer
) As Integer
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
Examplexbburg.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