SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.optimization.constrained.general.penaltymethod
Class Courant

java.lang.Object
  extended by com.numericalmethod.suanshu.optimization.constrained.general.penaltymethod.PenaltyFunction
      extended by com.numericalmethod.suanshu.optimization.constrained.general.penaltymethod.MultiplierPenalty
          extended by com.numericalmethod.suanshu.optimization.constrained.general.penaltymethod.Courant
All Implemented Interfaces:
Function, RealScalarFunction

public class Courant
extends MultiplierPenalty

This penalty function sums up the squared error penalties. It applies to equality constrained problems.

See Also:
"Courant R. "Variational methods for the solution of problems of equilibrium and vibration," Bull. Amer. Math. Soc., 49, 1- 23. 1943."

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.numericalmethod.suanshu.analysis.function.Function
Function.EvaluationException
 
Field Summary
 
Fields inherited from class com.numericalmethod.suanshu.optimization.constrained.general.penaltymethod.PenaltyFunction
dimensionality
 
Constructor Summary
Courant(EqualityConstraints constraints)
          Construct a Courant penalty function from a set of equality constraints.
Courant(EqualityConstraints constraints, double weights)
          Construct a Courant penalty function from a set of equality constraints.
Courant(EqualityConstraints constraints, double[] weights)
          Construct a Courant penalty function from a set of equality constraints.
 
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 com.numericalmethod.suanshu.optimization.constrained.general.penaltymethod.PenaltyFunction
dimension4Domain, dimension4Range
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Courant

public Courant(EqualityConstraints constraints,
               double[] weights)
Construct a Courant penalty function from a set of equality constraints.

Parameters:
constraints - a set of equality constraints
weights - weights assigned to the constraints

Courant

public Courant(EqualityConstraints constraints,
               double weights)
Construct a Courant penalty function from a set of equality constraints. We assign the same weight to all constraints.

Parameters:
constraints - a set of equality constraints
weights - the same weight assigned to the constraints

Courant

public Courant(EqualityConstraints constraints)
Construct a Courant penalty function from a set of equality constraints. We assign the same default weight to all constraints.

Parameters:
constraints - a set of equality constraints
Method Detail

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

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.