메소드 | 설명 | |
---|---|---|
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
|
메소드 | 설명 | |
---|---|---|
function ( double x ) : double | ||
gradient ( double x ) : double[] |
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 |
linearTerms | double | The vector |
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 |