Click or drag to resize
Accord.NET (logo)

LinearConstraint Class

Constraint with only linear terms.
Inheritance Hierarchy

Namespace:  Accord.Math.Optimization
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.7.0
public class LinearConstraint
Request Example View Source

The LinearConstraint type exposes the following members.

Public propertyCombinedAs
Gets the scalar coefficients combining the variables specified by the constraints.
Public propertyFunction
Gets the left hand side of the constraint equation.
Public propertyGradient
Gets the gradient of the left hand side of the constraint equation.
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.
Public propertyValue
Gets the value to be compared to the combined values of the variables.
Public propertyVariablesAtIndices
Gets the index of the variables (in respective to the objective function) of the variables participating in this 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 methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetViolation
Gets how much the constraint is being violated.
Public methodIsViolated
Gets whether this constraint is being violated (within the current tolerance threshold).
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodStatic memberTryParse(String, IObjectiveFunction, LinearConstraint)
Attempts to create a LinearConstraint from a String representation.
Public methodStatic memberTryParse(String, CultureInfo, IObjectiveFunction, LinearConstraint)
Attempts to create a LinearConstraint from a String representation.
Public fieldStatic memberDefaultTolerance
Gets the default constant violation tolerance (1e-12).
Extension Methods
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 MethodToT
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.)
See Also