Click or drag to resize
Accord.NET (logo)

QuadraticConstraint Class

Constraint with only quadratic 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 QuadraticConstraint : NonlinearConstraint, 
	IConstraint
Request Example View Source

The QuadraticConstraint type exposes the following members.

Constructors
  NameDescription
Public methodQuadraticConstraint
Constructs a new quadratic constraint in the form x'Ax + x'b.
Top
Properties
  NameDescription
Public propertyLinearTerms
Gets the vector b of linear terms for the constraint x'Ax + x'b.
Public propertyNumberOfVariables
Gets the number of variables in the constraint.
(Inherited from NonlinearConstraint.)
Public propertyQuadraticTerms
Gets the matrix of A quadratic terms for the constraint x'Ax + x'b.
Public propertyShouldBe
Gets the type of the constraint.
(Inherited from NonlinearConstraint.)
Public propertyTolerance
Gets the violation tolerance for the constraint. Equality constraints should set this to a small positive value. Default is 1e-8.
(Inherited from NonlinearConstraint.)
Public propertyValue
Gets the value in the right hand side of the constraint equation. Default is 0.
(Inherited from NonlinearConstraint.)
Top
Methods
  NameDescription
Protected methodCreate
Creates a nonlinear constraint.
(Inherited from NonlinearConstraint.)
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.
(Inherited from NonlinearConstraint.)
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
(Inherited from NonlinearConstraint.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents this instance.
(Inherited from NonlinearConstraint.)
Public methodToString(String, IFormatProvider)
Returns a String that represents this instance.
(Inherited from NonlinearConstraint.)
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