Class LinearVariable<CONSTANTS extends IConstants>
java.lang.Object
org.optsol.jmip.core.model.variables.AbstractVariable<com.google.ortools.linearsolver.MPSolver,com.google.ortools.linearsolver.MPVariable,CONSTANTS>
org.optsol.jmip.linearsolver.model.variables.LinearVariable<CONSTANTS>
- All Implemented Interfaces:
IVariable<CONSTANTS,,com.google.ortools.linearsolver.MPSolver, com.google.ortools.linearsolver.MPVariable> IVariableProvider<com.google.ortools.linearsolver.MPVariable>
public class LinearVariable<CONSTANTS extends IConstants>
extends AbstractVariable<com.google.ortools.linearsolver.MPSolver,com.google.ortools.linearsolver.MPVariable,CONSTANTS>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classLinearVariable.Builder<CONSTANTS extends IConstants>Nested classes/interfaces inherited from class org.optsol.jmip.core.model.variables.AbstractVariable
AbstractVariable.AbstractBuilder<SOLVER,VARCLASS, CONSTANTS extends IConstants>, AbstractVariable.VarKey -
Field Summary
Fields inherited from class org.optsol.jmip.core.model.variables.AbstractVariable
variables -
Method Summary
Modifier and TypeMethodDescriptionprotected com.google.ortools.linearsolver.MPVariablecreateIntVar(AbstractVariable.VarKey varKey, com.google.ortools.linearsolver.MPSolver solver, Double upperBound, Double lowerBound) protected com.google.ortools.linearsolver.MPVariablecreateNumVar(AbstractVariable.VarKey varKey, com.google.ortools.linearsolver.MPSolver solver, Double upperBound, Double lowerBound) protected doublegetReducedCostOfVar(com.google.ortools.linearsolver.MPSolver solver, com.google.ortools.linearsolver.MPVariable var) protected doublegetValueOfVar(com.google.ortools.linearsolver.MPSolver solver, com.google.ortools.linearsolver.MPVariable var) protected voidupdateBoundsOfVar(com.google.ortools.linearsolver.MPVariable var, com.google.ortools.linearsolver.MPSolver mpSolver, Double upperBound, Double lowerBound) Methods inherited from class org.optsol.jmip.core.model.variables.AbstractVariable
existsVarGroupName, getDimOfVarGroup, getReducedCostOfVar, getReducedCostOfVarGroup1D, getReducedCostOfVarGroup2D, getReducedCostOfVarGroup3D, getReducedCostOfVarGroup4D, getReducedCostOfVarGroupAsMap, getValueOfVarAsBool, getValueOfVarAsInt, getValueOfVarAsReal, getValuesOfVarGroup1DAsBool, getValuesOfVarGroup1DAsInt, getValuesOfVarGroup1DAsReal, getValuesOfVarGroup2DAsBool, getValuesOfVarGroup2DAsInt, getValuesOfVarGroup2DAsReal, getValuesOfVarGroup3DAsBool, getValuesOfVarGroup3DAsInt, getValuesOfVarGroup3DAsReal, getValuesOfVarGroup4DAsBool, getValuesOfVarGroup4DAsInt, getValuesOfVarGroup4DAsReal, getValuesOfVarGroupAsBooleanMap, getValuesOfVarGroupAsDoubleMap, getValuesOfVarGroupAsIntegerMap, getVar, getVar, setSolver, updateVariables
-
Method Details
-
createIntVar
protected com.google.ortools.linearsolver.MPVariable createIntVar(AbstractVariable.VarKey varKey, com.google.ortools.linearsolver.MPSolver solver, Double upperBound, Double lowerBound) - Specified by:
createIntVarin classAbstractVariable<com.google.ortools.linearsolver.MPSolver,com.google.ortools.linearsolver.MPVariable, CONSTANTS extends IConstants>
-
createNumVar
protected com.google.ortools.linearsolver.MPVariable createNumVar(AbstractVariable.VarKey varKey, com.google.ortools.linearsolver.MPSolver solver, Double upperBound, Double lowerBound) - Specified by:
createNumVarin classAbstractVariable<com.google.ortools.linearsolver.MPSolver,com.google.ortools.linearsolver.MPVariable, CONSTANTS extends IConstants>
-
updateBoundsOfVar
protected void updateBoundsOfVar(com.google.ortools.linearsolver.MPVariable var, com.google.ortools.linearsolver.MPSolver mpSolver, Double upperBound, Double lowerBound) throws Exception - Specified by:
updateBoundsOfVarin classAbstractVariable<com.google.ortools.linearsolver.MPSolver,com.google.ortools.linearsolver.MPVariable, CONSTANTS extends IConstants> - Throws:
Exception
-
getValueOfVar
protected double getValueOfVar(com.google.ortools.linearsolver.MPSolver solver, com.google.ortools.linearsolver.MPVariable var) - Specified by:
getValueOfVarin classAbstractVariable<com.google.ortools.linearsolver.MPSolver,com.google.ortools.linearsolver.MPVariable, CONSTANTS extends IConstants>
-
getReducedCostOfVar
protected double getReducedCostOfVar(com.google.ortools.linearsolver.MPSolver solver, com.google.ortools.linearsolver.MPVariable var) - Specified by:
getReducedCostOfVarin classAbstractVariable<com.google.ortools.linearsolver.MPSolver,com.google.ortools.linearsolver.MPVariable, CONSTANTS extends IConstants>
-