SuanShu, a Java numerical and statistical library

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

java.lang.Object
  extended by com.numericalmethod.suanshu.optimization.constrained.general.penaltymethod.PenaltyFunction
All Implemented Interfaces:
Function, RealScalarFunction
Direct Known Subclasses:
MultiplierPenalty, SumOfPenalties, ZERO

public abstract class PenaltyFunction
extends java.lang.Object
implements RealScalarFunction

A function P: Rn -> R is a penalty function for a constrained optimization problem if it has these properties.

See Also:
"Edwin K. P. Chong, Stanislaw H. Zak. "Definition 22.1. Chapter 22. Algorithms for Constrained Optimization," An Introduction to Optimization. Wiley-Interscience. 2001."

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.numericalmethod.suanshu.analysis.function.Function
Function.EvaluationException
 
Field Summary
 int dimensionality
          dimensionality of the problem to be solved This is the number of free variables.
 
Constructor Summary
PenaltyFunction(int dimensionality)
          Construct a PenaltyFunction.
 
Method Summary
 int dimension4Domain()
          Get the number of variables of the function.
 int dimension4Range()
          Get the dimension of the range space the function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.numericalmethod.suanshu.analysis.function.rn2r1.RealScalarFunction
evaluate
 

Field Detail

dimensionality

public final int dimensionality
dimensionality of the problem to be solved

This is the number of free variables.

Constructor Detail

PenaltyFunction

public PenaltyFunction(int dimensionality)
Construct a PenaltyFunction.

Parameters:
dimensionality - dimensionality of the problem to be solved
Method Detail

dimension4Domain

public int dimension4Domain()
Description copied from interface: Function
Get the number of variables of the function.

For example, for a univariate function, the domain dimension is 1. For a bivariate function, the domain dimension is 2.

Specified by:
dimension4Domain in interface Function
Returns:
the number of variables

dimension4Range

public int dimension4Range()
Description copied from interface: Function
Get the dimension of the range space the function.

For example, for a Rn->Rm function, the dimension of the range is m.

Specified by:
dimension4Range in interface Function
Returns:
the dimension of the range

SuanShu, a Java numerical and statistical library

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