scpsolver.constraints
Class StochasticBiggerThanEqualsConstraint

java.lang.Object
  extended by scpsolver.constraints.StochasticAbstractConstraint
      extended by scpsolver.constraints.StochasticBiggerThanEqualsConstraint
All Implemented Interfaces:
Constraint, StochasticConstraint

public class StochasticBiggerThanEqualsConstraint
extends StochasticAbstractConstraint


Field Summary
 
Fields inherited from class scpsolver.constraints.StochasticAbstractConstraint
h, name, t, w
 
Constructor Summary
StochasticBiggerThanEqualsConstraint(double[][] t, double[] pc, double[] h, java.lang.String name)
           
StochasticBiggerThanEqualsConstraint(SparseVector[] t, SparseVector c, double[] h, java.lang.String name)
           
 
Method Summary
 LinearConstraint[] getExtensiveForm()
           
 double getRHS()
          Returns the right hand side.
 boolean isSatisfiedBy(double[] x)
          Evaluates the constraint at input value x and checks if the constraint holds.
 
Methods inherited from class scpsolver.constraints.StochasticAbstractConstraint
getC, getCSparse, getH, getName, getT, getTSparse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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