com.numericalmethod.suanshu.optimization.constrained.general.penaltymethod
Class MultiplierPenalty
java.lang.Object
com.numericalmethod.suanshu.optimization.constrained.general.penaltymethod.PenaltyFunction
com.numericalmethod.suanshu.optimization.constrained.general.penaltymethod.MultiplierPenalty
- All Implemented Interfaces:
- Function, RealScalarFunction
- Direct Known Subclasses:
- AbsoluteError, Courant, Fletcher
public abstract class MultiplierPenalty
- extends PenaltyFunction
A multiplier penalty function allows different weights be assigned to the constraints.
- See Also:
- "Fletcher R. "Section 12.2. Multiplier PenaltyFunction Function," Practical Method of Optimization Vol. 2. Constrained Optimization. Wiley, 1981."
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiplierPenalty
public MultiplierPenalty(Constraints constraints,
double[] weights)
- Construct a MultiplierPenalty penalty function from a set of constraints.
- Parameters:
constraints - a set of constraintsweights - weights assigned to the constraints
MultiplierPenalty
public MultiplierPenalty(Constraints constraints,
double weights)
- Construct a MultiplierPenalty penalty function from a set of constraints.
We assign the same weight to all constraints.
- Parameters:
constraints - a set of constraintsweights - the same weight assigned to the constraints
MultiplierPenalty
public MultiplierPenalty(Constraints constraints)
- Construct a MultiplierPenalty penalty function from a set of constraints.
We assign the same default weight, 1.0, to all constraints.
- Parameters:
constraints - a set of constraints
Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.