Top Description Fields Constructors Methods
org.apache.commons.math3.optim.linear

public Class LinearConstraintSet

extends Object
implements OptimizationData
Class Inheritance
All Implemented Interfaces
org.apache.commons.math3.optim.OptimizationData
Imports
java.util.LinkedHashSet, .Set, .Collection, .Collections, org.apache.commons.math3.optim.OptimizationData

Class that represents a set of linear constraints.
Since
3.1

Field Summary

Modifier and TypeField and Description
private final Set<LinearConstraint>
linearConstraints

Set of constraints.

Constructor Summary

AccessConstructor and Description
public
LinearConstraintSet(LinearConstraint...
Constraints.
constraints
)

Creates a set containing the given constraints.

public
LinearConstraintSet(Collection<LinearConstraint>
Constraints.
constraints
)

Creates a set containing the given constraints.

Method Summary

Modifier and TypeMethod and Description
public Collection<LinearConstraint>

Returns:

the constraints.
getConstraints
()

Gets the set of linear constraints.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

linearConstraintsback to summary
private final Set<LinearConstraint> linearConstraints

Set of constraints.

Constructor Detail

LinearConstraintSetback to summary
public LinearConstraintSet(LinearConstraint... constraints)

Creates a set containing the given constraints.

Parameters
constraints:LinearConstraint[]

Constraints.

LinearConstraintSetback to summary
public LinearConstraintSet(Collection<LinearConstraint> constraints)

Creates a set containing the given constraints.

Parameters
constraints:Collection<LinearConstraint>

Constraints.

Method Detail

getConstraintsback to summary
public Collection<LinearConstraint> getConstraints()

Gets the set of linear constraints.

Returns:Collection<LinearConstraint>

the constraints.