VLSI GA Instance. More...
#include <rinstvlsi.h>
Inheritance diagram for RInstVLSI:
Collaboration diagram for RInstVLSI:
Public Member Functions | |
RInstVLSI (size_t max, size_t popsize, R::RProblem2D *prob, const R::RString &h, R::RParamStruct *heurdist, R::RParamStruct *heurarea, R::RParamStruct *selectdist, R::RParamStruct *selectweight, R::RDebug *debug=0) | |
virtual bool | StopCondition (void) |
Public Member Functions inherited from RInst2D< RInstVLSI, RChromoVLSI, RFitnessVLSI, RThreadDataVLSI, R::RGeoInfo > | |
RInst2D (size_t popsize, RProblem2D *prob, const RString &h, const RString &name, RParamStruct *heurdist, RParamStruct *heurarea, RParamStruct *selectdist, RParamStruct *selectweight, RDebug *debug=0) | |
virtual void | Init (void) |
RString | GetHeuristic (void) const |
bool | LocalOpti (void) |
RProblem2D * | GetProblem (void) const |
Public Member Functions inherited from RInst< cInst, cChromo, cFit, cThreadData > | |
RInst (size_t popsize, const RString &name, RDebug *debug=0) | |
virtual RCString | GetClassName (void) const |
void | SetMutationParams (size_t agemut, size_t agebestmut, size_t nbmut) |
void | SetVerify (bool verify) |
bool | GetVerify (void) const |
bool | MustOptimisation (void) const |
void | SetOptimisation (bool opti) |
cChromo * | GetBestChromosome (void) const |
void | SetSeed (int seed) |
int | GetSeed (void) const |
virtual void | AnalyzePop (void) |
virtual void | PostEvaluate (void) |
virtual void | RandomConstruct (void) |
virtual void | PostRun (void) |
virtual void | DisplayInfos (void) |
virtual void | Crossover (void) |
virtual void | Mutation (void) |
virtual void | StrongMutation (void) |
virtual void | Inversion (void) |
void | Generation (void) |
virtual void | Run (void) |
virtual void | Verify (void) |
virtual void | HandlerNotFound (const RNotification ¬ification) |
long | RRand (long max) |
void | RandOrder (T *array, size_t size) |
virtual | ~RInst (void) |
Public Member Functions inherited from RObject | |
RObject (const RString &name=RString::Null) | |
int | Compare (const RObject &obj) const |
RString | GetName (void) const |
void | PostNotification (const hNotification handle) |
void | PostNotification (const RCString &name) |
void | PostNotification (const hNotification handle, T data) |
void | PostNotification (const RCString &name, T data) |
void | InsertObserver (tNotificationHandler handler, const hNotification handle, RObject *object) |
void | InsertObserver (tNotificationHandler handler, const RCString &name, RObject *object) |
void | InsertObserver (tNotificationHandler handler, const hNotification handle) |
void | InsertObserver (tNotificationHandler handler, const RCString &name) |
void | InsertObserver (tNotificationHandler handler, RObject *object) |
void | InsertObserver (tNotificationHandler handler) |
void | DeleteObserver (void) |
void | DeleteObserver (const hNotification handle, RObject *object) |
void | DeleteObserver (const RCString &name, RObject *object) |
hNotification | GetNotificationHandle (const RCString &name) const |
RCString | GetNotificationName (const hNotification handle) const |
virtual | ~RObject (void) |
Public Member Functions inherited from iRInst | |
size_t | GetPopSize (void) const |
size_t | GetGen (void) const |
size_t | GetAgeBest (void) const |
size_t | GetAgeBestPop (void) const |
virtual | ~iRInst (void) |
Public Attributes | |
size_t | MaxGen |
Public Attributes inherited from RInst< cInst, cChromo, cFit, cThreadData > | |
RDebug * | Debug |
RRandom | Random |
cChromo ** | Chromosomes |
cChromo ** | Ranked |
cChromo * | BestChromosome |
cChromo * | BestInPop |
Detailed Description
VLSI GA Instance.
The instance of the VLSI problem.
Constructor & Destructor Documentation
RInstVLSI | ( | size_t | max, |
size_t | popsize, | ||
R::RProblem2D * | prob, | ||
const R::RString & | h, | ||
R::RParamStruct * | heurdist, | ||
R::RParamStruct * | heurarea, | ||
R::RParamStruct * | selectdist, | ||
R::RParamStruct * | selectweight, | ||
R::RDebug * | debug = 0 |
||
) |
Construct the instance.
- Parameters
-
max Maximal number of generations. popsize The size of the population. prob The problem. h The type of heuristic to be used. heurdist Distance criteria parameters for the heuristic. heurarea Area criteria parameters for the heuristic. selectdist Distance criteria parameters for the objects selection. selectweight Weight criteria parameters for the objects selection. debug Debugger.
Member Function Documentation
|
virtual |
This function determines if the GA must be stopped. Actually, it is the case when the maximal number of generation is calculated.
- Returns
- The function returns true if the GA must stop.
Implements RInst< cInst, cChromo, cFit, cThreadData >.
Member Data Documentation
size_t MaxGen |
The maximum number of generations.