Click or drag to resize
Accord.NET (logo)

NonlinearConstraint Class

Constraint with only linear terms.
Inheritance Hierarchy
SystemObject
  Accord.Math.OptimizationNonlinearConstraint
    Accord.Math.OptimizationQuadraticConstraint

Namespace:  Accord.Math.Optimization
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public class NonlinearConstraint : IConstraint, 
	IFormattable
Request Example View Source

The NonlinearConstraint type exposes the following members.

Constructors
  NameDescription
Protected methodNonlinearConstraint
Creates an empty nonlinear constraint.
Public methodNonlinearConstraint(Int32, ExpressionFuncDouble, Boolean, FuncDouble, Double)
Constructs a new nonlinear constraint.
Public methodNonlinearConstraint(IObjectiveFunction, ExpressionFuncDouble, Boolean, FuncDouble, Double)
Constructs a new nonlinear constraint.
Public methodNonlinearConstraint(Int32, FuncDouble, Double, ConstraintType, Double, FuncDouble, Double, Double)
Constructs a new nonlinear constraint.
Public methodNonlinearConstraint(IObjectiveFunction, FuncDouble, Double, ConstraintType, Double, FuncDouble, Double, Double)
Constructs a new nonlinear constraint.
Public methodNonlinearConstraint(IObjectiveFunction, ExpressionFuncDouble, ConstraintType, Double, ExpressionFuncDouble, Double)
Constructs a new nonlinear constraint.
Top
Properties
  NameDescription
Public propertyNumberOfVariables
Gets the number of variables in the constraint.
Public propertyShouldBe
Gets the type of the constraint.
Public propertyTolerance
Gets the violation tolerance for the constraint. Equality constraints should set this to a small positive value. Default is 1e-8.
Public propertyValue
Gets the value in the right hand side of the constraint equation. Default is 0.
Top
Methods
  NameDescription
Protected methodCreate
Creates a nonlinear constraint.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFunction
Calculates the left hand side of the constraint equation given a vector x.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGradient
Calculates the gradient of the constraint equation given a vector x
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents this instance.
(Overrides ObjectToString.)
Public methodToString(String, IFormatProvider)
Returns a String that represents this instance.
Top
Extension Methods
  NameDescription
Public Extension MethodGetViolation
Gets how much the constraint is being violated.
(Defined by ConstraintExtensions.)
Public Extension MethodHasMethod
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.)
Public Extension MethodIsEqual
Compares two objects for equality, performing an elementwise comparison if the elements are vectors or matrices.
(Defined by Matrix.)
Public Extension MethodIsViolated
Gets whether this constraint is being violated (within the current tolerance threshold).
(Defined by ConstraintExtensions.)
Public Extension MethodTo(Type)Overloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Public Extension MethodToTOverloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Top
See Also