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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidconfigureObjective(com.google.ortools.linearsolver.MPObjective objective, CONSTANTS constants, IVariableProvider<com.google.ortools.linearsolver.MPVariable> variables) protected final com.google.ortools.linearsolver.MPObjectivegenerateObjective(com.google.ortools.linearsolver.MPSolver solver, CONSTANTS constants, IVariableProvider<com.google.ortools.linearsolver.MPVariable> variables) protected final voidremoveObjective(com.google.ortools.linearsolver.MPSolver solver, com.google.ortools.linearsolver.MPObjective objective) Methods inherited from class org.optsol.jmip.core.model.objective.AbstractObjective
createAndAddOrUpdateObjective, getObjectiveName
-
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:
generateObjectivein classAbstractObjective<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:
removeObjectivein classAbstractObjective<com.google.ortools.linearsolver.MPSolver,CONSTANTS extends IConstants, com.google.ortools.linearsolver.MPVariable, com.google.ortools.linearsolver.MPObjective> - Throws:
Exception
-