Public Member Functions | Private Member Functions | Private Attributes

LibGeoDecomp::PatternOptimizer Class Reference

#include <patternoptimizer.h>

Inherits LibGeoDecomp::Optimizer.

Collaboration diagram for LibGeoDecomp::PatternOptimizer:
Collaboration graph

List of all members.

Public Member Functions

 PatternOptimizer (SimulationParameters params, std::vector< double > stepwidth=std::vector< double >(), std::vector< double > minStepwidth=std::vector< double >())
virtual SimulationParameters operator() (int steps, Evaluator &eval)

Private Member Functions

bool reduceStepwidth ()
 returns false if all parameters alrady on minimum
std::vector< SimulationParametersgenPattern (SimulationParameters middle)
std::size_t getMaxPos (const std::vector< SimulationParameters > &pattern, Evaluator &eval, std::size_t oldMiddle)
std::string patternToString (std::vector< SimulationParameters > pattern)

Private Attributes

std::vector< double > stepwidth
std::vector< double > minStepwidth

Constructor & Destructor Documentation

LibGeoDecomp::PatternOptimizer::PatternOptimizer ( SimulationParameters  params,
std::vector< double >  stepwidth = std::vector<double>(),
std::vector< double >  minStepwidth = std::vector<double>() 
) [explicit]

Member Function Documentation

std::vector< SimulationParameters > LibGeoDecomp::PatternOptimizer::genPattern ( SimulationParameters  middle  )  [private]
std::size_t LibGeoDecomp::PatternOptimizer::getMaxPos ( const std::vector< SimulationParameters > &  pattern,
Evaluator eval,
std::size_t  oldMiddle 
) [private]
SimulationParameters LibGeoDecomp::PatternOptimizer::operator() ( int  steps,
Evaluator eval 
) [virtual]

Reimplemented from LibGeoDecomp::Optimizer.

std::string LibGeoDecomp::PatternOptimizer::patternToString ( std::vector< SimulationParameters pattern  )  [private]
bool LibGeoDecomp::PatternOptimizer::reduceStepwidth (  )  [private]

returns false if all parameters alrady on minimum

Member Data Documentation

std::vector<double> LibGeoDecomp::PatternOptimizer::minStepwidth [private]
std::vector<double> LibGeoDecomp::PatternOptimizer::stepwidth [private]

The documentation for this class was generated from the following files: