Public Member Functions | Private Member Functions | Private Attributes | List of all members
ISM::OptimizationRunner Class Reference

#include <OptimizationRunner.hpp>

Public Member Functions

 OptimizationRunner (TopologyManagerPtr topologyManager, DocumentationHelperPtr documentationHelper, OptimizationAlgorithmParameters optimizationAlgorithmParameters, CostFunctionParameters costFunctionParameters, bool storeFullyMeshedISM, bool storeStartTopologyISM)
 
std::pair< double, TreePtrrunOptimization (const std::string &pattern, TopologyPtr startTopology=NULL)
 

Private Member Functions

void analyzeStarAndFullyMeshedTopologies ()
 
void documentOptimzationRun (TopologyPtr bestTopology)
 
void initCostFunction ()
 
void initOptimizationAlgorithm ()
 
void logAnalysingStarAndFullyMeshedTopologies ()
 
void logInvalidStartTopology ()
 
void logOptimizationFinish (TopologyPtr bestTopology)
 
void logOptimizationStart (const std::string &patternName)
 
void logRandomRestart ()
 
void logSelectedStartTopology (TopologyPtr bestStartTopology)
 
void logStarsAndFullyMeshedResult ()
 
void logStartTopologies (const std::vector< TopologyPtr > &startTopologies)
 
void logWeightedSum ()
 
void prepareOptimizationRun (std::vector< TopologyPtr > &startTopologies)
 
TopologyPtr selectStartTopology (std::vector< TopologyPtr > &startTopologies)
 

Private Attributes

const char * LOG_COLOR_OPTIMIZATION_STRATEGY = LogHelper::LOG_COLOR_DEFAULT
 
CostFunctionPtr< TopologyPtrmCostFunction
 
CostFunctionParameters mCostFunctionParameters
 
std::string mCurrentPatternName
 
std::uniform_real_distribution< double > mDistribution = std::uniform_real_distribution<double>(0.0, 1.0)
 
DocumentationHelperPtr mDocumentationHelper
 
TopologyPtr mFullyMeshedTopology
 
std::default_random_engine mGenerator
 
double mMaxAverageRecognitionRuntime
 
unsigned int mMaxFalsePositives
 
double mMinAverageRecognitionRuntime
 
unsigned int mMinFalsePositives
 
OptimizationAlgorithmPtr< TopologyPtrmOptimizationAlgorithm
 
OptimizationAlgorithmParameters mOptimizationAlgorithmParameters
 
std::vector< TopologyPtrmStarTopologies
 
ptime mStartTime
 
bool mStoreFullyMeshedISM
 
bool mStoreStartTopologyISM
 
TopologyManagerPtr mTopologyManager
 

Detailed Description

Definition at line 46 of file OptimizationRunner.hpp.

Constructor & Destructor Documentation

ISM::OptimizationRunner::OptimizationRunner ( TopologyManagerPtr  topologyManager,
DocumentationHelperPtr  documentationHelper,
OptimizationAlgorithmParameters  optimizationAlgorithmParameters,
CostFunctionParameters  costFunctionParameters,
bool  storeFullyMeshedISM,
bool  storeStartTopologyISM 
)
inline

Definition at line 50 of file OptimizationRunner.hpp.

Member Function Documentation

void ISM::OptimizationRunner::analyzeStarAndFullyMeshedTopologies ( )
private

Definition at line 133 of file OptimizationRunner.cpp.

void ISM::OptimizationRunner::documentOptimzationRun ( TopologyPtr  bestTopology)
private

Definition at line 278 of file OptimizationRunner.cpp.

void ISM::OptimizationRunner::initCostFunction ( )
private

Definition at line 170 of file OptimizationRunner.cpp.

void ISM::OptimizationRunner::initOptimizationAlgorithm ( )
private

Definition at line 189 of file OptimizationRunner.cpp.

void ISM::OptimizationRunner::logAnalysingStarAndFullyMeshedTopologies ( )
private

Definition at line 337 of file OptimizationRunner.cpp.

void ISM::OptimizationRunner::logInvalidStartTopology ( )
private

Definition at line 359 of file OptimizationRunner.cpp.

void ISM::OptimizationRunner::logOptimizationFinish ( TopologyPtr  bestTopology)
private

Definition at line 311 of file OptimizationRunner.cpp.

void ISM::OptimizationRunner::logOptimizationStart ( const std::string &  patternName)
private

Definition at line 304 of file OptimizationRunner.cpp.

