org.apache.commons.math3.optim.linear

## Class LinearConstraintSet

- java.lang.Object
- - org.apache.commons.math3.optim.linear.LinearConstraintSet

- All Implemented Interfaces:
    OptimizationData

      public class LinearConstraintSet
      extends Object
      implements OptimizationData

  Class that represents a set of `linear constraints`.
  Since:
    3.1
  Version:
    $Id: LinearConstraintSet.java 1551355 2013-12-16 21:05:01Z tn $

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LinearConstraintSet(Collection<LinearConstraint> constraints)` Creates a set containing the given constraints.
    `LinearConstraintSet(LinearConstraint... constraints)` Creates a set containing the given constraints.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Collection<LinearConstraint>` | `getConstraints()` Gets the set of linear constraints.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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.

Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.