public class MIPWrapper extends MIP
Modifier and Type | Method and Description |
---|---|
Constraint |
beginNewEQConstraint(double constant)
Creates a new Less Equals constraint
|
Constraint |
beginNewGEQConstraint(double constant)
Creates a new Less Than or Equals constraint
|
Constraint |
beginNewLEQConstraint(double constant)
Creates a new Less Than or Equals constraint
This example makes a constraint "-2y <= 3"
(assumes earlier call like:MIPWrapper mip = makeNewMaxMIP(), and a Variable y) Constraint c = beginNewLEQConstraint(3); c.addTerm(y, -2); mip.endConstraint(c); * @param constant is the value that is on the right hand side of the equation. |
void |
endConstraint(Constraint constraint)
Call this when you are done building up a constraint.
|
static MIPWrapper |
makeMIPWithoutObjective(IMIP mip) |
Variable |
makeNewBooleanVar(String name)
Makes a new indicator (boolean) variable that can range from 0 to 1
|
Variable |
makeNewDoubleVar(String name)
Makes a new double variable that can range from -inf to inf
|
Variable |
makeNewIntegerVar(String name)
Makes a new Integer variable that can range from -inf to inf
|
static MIPWrapper |
makeNewMaxMIP()
Create a new MIP that is has a MAXimization as it's objective function.
|
static MIPWrapper |
makeNewMinMIP()
Create a new MIP that is has a MINimization as it's objective function.
|
add, add, addObjectiveTerm, addObjectiveTerm, addObjectiveTerm, addObjectiveTerm, clearObjective, clearProposedValues, clearSolveParams, clone, getBooleanSolveParam, getBooleanSolveParam, getBooleanSolveParam, getConstraints, getDoubleSolveParam, getDoubleSolveParam, getDoubleSolveParam, getIntSolveParam, getIntSolveParam, getIntSolveParam, getLinearObjectiveTerms, getNumConstraints, getNumVars, getObjectiveTerms, getProposedBooleanValue, getProposedDoubleValue, getProposedIntValue, getProposedValuesMap, getQuadraticObjectiveTerms, getSolveParam, getSortedLinearObjectiveTerms, getSortedQuadraticObjectiveTerms, getSpecifiedSolveParams, getStringSolveParam, getStringSolveParam, getVar, getVars, getVarsWithProposedValues, isObjectiveMax, isObjectiveMin, isSolveParamSpecified, proposeValue, proposeValue, proposeValue, remove, remove, removeObjectiveTerm, removeObjectiveTerm, removeProposedValue, resetDefaultSolveParams, setObjectiveMax, setProposedValues, setSolveParam, setSolveParam, toString, typedClone
public static MIPWrapper makeNewMaxMIP()
public static MIPWrapper makeNewMinMIP()
public static MIPWrapper makeMIPWithoutObjective(IMIP mip)
mip
- public Variable makeNewDoubleVar(String name)
public Variable makeNewIntegerVar(String name)
public Variable makeNewBooleanVar(String name)
public void endConstraint(Constraint constraint)
public Constraint beginNewLEQConstraint(double constant)
public Constraint beginNewGEQConstraint(double constant)
beginNewLEQConstraint
public Constraint beginNewEQConstraint(double constant)
beginNewLEQConstraint
Copyright © 2017. All rights reserved.