Initializing help system before first use

getSense Method

Get the sense of the objective function.

Namespace:   BCL
Assembly:  xprbdn (in xprbdn.dll) Version: 37.1.1.0
Syntax
C#
VB
public int getSense()

Return Value

Type:  Int32
The 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.
Examples
XPRBprob 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