SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.optimization.constrained.constraint.general
Class GeneralLessThanConstraints

java.lang.Object
  extended by com.numericalmethod.suanshu.optimization.constrained.constraint.general.GeneralConstraints
      extended by com.numericalmethod.suanshu.optimization.constrained.constraint.general.GeneralLessThanConstraints
All Implemented Interfaces:
Constraints, LessThanConstraints

public class GeneralLessThanConstraints
extends GeneralConstraints
implements LessThanConstraints

This is the collection of less-than or equal-to constraints for an optimization problem.


Constructor Summary
GeneralLessThanConstraints(java.util.Collection<RealScalarFunction> constraints)
          Construct an instance of less-than or equal-to inequality constraints from a collection of real-valued functions.
GeneralLessThanConstraints(RealScalarFunction... constraints)
          Construct an instance of less-than or equal-to inequality constraints from an array of real-valued functions.
 
Method Summary
 GeneralGreaterThanConstraints toGreaterThanConstraints()
          Convert the less-than or equal-to constraints to greater-than or equal-to constraints.
 
Methods inherited from class com.numericalmethod.suanshu.optimization.constrained.constraint.general.GeneralConstraints
dimension, getConstraints, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.numericalmethod.suanshu.optimization.constrained.constraint.Constraints
dimension, getConstraints, size
 

Constructor Detail

GeneralLessThanConstraints

public GeneralLessThanConstraints(java.util.Collection<RealScalarFunction> constraints)
Construct an instance of less-than or equal-to inequality constraints from a collection of real-valued functions.

Parameters:
constraints - the less-than or equal-to inequality constraints

GeneralLessThanConstraints

public GeneralLessThanConstraints(RealScalarFunction... constraints)
Construct an instance of less-than or equal-to inequality constraints from an array of real-valued functions.

Parameters:
constraints - the less-than or equal-to inequality constraints
Method Detail

toGreaterThanConstraints

public GeneralGreaterThanConstraints toGreaterThanConstraints()
Description copied from interface: LessThanConstraints
Convert the less-than or equal-to constraints to greater-than or equal-to constraints.

Specified by:
toGreaterThanConstraints in interface LessThanConstraints
Returns:
the equivalent greater-than or equal-to constraints

SuanShu, a Java numerical and statistical library

Copyright © 2012 Numerical Method Inc. Ltd. All Rights Reserved.