Class GeneralLessThanConstraints
- java.lang.Object
-
- dev.nm.solver.multivariate.constrained.constraint.general.GeneralConstraints
-
- dev.nm.solver.multivariate.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
Constructors Constructor Description GeneralLessThanConstraints(RealScalarFunction... constraints)
Construct an instance of less-than or equal-to inequality constraints from an array of real-valued functions.GeneralLessThanConstraints(Collection<RealScalarFunction> constraints)
Construct an instance of less-than or equal-to inequality constraints from a collection of real-valued functions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeneralGreaterThanConstraints
toGreaterThanConstraints()
Convert the less-than or equal-to constraints to greater-than or equal-to constraints.-
Methods inherited from class dev.nm.solver.multivariate.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 dev.nm.solver.multivariate.constrained.constraint.Constraints
dimension, getConstraints, size
-
-
-
-
Constructor Detail
-
GeneralLessThanConstraints
public GeneralLessThanConstraints(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 interfaceLessThanConstraints
- Returns:
- the equivalent greater-than or equal-to constraints
-
-