22 #include <boost/filesystem/path.hpp> 23 #include <boost/shared_ptr.hpp> 24 #include <boost/property_tree/ptree.hpp> 25 #include <boost/property_tree/xml_parser.hpp> 27 #include "../combinatorial_trainer/ObjectRelation.hpp" 28 #include "../combinatorial_trainer/EvaluationResult.hpp" 29 #include "../combinatorial_trainer/Topology.hpp" 30 #include "../combinatorial_trainer/EvaluationResult.hpp" 31 #include "../combinatorial_optimization/CostFunction.hpp" 35 using boost::filesystem::path;
36 using boost::property_tree::ptree;
46 void processHistory(std::vector<std::vector<std::pair<TopologyPtr, unsigned int>>>& history,
63 int selectedTopologyIndex = -1;
64 unsigned int selectedTopologyType = 0;
76 int lastSelectedIndex = -1;
114 std::vector<ptree>
createSVG(std::vector<OptimizationRun> optimizationRuns);
115 ptree
genCircleSVG(
double radius,
int x,
int y,
const std::string& circleColor,
116 bool highlight,
const std::string& highlightColor);
118 ptree
genTextSVG(
const std::string& lineOne,
const std::string& lineTwo,
119 const std::string& lineThree,
int x,
int y);
121 unsigned int height,
const std::string& colorString);
124 ptree
createXML(
const std::string& patternName);
131 double minEvaluationDuration,
132 double maxEvaluationDuration);
134 std::vector<int>
calculateXValues(
unsigned int numTopologies,
unsigned int imageWidth);
137 std::vector<std::vector<int>>& seperatorLinePositions,
138 unsigned int& imgWidth,
unsigned int& imgHeight);
const std::string ATR_CHOSEN_INDEX
const unsigned int MIN_CIRCLE_RADIUS
double calculateCircleRadius(double evaluationDuration, double minEvaluationDuration, double maxEvaluationDuration)
std::string mCurrentPatternName
const std::string ATR_PATTERN_NAME
boost::shared_ptr< CostFunction< InstanceType >> CostFunctionPtr
const unsigned int MAX_CIRCLE_RADIUS
std::map< std::string, std::vector< OptimizationRun > > mPatternNameToOptimizationRuns
void calculatePositions(std::vector< OptimizationRun > &optimizationRuns, std::vector< std::vector< int >> &seperatorLinePositions, unsigned int &imgWidth, unsigned int &imgHeight)
ptree createXML(const std::string &patternName)
ptree genCircleSVG(double radius, int x, int y, const std::string &circleColor, bool highlight, const std::string &highlightColor)
double maxAverageRecognitionRuntime
std::vector< TopologyContainer > evaluatedTopologies
const unsigned int LINE_WIDTH
const std::string ATR_EVALUATION_RESULT
const unsigned int FONT_SIZE
double minAverageRecognitionRuntime
const std::string NAME_OPTIMIZATION_RUN
const unsigned int MAX_TOPOLOGIES_PER_LINE
boost::shared_ptr< SVGHelper > SVGHelperPtr
const std::string ATR_ROUND_NUMBER
const std::string COLOR_BEST
ptree genTextSVG(const std::string &lineOne, const std::string &lineTwo, const std::string &lineThree, int x, int y)
ptree genTopologyContainerXML(TopologyContainer tc)
const std::string COLOR_RANDOM_WALK_HIGHLIGHT
const std::string COLOR_HIGHLIGHT
std::vector< OptimizationRound > mAllEvaluationRounds
std::vector< int > calculateXValues(unsigned int numTopologies, unsigned int imageWidth)
const std::string ATR_RELATION_IDS
SVGHelper(path outputPath)
ptree genRectSVG(int x, int y, unsigned int width, unsigned int height, const std::string &colorString)
const std::string COLOR_FIRST_HIGHLIGHT
const std::string COLOR_RANDOM_RESTART_HIGHLIGHT
std::vector< ptree > createSVG(std::vector< OptimizationRun > optimizationRuns)
ptree genSeparatorLineSVG(int y, int x1, int x2)
const unsigned int HIGHLIGHT_WIDTH
ptree genPolylineSVG(std::vector< std::string > linePoints)
ptree genEvaluationRoundXML(unsigned int roundNumber, unsigned int chosenIndex)
this namespace contains all generally usable classes.
OptimizationRound mCurrentOptimizationRound
OptimizationRun mCurrentOptimizationRun
const std::string NAME_ROUND
void processHistory(std::vector< std::vector< std::pair< TopologyPtr, unsigned int >>> &history, CostFunctionPtr< TopologyPtr > globalCostFunction, const std::string &patternName)
const std::string NAME_TOPOLOGY
std::string genRGBString(double cost, double minCost, double maxCost)
std::vector< OptimizationRound > allRounds
const unsigned int PADDING
const std::string COLOR_LAST_HIGHLIGHT