Class LinearObjective<CONSTANTS extends IConstants>

java.lang.Object
org.optsol.jmip.core.model.objective.AbstractObjective<com.google.ortools.linearsolver.MPSolver,CONSTANTS,com.google.ortools.linearsolver.MPVariable,com.google.ortools.linearsolver.MPObjective>
org.optsol.jmip.linearsolver.model.objective.LinearObjective<CONSTANTS>
All Implemented Interfaces:
IObjective<CONSTANTS,com.google.ortools.linearsolver.MPVariable,com.google.ortools.linearsolver.MPSolver>

public abstract class LinearObjective<CONSTANTS extends IConstants> extends AbstractObjective<com.google.ortools.linearsolver.MPSolver,CONSTANTS,com.google.ortools.linearsolver.MPVariable,com.google.ortools.linearsolver.MPObjective>
  • Constructor Details

    • LinearObjective

      public LinearObjective()
  • Method Details

    • generateObjective

      protected final com.google.ortools.linearsolver.MPObjective generateObjective(com.google.ortools.linearsolver.MPSolver solver, CONSTANTS constants, IVariableProvider<com.google.ortools.linearsolver.MPVariable> variables) throws Exception
      Specified by:
      generateObjective in class AbstractObjective<com.google.ortools.linearsolver.MPSolver,CONSTANTS extends IConstants,com.google.ortools.linearsolver.MPVariable,com.google.ortools.linearsolver.MPObjective>
      Throws:
      Exception
    • configureObjective

      protected abstract void configureObjective(com.google.ortools.linearsolver.MPObjective objective, CONSTANTS constants, IVariableProvider<com.google.ortools.linearsolver.MPVariable> variables) throws Exception
      Throws:
      Exception
    • removeObjective

      protected final void removeObjective(com.google.ortools.linearsolver.MPSolver solver, com.google.ortools.linearsolver.MPObjective objective) throws Exception
      Specified by:
      removeObjective in class AbstractObjective<com.google.ortools.linearsolver.MPSolver,CONSTANTS extends IConstants,com.google.ortools.linearsolver.MPVariable,com.google.ortools.linearsolver.MPObjective>
      Throws:
      Exception