• Main Page
  • Namespaces
  • Classes
  • Files
  • Class List
  • Class Hierarchy
  • Class Members

ConstrEx Class Reference

Class representing the problem ConstrEx.

#include <ConstrEx.h>

Inheritance diagram for ConstrEx:

MultiobjectiveProblem List of all members.

Public Member Functions

 ConstrEx (VariableType variableType)
 Constructor.
void evaluate (Individual *individual)
 Evaluates an indidividual.
void evaluateConstraints (Individual *individual)
 Constraint evaluation.

Detailed Description

Definition at line 20 of file ConstrEx.h.


Constructor & Destructor Documentation

ConstrEx::ConstrEx (  VariableType  variableType  ) 
 

Constructor of the class

Definition at line 17 of file ConstrEx.cpp.

References MultiobjectiveProblem::bitsPerVariable_, MultiobjectiveProblem::initializeVariableType(), MultiobjectiveProblem::lowerLimit_, MultiobjectiveProblem::numberOfConstraints_, MultiobjectiveProblem::numberOfFunctions_, MultiobjectiveProblem::numberOfVariables_, MultiobjectiveProblem::precision_, MultiobjectiveProblem::problemName_, MultiobjectiveProblem::upperLimit_, and MultiobjectiveProblem::variableType_.


Member Function Documentation

void ConstrEx::evaluate (  Individual *  individual  )  [virtual]
 

Parameters:
individual The individual to be evaluated

Implements MultiobjectiveProblem.

Definition at line 48 of file ConstrEx.cpp.

References Individual::chromosome_, Individual::fitness_, and Chromosome::gene_.

void ConstrEx::evaluateConstraints (  Individual *  individual  )  [virtual]
 

Parameters:
individual The individual to be evaluated
The constraints must be normalized in the form (x) >= 0. The method must calculate the overall constraint violation and the number of violated constraints.

Reimplemented from MultiobjectiveProblem.

Definition at line 70 of file ConstrEx.cpp.

References Individual::chromosome_, Chromosome::gene_, Individual::numberOfViolatedConstraints_, and Individual::overallConstraintViolation_.


The documentation for this class was generated from the following files:
  • ConstrEx.h
  • ConstrEx.cpp

Our Software

orangebox Mallba

orangebox ssGA

orangebox JGDS

orangebox xxGA

orangebox JCell

orangebox MHTB

orangebox DEME

orangebox JMetal

orangebox More...

orangebox Go Back