void ISM::OptimizationRunner::logRandomRestart ( )
private

Definition at line 367 of file OptimizationRunner.cpp.

void ISM::OptimizationRunner::logSelectedStartTopology ( TopologyPtr  bestStartTopology)
private

Definition at line 324 of file OptimizationRunner.cpp.

void ISM::OptimizationRunner::logStarsAndFullyMeshedResult ( )
private

Definition at line 347 of file OptimizationRunner.cpp.

void ISM::OptimizationRunner::logStartTopologies ( const std::vector< TopologyPtr > &  startTopologies)
private

Definition at line 375 of file OptimizationRunner.cpp.

void ISM::OptimizationRunner::logWeightedSum ( )
private
void ISM::OptimizationRunner::prepareOptimizationRun ( std::vector< TopologyPtr > &  startTopologies)
private

Definition at line 91 of file OptimizationRunner.cpp.

std::pair< double, TreePtr > ISM::OptimizationRunner::runOptimization ( const std::string &  pattern,
TopologyPtr  startTopology = NULL 
)

Definition at line 33 of file OptimizationRunner.cpp.

TopologyPtr ISM::OptimizationRunner::selectStartTopology ( std::vector< TopologyPtr > &  startTopologies)
private

Definition at line 239 of file OptimizationRunner.cpp.

Member Data Documentation

const char* ISM::OptimizationRunner::LOG_COLOR_OPTIMIZATION_STRATEGY = LogHelper::LOG_COLOR_DEFAULT
private

Definition at line 113 of file OptimizationRunner.hpp.

CostFunctionPtr<TopologyPtr> ISM::OptimizationRunner::mCostFunction
private

Definition at line 69 of file OptimizationRunner.hpp.

CostFunctionParameters ISM::OptimizationRunner::mCostFunctionParameters
private

Definition at line 73 of file OptimizationRunner.hpp.

std::string ISM::OptimizationRunner::mCurrentPatternName
private

Definition at line 78 of file OptimizationRunner.hpp.

std::uniform_real_distribution<double> ISM::OptimizationRunner::mDistribution = std::uniform_real_distribution<double>(0.0, 1.0)
private

Definition at line 76 of file OptimizationRunner.hpp.

DocumentationHelperPtr ISM::OptimizationRunner::mDocumentationHelper
private

Definition at line 68 of file OptimizationRunner.hpp.

TopologyPtr ISM::OptimizationRunner::mFullyMeshedTopology
private

Definition at line 85 of file OptimizationRunner.hpp.

std::default_random_engine ISM::OptimizationRunner::mGenerator
private

Definition at line 75 of file OptimizationRunner.hpp.

double ISM::OptimizationRunner::mMaxAverageRecognitionRuntime
private

Definition at line 91 of file OptimizationRunner.hpp.

unsigned int ISM::OptimizationRunner::mMaxFalsePositives
private

Definition at line 88 of file OptimizationRunner.hpp.

double ISM::OptimizationRunner::mMinAverageRecognitionRuntime
private

Definition at line 90 of file OptimizationRunner.hpp.

unsigned int ISM::OptimizationRunner::mMinFalsePositives
private

Definition at line 87 of file OptimizationRunner.hpp.

OptimizationAlgorithmPtr<TopologyPtr> ISM::OptimizationRunner::mOptimizationAlgorithm
private

Definition at line 70 of file OptimizationRunner.hpp.

OptimizationAlgorithmParameters ISM::OptimizationRunner::mOptimizationAlgorithmParameters
private

Definition at line 72 of file OptimizationRunner.hpp.

std::vector<TopologyPtr> ISM::OptimizationRunner::mStarTopologies
private

Definition at line 84 of file OptimizationRunner.hpp.

ptime ISM::OptimizationRunner::mStartTime
private

Definition at line 79 of file OptimizationRunner.hpp.

bool ISM::OptimizationRunner::mStoreFullyMeshedISM
private

Definition at line 81 of file OptimizationRunner.hpp.

bool ISM::OptimizationRunner::mStoreStartTopologyISM
private

Definition at line 82 of file OptimizationRunner.hpp.

TopologyManagerPtr ISM::OptimizationRunner::mTopologyManager
private

Definition at line 67 of file OptimizationRunner.hpp.


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


asr_lib_ism
Author(s): Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Mehlhaus Jonas, Meißner Pascal, Qattan Mohamad, Reckling Reno, Stroh Daniel
autogenerated on Wed Jan 8 2020 04:02:41