scpsolver.constraints
Class StochasticBiggerThanEqualsConstraint
java.lang.Object
scpsolver.constraints.StochasticAbstractConstraint
scpsolver.constraints.StochasticBiggerThanEqualsConstraint
- All Implemented Interfaces:
- Constraint, StochasticConstraint
public class StochasticBiggerThanEqualsConstraint
- extends StochasticAbstractConstraint
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StochasticBiggerThanEqualsConstraint
public StochasticBiggerThanEqualsConstraint(double[][] t,
double[] pc,
double[] h,
java.lang.String name)
StochasticBiggerThanEqualsConstraint
public StochasticBiggerThanEqualsConstraint(SparseVector[] t,
SparseVector c,
double[] h,
java.lang.String name)
getExtensiveForm
public LinearConstraint[] getExtensiveForm()
- Specified by:
getExtensiveForm
in interface StochasticConstraint
- Specified by:
getExtensiveForm
in class StochasticAbstractConstraint
isSatisfiedBy
public boolean isSatisfiedBy(double[] x)
- Description copied from interface:
Constraint
- Evaluates the constraint at input value
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.
- Specified by:
isSatisfiedBy
in interface Constraint
- Specified by:
isSatisfiedBy
in class StochasticAbstractConstraint
- Parameters:
x
- the position, where the constraint is to be evaluated
- Returns:
true
if input value x
satisfies this constraint,
false
otherwise
getRHS
public double getRHS()
- Description copied from interface:
Constraint
- Returns the right hand side.
- Specified by:
getRHS
in interface Constraint
- Overrides:
getRHS
in class StochasticAbstractConstraint
- Returns:
- right hand side