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>
  • 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:
      createIntVar in class AbstractVariable<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:
      createNumVar in class AbstractVariable<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:
      updateBoundsOfVar in class AbstractVariable<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:
      getValueOfVar in class AbstractVariable<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:
      getReducedCostOfVar in class AbstractVariable<com.google.ortools.linearsolver.MPSolver,com.google.ortools.linearsolver.MPVariable,CONSTANTS extends IConstants>