Class GeneralGreaterThanConstraints
- java.lang.Object
-
- dev.nm.solver.multivariate.constrained.constraint.general.GeneralConstraints
-
- dev.nm.solver.multivariate.constrained.constraint.general.GeneralGreaterThanConstraints
-
- All Implemented Interfaces:
Constraints
,GreaterThanConstraints
public class GeneralGreaterThanConstraints extends GeneralConstraints implements GreaterThanConstraints
This is the collection of greater-than-or-equal-to constraints for an optimization problem.
-
-
Constructor Summary
Constructors Constructor Description GeneralGreaterThanConstraints(RealScalarFunction... constraints)
Construct an instance of greater-than-or-equal-to inequality constraints from an array of real-valued functions.GeneralGreaterThanConstraints(Collection<RealScalarFunction> constraints)
Construct an instance of greater-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 GeneralLessThanConstraints
toLessThanConstraints()
Convert the greater-than or equal-to constraints to less-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
-
GeneralGreaterThanConstraints
public GeneralGreaterThanConstraints(Collection<RealScalarFunction> constraints)
Construct an instance of greater-than-or-equal-to inequality constraints from a collection of real-valued functions.- Parameters:
constraints
- the greater-than-or-equal-to inequality constraints
-
GeneralGreaterThanConstraints
public GeneralGreaterThanConstraints(RealScalarFunction... constraints)
Construct an instance of greater-than-or-equal-to inequality constraints from an array of real-valued functions.- Parameters:
constraints
- the greater-than-or-equal-to inequality constraints
-
-
Method Detail
-
toLessThanConstraints
public GeneralLessThanConstraints toLessThanConstraints()
Description copied from interface:GreaterThanConstraints
Convert the greater-than or equal-to constraints to less-than or equal-to constraints.- Specified by:
toLessThanConstraints
in interfaceGreaterThanConstraints
- Returns:
- the equivalent less-than or equal-to constraints
-
-