|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Constraint
Basic format for a constraint of a constrained mathematical optimization problem.
The most common constraints are the LinearConstraint
s, valid for the
LinearProgram
problem description.
Method Summary | |
---|---|
java.lang.String |
getName()
Returns the name of a specific constraint. |
double |
getRHS()
Returns the right hand side. |
boolean |
isSatisfiedBy(double[] x)
Evaluates the constraint at input value x and checks if the constraint
holds. |
Method Detail |
---|
java.lang.String getName()
When creating a new constraint for a problem, a name can be given to this constraint to identify it later and see, which specific constrains hold and maybe which contradict each other.
Please note: unlike Problem
, where the name describes the type of problem
instead of the actual instance, here the name the describes the actual instance and not
the generic type.
boolean isSatisfiedBy(double[] x)
x
and checks if the constraint
holds. Returns true
if input x
satisfies the constraint,
false
otherwise. The input dimension (i.e. the array.length
), must be the same
as the target function.
x
- the position, where the constraint is to be evaluated
true
if input value x
satisfies this constraint,
false
otherwisedouble getRHS()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |