public class LpExpression implements LpExpressionLike
Class storing linear expressions to be used in constraints or as a function in linear programming problem.
| Constructor and Description |
|---|
LpExpression(java.util.Map<net.ldvsoft.simplex_lp_solver.LpVariable,java.lang.Double> terms,
double free)
Class storing linear expressions to be used in constraints or as a function
in linear programming problem.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getFree()
Freestanding term.
|
java.util.Map<net.ldvsoft.simplex_lp_solver.LpVariable,java.lang.Double> |
getTerms()
Terms of linear expression
|
getFree, getTermspublic LpExpression(java.util.Map<net.ldvsoft.simplex_lp_solver.LpVariable,java.lang.Double> terms,
double free)
Class storing linear expressions to be used in constraints or as a function in linear programming problem.
terms - Terms of linear expression: mapping from variables to their coefficients.free - Freestanding term.