Get the sense of the objective function.
Namespace: BCLAssembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
SyntaxPublic Function getSense As Integer
Return Value
Int32The sense of the current problem's objective function. Possible values:
- BCLconstant.XPRB_MAXIM – Maximize the objective.
- BCLconstant.XPRB_MINIM – Minimize the objective.
- -1 – In the case of an error.
ExampleXPRBprob prob = new XPRBprob("NewProb");
...
if(prob.getSense() == BCLconstant.XPRB_MAXIM)
System.Console.Writeln("A maximization.");
else if(prob.getSense() == BCLconstant.XPRB_MINIM)
System.Console.Writeln("A minimization.");
else
System.Console.Writeln("Error in getSense().");
See Also