Package | Description |
---|---|
edu.harvard.econcs.jopt.solver | |
edu.harvard.econcs.jopt.solver.mip |
Modifier and Type | Method and Description |
---|---|
Variable |
IMIP.getVar(String name) |
Modifier and Type | Method and Description |
---|---|
Set<Variable> |
MIPInfeasibleException.getInfeasibleVariables() |
Map<Variable,Object> |
IMIP.getProposedValuesMap()
useful for copying proposed var/vals to a new MIP
|
Map<String,Variable> |
IMIP.getVars() |
Set<Variable> |
IMIP.getVarsWithProposedValues()
useful for copying proposed var/vals to a new MIP
|
Modifier and Type | Method and Description |
---|---|
String |
IMIP.add(Variable var)
Adds a variable to the MIP formulation.
|
void |
IMIP.addObjectiveTerm(double coefficient,
Variable var)
Adds a Term to the objective function.
|
void |
IMIP.addObjectiveTerm(double coefficient,
Variable varA,
Variable varB)
Adds a Term to the objective function.
|
MIPInfeasibleException.Cause |
MIPInfeasibleException.getCause(Variable v) |
boolean |
IMIP.getProposedBooleanValue(Variable var)
returns the currently proposed value for Boolean variable var
|
double |
IMIP.getProposedDoubleValue(Variable var)
returns the currently proposed value for Double variable var
|
int |
IMIP.getProposedIntValue(Variable var)
returns the currently proposed value for Integer variable var
|
void |
IMIP.proposeValue(Variable var,
boolean value)
Sets proposed value for this variable
|
void |
IMIP.proposeValue(Variable var,
double value)
Sets proposed value for this variable
|
void |
IMIP.proposeValue(Variable var,
int value)
Sets proposed value for this variable
|
void |
IMIP.remove(Variable var)
Removes a variable from the MIP formulation.
|
void |
IMIP.removeProposedValue(Variable var)
Removes proposed value for this variable
|
Modifier and Type | Method and Description |
---|---|
void |
IMIP.setProposedValues(Map<Variable,Object> proposedValues)
useful for copying proposed var/vals to a new MIP
|
Constructor and Description |
---|
MIPInfeasibleException(Map<Variable,MIPInfeasibleException.Cause> infeasibleVariables,
Collection<Constraint> infeasibleConstraints) |
Modifier and Type | Method and Description |
---|---|
Variable |
MIP.getVar(String name) |
Variable |
MIPWrapper.makeNewBooleanVar(String name)
Makes a new indicator (boolean) variable that can range from 0 to 1
|
Variable |
MIPWrapper.makeNewDoubleVar(String name)
Makes a new double variable that can range from -inf to inf
|
Variable |
MIPWrapper.makeNewIntegerVar(String name)
Makes a new Integer variable that can range from -inf to inf
|
Variable |
Variable.typedClone() |
Modifier and Type | Method and Description |
---|---|
Map<Variable,Object> |
MIP.getProposedValuesMap()
useful for copying proposed var/vals to a new MIP
|
Map<String,Variable> |
MIP.getVars() |
Set<Variable> |
MIP.getVarsWithProposedValues()
useful for copying proposed var/vals to a new MIP
|
Modifier and Type | Method and Description |
---|---|
String |
MIP.add(Variable var) |
void |
MIP.addObjectiveTerm(double coefficient,
Variable var) |
void |
MIP.addObjectiveTerm(double coefficient,
Variable varA,
Variable varB) |
void |
Constraint.addTerm(double coefficient,
Variable var) |
void |
Constraint.addTerm(double coefficient,
Variable varA,
Variable varB) |
boolean |
MIP.getProposedBooleanValue(Variable var) |
double |
MIP.getProposedDoubleValue(Variable var) |
int |
MIP.getProposedIntValue(Variable var) |
double |
Solution.getValue(Variable variable) |
double |
MIPResult.getValue(Variable variable) |
double |
IntermediateSolution.getValue(Variable variable) |
void |
MIP.proposeValue(Variable var,
boolean value)
Sets proposed value for this variable
|
void |
MIP.proposeValue(Variable var,
double value)
Sets proposed value for this variable
|
void |
MIP.proposeValue(Variable var,
int value)
Sets proposed value for this variable
|
void |
MIP.remove(Variable var) |
void |
MIP.removeProposedValue(Variable var)
Removes proposed value for this variable
|
Modifier and Type | Method and Description |
---|---|
void |
MIP.setProposedValues(Map<Variable,Object> proposedValues)
useful for copying proposed var/vals to a new MIP
|
Constructor and Description |
---|
LinearTerm(double coefficient,
Variable var) |
QuadraticTerm(double coefficient,
Variable varA,
Variable varB) |
Copyright © 2017. All rights reserved.