|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectscpsolver.constraints.QuadraticSmallerThanEqualsContraint
public class QuadraticSmallerThanEqualsContraint
| Constructor Summary | |
|---|---|
QuadraticSmallerThanEqualsContraint(double[][] pq,
double[] c,
double t,
java.lang.String name)
|
|
QuadraticSmallerThanEqualsContraint(Matrix q,
SparseVector c,
double t,
java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
addToQuadraticProgramSolver(QuadraticProgramSolver solver)
|
double[] |
getC()
|
SparseVector |
getCSparse()
|
java.lang.String |
getName()
Returns the name of a specific constraint. |
Matrix |
getQ()
|
double |
getRHS()
Returns the right hand side. |
double |
getT()
|
boolean |
isSatisfiedBy(double[] x)
Evaluates the constraint at input value x and checks if the constraint
holds. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QuadraticSmallerThanEqualsContraint(Matrix q,
SparseVector c,
double t,
java.lang.String name)
public QuadraticSmallerThanEqualsContraint(double[][] pq,
double[] c,
double t,
java.lang.String name)
| Method Detail |
|---|
public java.lang.String getName()
ConstraintWhen 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.
getName in interface Constraintpublic boolean isSatisfiedBy(double[] x)
Constraintx 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.
isSatisfiedBy in interface Constraintx - the position, where the constraint is to be evaluated
true if input value x satisfies this constraint,
false otherwisepublic void addToQuadraticProgramSolver(QuadraticProgramSolver solver)
addToQuadraticProgramSolver in interface QuadraticConstraintpublic double[] getC()
getC in interface QuadraticConstraintpublic Matrix getQ()
getQ in interface QuadraticConstraintpublic double getT()
getT in interface QuadraticConstraintpublic SparseVector getCSparse()
getCSparse in interface QuadraticConstraintpublic double getRHS()
Constraint
getRHS in interface Constraint
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||