Loading...
Searching...
No Matches
com.gams.api.GAMSOptions.EIntVarUp Enum Reference

Set mode for default upper bounds on integer variables. More...

Public Member Functions

int value ()
 Get the int value of this enumerated IntVarUp.
 

Static Public Member Functions

static EIntVarUp lookup (int val)
 Lookup all intVarUps.
 

Public Attributes

 INF =(0)
 Set default upper bound for integer variables to +INF.
 
 Pass100ToSolver =(1)
 Pass a value of 100 instead of +INF to the solver as upper bound for integer variables.
 
 INFandLog =(2)
 Same as 0 but writes a message to the log if the level of an integer variable is greater than 100.
 
 Pass100ToSolverAndError =(3)
 Same as 2 but issues an execution error if the level of an integer variable is greater than 100.
 
 UndefinedIntVarUp =(4)
 Undefined IntVarUp.
 

Detailed Description

Set mode for default upper bounds on integer variables.

Member Function Documentation

◆ lookup()

static EIntVarUp com.gams.api.GAMSOptions.EIntVarUp.lookup ( int  val)
static

Lookup all intVarUps.

Parameters
valan int value to lookup
Returns
the enumerated IntVarUp that has the specified value, or UndefinedIntVarUp if the specified value is not found.

◆ value()

int com.gams.api.GAMSOptions.EIntVarUp.value ( )

Get the int value of this enumerated IntVarUp.

Returns
the intVarUp value

Member Data Documentation

◆ INF

com.gams.api.GAMSOptions.EIntVarUp.INF =(0)

Set default upper bound for integer variables to +INF.

◆ INFandLog

com.gams.api.GAMSOptions.EIntVarUp.INFandLog =(2)

Same as 0 but writes a message to the log if the level of an integer variable is greater than 100.

◆ Pass100ToSolver

com.gams.api.GAMSOptions.EIntVarUp.Pass100ToSolver =(1)

Pass a value of 100 instead of +INF to the solver as upper bound for integer variables.

◆ Pass100ToSolverAndError

com.gams.api.GAMSOptions.EIntVarUp.Pass100ToSolverAndError =(3)

Same as 2 but issues an execution error if the level of an integer variable is greater than 100.

◆ UndefinedIntVarUp

com.gams.api.GAMSOptions.EIntVarUp.UndefinedIntVarUp =(4)

Undefined IntVarUp.