Differential Evolution C++ library
de::boolean_constraint Class Reference

#include <de_constraints.hpp>

Inheritance diagram for de::boolean_constraint:
Collaboration diagram for de::boolean_constraint:

List of all members.

Public Member Functions

virtual double get_rand_value ()
virtual double get_rand_value (double value, double origin)
double min () const
double max () const
virtual double get_rand_value_in_zone (double origin, double zonePct) const
virtual double get_middle_point ()

Detailed Description

A boolean constraint. Specifies that variables can take a boolean value - true or false.

Author:
adrian (12/1/2011)

Member Function Documentation

virtual double de::boolean_constraint::get_middle_point ( ) [inline, virtual]

Gets the point midway between min and max - will only work for range constraints

Author:
adrian (12/16/2011)
Returns:
double

Implements de::constraint.

virtual double de::boolean_constraint::get_rand_value ( ) [inline, virtual]

returns a random boolean value

Author:
adrian (12/4/2011)
Returns:
double

Implements de::constraint.

Here is the caller graph for this function:

virtual double de::boolean_constraint::get_rand_value ( double  value,
double  origin 
) [inline, virtual]

returns a random boolean value

Author:
adrian (12/4/2011)
Returns:
double

Implements de::constraint.

Here is the call graph for this function:

virtual double de::boolean_constraint::get_rand_value_in_zone ( double  origin,
double  zonePct 
) const [inline, virtual]

Gets a random value within the limits set for the constraint, but further limited to a range defined by its origin and the width of the zone around this origin in pct of the total width

Author:
adrian (12/13/2011)
Parameters:
originthe origin (center) of the zone further limiting the constraint
zonePctthe width of the zone in pct of the total width, around the origin
Returns:
double

Implements de::constraint.

double de::boolean_constraint::max ( ) const [inline, virtual]

returns the max limit of the range

Author:
adrian (12/4/2011)
Returns:
double

Implements de::constraint.

double de::boolean_constraint::min ( ) const [inline, virtual]

returns the min limit of the range

Author:
adrian (12/4/2011)
Returns:
double

Implements de::constraint.


The documentation for this class was generated from the following file: