LibCudaOptimize  1.0
SW_Optimizer Class Reference
Inheritance diagram for SW_Optimizer:
Collaboration diagram for SW_Optimizer:

List of all members.

Public Member Functions

 SW_Optimizer (EvalFuncPtr fPtr=NULL, unsigned int dn=PROBLEM_DIMENSIONS, unsigned int sn=NUM_SETS, unsigned int pn=NUM_SOLUTIONS)
virtual bool init ()
 Initialize the optimizer.
virtual void free ()
 Free memory.
void setMaxFails (short m)
void setMaxSuccesses (short m)

Protected Member Functions

virtual void initSolutions (dim3, dim3)
 Initialize solutions.
virtual void fitnessEvaluation (dim3, dim3, bool first=false)
 Evaluate solutions.
virtual void step (dim3, dim3)
 Generate solutions for subsequent fitnessEvaluation.
virtual void update (dim3, dim3, bool first=false)
 Update population according to the algorithm and the results of fitnessEvaluation.

Protected Attributes

SolutionSet m_posSet
SolutionSet m_negSet

Detailed Description

Definition at line 25 of file SW_Optimizer.h.


Member Function Documentation

virtual void SW_Optimizer::fitnessEvaluation ( dim3  initializationGrid,
dim3  initializationBlock,
bool  first = false 
) [protected, virtual]

Evaluate solutions.

Parameters:
initializationGridorganization of the CUDA blocks
initializationBlockorganization of the CUDA threads
firstit signals if it is the first evaluation of the optimization

Implements IOptimizer.

virtual void SW_Optimizer::initSolutions ( dim3  initializationGrid,
dim3  initializationBlock 
) [protected, virtual]

Initialize solutions.

Parameters:
initializationGridorganization of the CUDA blocks
initializationBlockorganization of the CUDA threads

Implements IOptimizer.

virtual void SW_Optimizer::step ( dim3  initializationGrid,
dim3  initializationBlock 
) [protected, virtual]

Generate solutions for subsequent fitnessEvaluation.

Parameters:
initializationGridorganization of the CUDA blocks
initializationBlockorganization of the CUDA threads

Implements IOptimizer.

virtual void SW_Optimizer::update ( dim3  initializationGrid,
dim3  initializationBlock,
bool  first = false 
) [protected, virtual]

Update population according to the algorithm and the results of fitnessEvaluation.

Parameters:
initializationGridorganization of the CUDA blocks
initializationBlockorganization of the CUDA threads
firstit signals if it is the first evaluation of the optimization

Implements IOptimizer.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Enumerations Enumerator Defines