Serves as a base class for classes that represent constraints in an optimization model.
SystemObject Extreme.Mathematics.OptimizationOptimizationModelEntity Extreme.Mathematics.OptimizationConstraint Extreme.Mathematics.OptimizationLinearConstraint Extreme.Mathematics.OptimizationNonlinearConstraint
Namespace:
Extreme.Mathematics.Optimization
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public abstract class Constraint : OptimizationModelEntity
Public MustInherit Class Constraint
Inherits OptimizationModelEntity
public ref class Constraint abstract : public OptimizationModelEntity
[<AbstractClassAttribute>]
type Constraint =
class
inherit OptimizationModelEntity
end
The Constraint type exposes the following members.
Top
| Name | Description |
---|
 | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
 | Evaluate |
Evaluates the constraint at the specified point.
|
 | EvaluateConstraintAndGradient |
Evaluates both the constrain value and its gradient in one operation.
|
 | EvaluateGradient |
Evaluates the gradient of the constraint at the specified point.
|
 | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
 | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
 | GetType | Gets the Type of the current instance. (Inherited from Object.) |
 | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
 | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
A Constraint object represents a constraint
in a OptimizationModel. Constraint
objects are created using the
AddLinearConstraint(String, ConstraintType, Double)
method of the OptimizationModel class.
Each constraint has a Name, which may be generated automatically.
The LowerBound and UpperBound properties
specify the left and right hand sides of the constraint.
Reference