Package | Description |
---|---|
edu.harvard.econcs.jopt.solver | |
edu.harvard.econcs.jopt.solver.mip |
Modifier and Type | Method and Description |
---|---|
List<Constraint> |
IMIP.getConstraints() |
Collection<Constraint> |
MIPInfeasibleException.getInfeasibleConstraints() |
Modifier and Type | Method and Description |
---|---|
void |
IMIP.add(Constraint constraint)
Adds a new constraint
|
double |
IMIPResult.getDual(Constraint constraint)
Returns the dual of a constraint that was added with IMIP.add(constraint, constraintId)
|
boolean |
IMIP.remove(Constraint constraint)
removes a constraint from the formulation.
|
Constructor and Description |
---|
MIPInfeasibleException(Map<Variable,MIPInfeasibleException.Cause> infeasibleVariables,
Collection<Constraint> infeasibleConstraints) |
Modifier and Type | Method and Description |
---|---|
Constraint |
MIPWrapper.beginNewEQConstraint(double constant)
Creates a new Less Equals constraint
|
Constraint |
MIPWrapper.beginNewGEQConstraint(double constant)
Creates a new Less Than or Equals constraint
|
Constraint |
MIPWrapper.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. |
Constraint |
Constraint.typedClone() |
Modifier and Type | Method and Description |
---|---|
List<Constraint> |
MIP.getConstraints() |
Modifier and Type | Method and Description |
---|---|
void |
MIP.add(Constraint constraint) |
void |
MIPWrapper.endConstraint(Constraint constraint)
Call this when you are done building up a constraint.
|
double |
MIPResult.getDual(Constraint constraint) |
String |
MIPResult.ConstraintPrinter.print(Constraint c,
IMIPResult result) |
boolean |
MIP.remove(Constraint constraint) |
Constructor and Description |
---|
MIPResult(double objectiveValue,
Map<String,Double> values,
Map<Constraint,Double> constraintidsToDuals) |
Copyright © 2017. All rights reserved.