public class LpProblem
Linear programming problem with given variables, constraints and a function to be maximized.
All variables mentioned in constraints and function must be present in variables list.
| Constructor and Description |
|---|
LpProblem(java.util.List<net.ldvsoft.simplex_lp_solver.LpVariable> variables,
java.util.List<net.ldvsoft.simplex_lp_solver.LpConstraint> constraints,
LpFunction function)
Linear programming problem with given variables, constraints and a function to be maximized.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<net.ldvsoft.simplex_lp_solver.LpVariable> |
component1()
Variables of problem.
|
java.util.List<net.ldvsoft.simplex_lp_solver.LpConstraint> |
component2()
Constraints of problem.
|
LpFunction |
component3()
Function to optimize of problem.
|
LpProblem |
copy(java.util.List<net.ldvsoft.simplex_lp_solver.LpVariable> variables,
java.util.List<net.ldvsoft.simplex_lp_solver.LpConstraint> constraints,
LpFunction function)
Linear programming problem with given variables, constraints and a function to be maximized.
|
boolean |
equals(java.lang.Object p) |
java.util.List<net.ldvsoft.simplex_lp_solver.LpConstraint> |
getConstraints()
Constraints of problem.
|
LpFunction |
getFunction()
Function to optimize of problem.
|
java.util.List<net.ldvsoft.simplex_lp_solver.LpVariable> |
getVariables()
Variables of problem.
|
int |
hashCode() |
java.lang.String |
toString() |
public LpProblem(java.util.List<net.ldvsoft.simplex_lp_solver.LpVariable> variables,
java.util.List<net.ldvsoft.simplex_lp_solver.LpConstraint> constraints,
LpFunction function)
Linear programming problem with given variables, constraints and a function to be maximized.
All variables mentioned in constraints and function must be present in variables list.
variables - Variables of problem.constraints - Constraints of problem.function - Function to optimize of problem.variables - Variables of problem.constraints - Constraints of problem.function - Function to optimize of problem.public java.util.List<net.ldvsoft.simplex_lp_solver.LpVariable> getVariables()
Variables of problem.
public java.util.List<net.ldvsoft.simplex_lp_solver.LpConstraint> getConstraints()
Constraints of problem.
public LpFunction getFunction()
Function to optimize of problem.
public java.util.List<net.ldvsoft.simplex_lp_solver.LpVariable> component1()
Variables of problem.
public java.util.List<net.ldvsoft.simplex_lp_solver.LpConstraint> component2()
Constraints of problem.
public LpFunction component3()
Function to optimize of problem.
public LpProblem copy(java.util.List<net.ldvsoft.simplex_lp_solver.LpVariable> variables, java.util.List<net.ldvsoft.simplex_lp_solver.LpConstraint> constraints, LpFunction function)
Linear programming problem with given variables, constraints and a function to be maximized.
All variables mentioned in constraints and function must be present in variables list.
variables - Variables of problem.constraints - Constraints of problem.function - Function to optimize of problem.public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)