Class LinearConstraintSet
- java.lang.Object
-
- org.apache.commons.math4.legacy.optim.linear.LinearConstraintSet
-
- All Implemented Interfaces:
OptimizationData
public class LinearConstraintSet extends Object implements OptimizationData
Class that represents a set oflinear constraints
.- Since:
- 3.1
-
-
Constructor Summary
Constructors Constructor Description LinearConstraintSet(Collection<LinearConstraint> constraints)
Creates a set containing the given constraints.LinearConstraintSet(LinearConstraint... constraints)
Creates a set containing the given constraints.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<LinearConstraint>
getConstraints()
Gets the set of linear constraints.
-
-
-
Constructor Detail
-
LinearConstraintSet
public LinearConstraintSet(LinearConstraint... constraints)
Creates a set containing the given constraints.- Parameters:
constraints
- Constraints.
-
LinearConstraintSet
public LinearConstraintSet(Collection<LinearConstraint> constraints)
Creates a set containing the given constraints.- Parameters:
constraints
- Constraints.
-
-
Method Detail
-
getConstraints
public Collection<LinearConstraint> getConstraints()
Gets the set of linear constraints.- Returns:
- the constraints.
-
-