|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object scpsolver.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()
Constraint
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.
getName
in interface Constraint
public boolean isSatisfiedBy(double[] x)
Constraint
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.
isSatisfiedBy
in interface Constraint
x
- 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 QuadraticConstraint
public double[] getC()
getC
in interface QuadraticConstraint
public Matrix getQ()
getQ
in interface QuadraticConstraint
public double getT()
getT
in interface QuadraticConstraint
public SparseVector getCSparse()
getCSparse
in interface QuadraticConstraint
public double getRHS()
Constraint
getRHS
in interface Constraint
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |