|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LinearConstraint
Constraint format of a linear program.
Method Summary | |
---|---|
void |
addToLinearProgramSolver(LinearProgramSolver solver)
Adds one line representing this constraint to the constraint matrix of a given solver. |
double[] |
getC()
Returns the weight vector of this constraint. |
SparseVector |
getCSparse()
Returns a sparse representation of the weight vector. |
double |
getT()
Returns the target value of this constraint. |
Methods inherited from interface scpsolver.constraints.Constraint |
---|
getName, getRHS, isSatisfiedBy |
Method Detail |
---|
void addToLinearProgramSolver(LinearProgramSolver solver)
solver
- an instance of a linear program solverdouble[] getC()
For easier constraint manipulation, SCPSolver saves not one big
constraint matrix as the formal description of a linear problem
suggests, but creates a line for line representation of this
matrix. Therefore, a formal description of this vector is the
i
-th line of A
, if this constraint
is the i
-th constraint.
double getT()
SparseVector getCSparse()
getC
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |