com.numericalmethod.suanshu.optimization.constrained.general.penaltymethod
Class Fletcher
java.lang.Object
com.numericalmethod.suanshu.optimization.constrained.general.penaltymethod.PenaltyFunction
com.numericalmethod.suanshu.optimization.constrained.general.penaltymethod.MultiplierPenalty
com.numericalmethod.suanshu.optimization.constrained.general.penaltymethod.Fletcher
- All Implemented Interfaces:
- Function, RealScalarFunction
public class Fletcher
- extends MultiplierPenalty
This penalty function sums up the squared costs penalties.
It applies to inequality constrained problems.
- See Also:
- "Fletcher R. "An ideal penalty function for constrained optimization," J. Inst. Maths Applns, 15, 319 - 342. 1975."
|
Method Summary |
double |
evaluate(double... x)
A real function, f, takes a double array double[],
{x0, x1, ..., xn}
and maps it to a double,
f(x0, x1, ..., xn) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Fletcher
public Fletcher(InequalityConstraints constraints,
double[] weights)
- Construct a Fletcher penalty function from a set of inequality constraints.
- Parameters:
constraints - a set of inequality constraintsweights - weights assigned to the constraints
Fletcher
public Fletcher(InequalityConstraints constraints,
double weights)
- Construct a Fletcher penalty function from a set of inequality constraints.
We assign the same weight to all constraints.
- Parameters:
constraints - a set of inequality constraintsweights - the same weight assigned to the constraints
Fletcher
public Fletcher(InequalityConstraints constraints)
- Construct a Fletcher penalty function from a set of inequality constraints.
We assign the same default weight to all constraints.
- Parameters:
constraints - a set of inequality constraints
evaluate
public double evaluate(double... x)
- Description copied from interface:
RealScalarFunction
- A real function,
f, takes a double array double[],
{x0, x1, ..., xn}
and maps it to a double,
f(x0, x1, ..., xn)
- Parameters:
x - {x} = {x0, x1, ... xn}
- Returns:
f({x}) as output
Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.