Modifier and Type | Method and Description |
---|---|
CLPVariable |
CLP.addVariable()
Add a new variable to the model
|
CLPVariable |
CLPVariable.bounds(double lb,
double ub)
Set variable bounds.
|
CLPVariable[] |
CLPVariableSet.build() |
CLPVariable |
CLPVariable.free()
Defines this vaiable as free, -inf <= x <= inf.
|
CLPVariable |
CLPVariable.lb(double value)
Set lower bound.
|
CLPVariable |
CLPVariable.name(java.lang.String name)
Variable name
|
CLPVariable |
CLPVariable.obj(double value)
Objective coefficient of this variable.
|
CLPVariable |
CLPVariable.ub(double value)
Set upper bound.
|
Modifier and Type | Method and Description |
---|---|
CLPExpression |
CLPExpression.add(CLPVariable... variable)
Add the sum of multiple variables.
|
CLPExpression |
CLPExpression.add(CLPVariable variable,
double value)
Add a new term to the expression.
|
CLPExpression |
CLPExpression.add(double[] values,
CLPVariable[] variables)
Add the sum of multiple terms.
|
CLPExpression |
CLPExpression.add(double value,
CLPVariable... variable)
Add the sum of multiple variables, each multiplied by the same scalar.
|
CLPExpression |
CLPExpression.add(double value,
CLPVariable variable)
Add a new term to the expression.
|
double |
CLP.getSolution(CLPVariable variable) |
void |
CLP.setConstraintCoefficient(CLPConstraint constraint,
CLPVariable variable,
java.lang.Double value)
Set the left-hand side coefficient of a constraint.
|
CLPConstraint |
CLPConstraint.setLhs(CLPVariable variable,
double value)
Set the left-hand side coefficient of the given variable.
|
void |
CLP.setObjectiveCoefficient(CLPVariable variable,
java.lang.Double value)
Set the objective coefficient of the given variable.
|
CLPObjective |
CLPObjective.setTerm(CLPVariable variable,
double value)
Set the coefficient of the given variable.
|
void |
CLP.setVariableBounds(CLPVariable variable,
java.lang.Double lb,
java.lang.Double ub)
Set variable bounds.
|
void |
CLP.setVariableLowerBound(CLPVariable variable,
java.lang.Double value)
Set variable lower bound.
|
void |
CLP.setVariableName(CLPVariable variable,
java.lang.String name) |
void |
CLP.setVariableUpperBound(CLPVariable variable,
java.lang.Double value)
Set variable upper bound.
|
Modifier and Type | Method and Description |
---|---|
CLPExpression |
CLPExpression.add(java.util.Map<CLPVariable,java.lang.Double> variables)
Add the sum of multiple terms.
|
CLPConstraint |
CLP.addConstraint(java.util.Map<CLPVariable,java.lang.Double> lhs,
CLPConstraint.TYPE type,
java.lang.Double rhs)
Add a new constraint to the model without using
CLP#buildExpression() . |
CLPObjective |
CLP.addObjective(java.util.Map<CLPVariable,java.lang.Double> terms,
java.lang.Double offset)
Set the objective function to the model without using
CLP#buildExpression() . |