|
LibCudaOptimize
1.0
|


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 |
Definition at line 25 of file SW_Optimizer.h.
| virtual void SW_Optimizer::fitnessEvaluation | ( | dim3 | initializationGrid, |
| dim3 | initializationBlock, | ||
| bool | first = false |
||
| ) | [protected, virtual] |
Evaluate solutions.
| initializationGrid | organization of the CUDA blocks |
| initializationBlock | organization of the CUDA threads |
| first | it 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.
| initializationGrid | organization of the CUDA blocks |
| initializationBlock | organization of the CUDA threads |
Implements IOptimizer.
| virtual void SW_Optimizer::step | ( | dim3 | initializationGrid, |
| dim3 | initializationBlock | ||
| ) | [protected, virtual] |
Generate solutions for subsequent fitnessEvaluation.
| initializationGrid | organization of the CUDA blocks |
| initializationBlock | organization 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.
| initializationGrid | organization of the CUDA blocks |
| initializationBlock | organization of the CUDA threads |
| first | it signals if it is the first evaluation of the optimization |
Implements IOptimizer.