Djinni
2.2
|
A class representing classical simulated annealing. More...
#include <Penalties.h>
Public Types | |
typedef double | ReturnType |
Public Member Functions | |
Simulated () | |
Simulated (const double multiplier) | |
Simulated (const Simulated &sim) | |
virtual | ~Simulated () |
void | setMultiplier (const double multiplier) |
ReturnType | operator() (const int) const |
Protected Attributes | |
double | _mult |
A class representing classical simulated annealing.
Definition at line 125 of file Penalties.h.
typedef double Simulated::ReturnType |
Like compressed annealing, simulated annealing uses doubles for its lambda.
Definition at line 129 of file Penalties.h.
Simulated::Simulated | ( | ) | [inline] |
A convenience constructor which initializes the multiplier to 1.0.
Definition at line 132 of file Penalties.h.
Simulated::Simulated | ( | const double | multiplier | ) | [inline] |
A constructor that sets the multiplier for use in simulated annealing.
multiplier | The multiplier to use |
Definition at line 139 of file Penalties.h.
Simulated::Simulated | ( | const Simulated & | sim | ) | [inline] |
This copy constructor should be unnecessary. It's included in the event end-users feel like getting funky.
sim | The Simulated object to be copied |
Definition at line 147 of file Penalties.h.
virtual Simulated::~Simulated | ( | ) | [inline, virtual] |
A no-op destructor.
This destructor has been virtualized in case end-users wish to subclass.
Definition at line 154 of file Penalties.h.
ReturnType Simulated::operator() | ( | const int | ) | const [inline] |
All PenaltyFuncs must implement operator()(const int iter).
However, for simulated annealing a constant value is always returned.
Definition at line 171 of file Penalties.h.
void Simulated::setMultiplier | ( | const double | multiplier | ) | [inline] |
Sets the multiplier for use in simulated annealing.
multiplier | The multiplier to use |
Definition at line 161 of file Penalties.h.