VLSI GA Instance. More...

#include <rinstvlsi.h>

Inheritance diagram for RInstVLSI:
[legend]
Collaboration diagram for RInstVLSI:
[legend]

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)
 
RProblem2DGetProblem (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 &notification)
 
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 >
RDebugDebug
 
RRandom Random
 
cChromo ** Chromosomes
 
cChromo ** Ranked
 
cChromo * BestChromosome
 
cChromo * BestInPop
 

Additional Inherited Members

- Static Public Member Functions inherited from RInst< cInst, cChromo, cFit, cThreadData >
static int sort_function_cChromosome (const void *a, const void *b)
 
- Static Public Attributes inherited from RInst< cInst, cChromo, cFit, cThreadData >
static const char instMaster
 
static const char instSlave
 
static const char instMultiProcess
 
static const char instMultiComputers
 
static const char instMultiEchos
 
- Protected Member Functions inherited from iRInst
 iRInst (size_t popsize)
 
- Protected Attributes inherited from RInst2D< RInstVLSI, RChromoVLSI, RFitnessVLSI, RThreadDataVLSI, R::RGeoInfo >
RProblem2DProblem
 
bool bLocalOpti
 
RString Heuristic
 
bool ComputeFreePolygons
 
bool UseFreePolygons
 
bool AllOrientations
 
RParamStructHeurDist
 
RParamStructHeurArea
 
RParamStructSelectDist
 
RParamStructSelectWeight
 
- Protected Attributes inherited from RInst< cInst, cChromo, cFit, cThreadData >
cThreadData ** thDatas
 
bool bRandomConstruct
 
bool VerifyGA
 
bool DoPostEvaluation
 
bool DoOptimisation
 
- Protected Attributes inherited from RObject
RString Name
 
- Protected Attributes inherited from iRInst
size_t PopSize
 
size_t Gen
 
size_t AgeBest
 
size_t AgeBestPop
 
bool Pause
 

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
maxMaximal number of generations.
popsizeThe size of the population.
probThe problem.
hThe type of heuristic to be used.
heurdistDistance criteria parameters for the heuristic.
heurareaArea criteria parameters for the heuristic.
selectdistDistance criteria parameters for the objects selection.
selectweightWeight criteria parameters for the objects selection.
debugDebugger.

Member Function Documentation

virtual bool StopCondition ( void  )
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.