Base class of all objective functions. More...
#include <ObjectiveFunction.h>
Public Member Functions | |
| ObjectiveFunction () | |
| Constructor. | |
| virtual | ~ObjectiveFunction () |
| Destructor. | |
| unsigned | timesCalled () const |
| return the number of function evaluations so far | |
| void | resetTimesCalled () |
| reset the number of function evaluations to zero | |
| const std::string & | name () const |
| return the name of this functions | |
| virtual unsigned int | objectives () const =0 |
| return the number of objectives to optimize | |
Protected Attributes | |
| unsigned | m_timesCalled |
| number of function evaluations | |
| std::string | m_name |
| function name | |
Base class of all objective functions.
Definition at line 168 of file ObjectiveFunction.h.
| ObjectiveFunction::ObjectiveFunction | ( | ) |
Constructor.
Definition at line 128 of file ObjectiveFunction.cpp.
| ObjectiveFunction::~ObjectiveFunction | ( | ) | [virtual] |
Destructor.
Definition at line 133 of file ObjectiveFunction.cpp.
| const std::string& ObjectiveFunction::name | ( | ) | const [inline] |
return the name of this functions
Definition at line 184 of file ObjectiveFunction.h.
References m_name.
| virtual unsigned int ObjectiveFunction::objectives | ( | ) | const [pure virtual] |
return the number of objectives to optimize
Implemented in BhinKorn, Schaffer, ZDT1, ZDT2, ZDT3, ZDT4, ZDT5, ZDT6, IHR1, IHR2, IHR3, IHR6, ZZJ07_F1, ZZJ07_F2, ZZJ07_F3, ZZJ07_F4, ZZJ07_F5, ZZJ07_F6, ZZJ07_F7, ZZJ07_F8, ZZJ07_F9, ZZJ07_F10, LZ06_F1, LZ06_F2, LZ07_F1, LZ07_F2, LZ07_F3, LZ07_F4, LZ07_F5, LZ07_F6, LZ07_F7, LZ07_F8, LZ07_F9, ELLIBase, ELLI1, ELLI2, CIGTABBase, CIGTAB1, CIGTAB2, DTLZ1, DTLZ2, DTLZ3, DTLZ4, DTLZ5, DTLZ6, DTLZ7, Superspheres, TransformedObjectiveFunction, Sphere, NoisySphere, Ackley, Rastrigin, Griewangk, Rosenbrock, DiffPow, Schwefel, SchwefelEllipsoid, and RandomFitness.
Referenced by TransformedObjectiveFunction::objectives().
| void ObjectiveFunction::resetTimesCalled | ( | ) | [inline] |
reset the number of function evaluations to zero
Definition at line 181 of file ObjectiveFunction.h.
References m_timesCalled.
| unsigned ObjectiveFunction::timesCalled | ( | ) | const [inline] |
return the number of function evaluations so far
Definition at line 178 of file ObjectiveFunction.h.
References m_timesCalled.
std::string ObjectiveFunction::m_name [protected] |
function name
Definition at line 194 of file ObjectiveFunction.h.
Referenced by Ackley::Ackley(), BhinKorn::BhinKorn(), Cigar::Cigar(), CIGTAB1::CIGTAB1(), CIGTAB2::CIGTAB2(), CIGTABBase::CIGTABBase(), DiffPow::DiffPow(), DiffPowRotated::DiffPowRotated(), DTLZ1::DTLZ1(), DTLZ2::DTLZ2(), DTLZ3::DTLZ3(), DTLZ4::DTLZ4(), DTLZ5::DTLZ5(), DTLZ6::DTLZ6(), DTLZ7::DTLZ7(), ELLI1::ELLI1(), ELLI2::ELLI2(), ELLIBase::ELLIBase(), Griewangk::Griewangk(), IHR1::IHR1(), IHR2::IHR2(), IHR3::IHR3(), IHR6::IHR6(), LZ06_F1::LZ06_F1(), LZ06_F2::LZ06_F2(), LZ07_F1::LZ07_F1(), LZ07_F2::LZ07_F2(), LZ07_F3::LZ07_F3(), LZ07_F4::LZ07_F4(), LZ07_F5::LZ07_F5(), LZ07_F6::LZ07_F6(), LZ07_F7::LZ07_F7(), LZ07_F8::LZ07_F8(), LZ07_F9::LZ07_F9(), name(), NoisySphere::NoisySphere(), Paraboloid::Paraboloid(), RandomFitness::RandomFitness(), Rastrigin::Rastrigin(), Rosenbrock::Rosenbrock(), RosenbrockRotated::RosenbrockRotated(), Schaffer::Schaffer(), Schwefel::Schwefel(), SchwefelEllipsoid::SchwefelEllipsoid(), SchwefelEllipsoidRotated::SchwefelEllipsoidRotated(), Sphere::Sphere(), Superspheres::Superspheres(), Tablet::Tablet(), Twoaxis::Twoaxis(), ZDT1::ZDT1(), ZDT2::ZDT2(), ZDT3::ZDT3(), ZDT4::ZDT4(), ZDT5::ZDT5(), ZDT6::ZDT6(), ZZJ07_F1::ZZJ07_F1(), ZZJ07_F10::ZZJ07_F10(), ZZJ07_F2::ZZJ07_F2(), ZZJ07_F3::ZZJ07_F3(), ZZJ07_F4::ZZJ07_F4(), ZZJ07_F5::ZZJ07_F5(), ZZJ07_F6::ZZJ07_F6(), ZZJ07_F7::ZZJ07_F7(), ZZJ07_F8::ZZJ07_F8(), and ZZJ07_F9::ZZJ07_F9().
unsigned ObjectiveFunction::m_timesCalled [protected] |
number of function evaluations
Definition at line 191 of file ObjectiveFunction.h.
Referenced by resetTimesCalled(), RandomFitness::result(), SchwefelEllipsoid::result(), Schwefel::result(), DiffPow::result(), Rosenbrock::result(), Griewangk::result(), Rastrigin::result(), Ackley::result(), NoisySphere::result(), Sphere::result(), TransformedObjectiveFunction::result(), Superspheres::result(), DTLZ7::result(), DTLZ6::result(), DTLZ5::result(), DTLZ4::result(), DTLZ3::result(), DTLZ2::result(), DTLZ1::result(), CIGTAB2::result(), CIGTABBase::result(), ELLI2::result(), ELLIBase::result(), LZ07_F9::result(), LZ07_F8::result(), LZ07_F7::result(), LZ07_F6::result(), LZ07_F5::result(), LZ07_F4::result(), LZ07_F3::result(), LZ07_F2::result(), LZ07_F1::result(), LZ06_F2::result(), LZ06_F1::result(), ZZJ07_F10::result(), ZZJ07_F9::result(), ZZJ07_F8::result(), ZZJ07_F7::result(), ZZJ07_F6::result(), ZZJ07_F5::result(), ZZJ07_F4::result(), ZZJ07_F3::result(), ZZJ07_F2::result(), ZZJ07_F1::result(), IHR6::result(), IHR3::result(), IHR2::result(), IHR1::result(), ZDT6::result(), ZDT5::result(), ZDT4::result(), ZDT3::result(), ZDT2::result(), ZDT1::result(), Schaffer::result(), BhinKorn::result(), and timesCalled().