C# Класс Accord.Math.Optimization.QuadraticConstraint

Constraint with only quadratic terms.
Наследование: NonlinearConstraint, IConstraint
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
QuadraticConstraint ( IObjectiveFunction objective, double quadraticTerms, double linearTerms = null, ConstraintType shouldBe = ConstraintType.LesserThanOrEqualTo, double value, double withinTolerance = 0.0 ) : System

Constructs a new quadratic constraint in the form x'Ax + x'b.

Приватные методы

Метод Описание
function ( double x ) : double
gradient ( double x ) : double[]

Описание методов

QuadraticConstraint() публичный Метод

Constructs a new quadratic constraint in the form x'Ax + x'b.
public QuadraticConstraint ( IObjectiveFunction objective, double quadraticTerms, double linearTerms = null, ConstraintType shouldBe = ConstraintType.LesserThanOrEqualTo, double value, double withinTolerance = 0.0 ) : System
objective IObjectiveFunction The objective function to which this constraint refers.
quadraticTerms double The matrix of A quadratic terms.
linearTerms double The vector b of linear terms.
shouldBe ConstraintType How the left hand side of the constraint should be compared to /// the given .
value double The right hand side of the constraint equation.
withinTolerance double The tolerance for violations of the constraint. Equality /// constraints should set this to a small positive value. Default is 0.
Результат System