Documentation of 'org.apache.commons.math3.optim.linear.NonNegativeConstraint' Java class
NonNegativeConstraint
org.apache.commons.math3.optim.linear

Class NonNegativeConstraint

  • All Implemented Interfaces:
    OptimizationData


    public class NonNegativeConstraint
    extends java.lang.Object
    implements OptimizationData
    A constraint for a linear optimization problem indicating whether all variables must be restricted to non-negative values.
    Since:
    3.1
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean isRestrictedToNonNegative()
      Indicates whether all the variables must be restricted to non-negative values.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NonNegativeConstraint

        public NonNegativeConstraint(boolean restricted)
        Parameters:
        restricted - If true, all the variables must be positive.
    • Method Detail

      • isRestrictedToNonNegative

        public boolean isRestrictedToNonNegative()
        Indicates whether all the variables must be restricted to non-negative values.
        Returns:
        true if all the variables must be positive.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.