public class FletcherPenalty extends MultiplierPenalty
Function.EvaluationException
constraints, weights
Constructor and Description |
---|
FletcherPenalty(LessThanConstraints constraints)
Construct a Fletcher penalty function from a collection of inequality constraints.
|
FletcherPenalty(LessThanConstraints constraints,
double weight)
Construct a Fletcher penalty function from a collection of inequality constraints.
|
FletcherPenalty(LessThanConstraints constraints,
double[] weights)
Construct a Fletcher penalty function from a collection of inequality constraints.
|
Modifier and Type | Method and Description |
---|---|
Double |
evaluate(Vector x)
Evaluate the function f at x, where x is from the domain.
|
dimensionOfDomain
dimensionOfRange
public FletcherPenalty(LessThanConstraints constraints, double[] weights)
constraints
- a collection of inequality constraintsweights
- the weights assigned to the constraintspublic FletcherPenalty(LessThanConstraints constraints, double weight)
constraints
- a collection of inequality constraintsweight
- the same weight assigned to the constraintspublic FletcherPenalty(LessThanConstraints constraints)
constraints
- a collection of inequality constraintsCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.