2#include "FunctionMinEvalOp.h"
3#include <ECF/AlgGenHookeJeeves.h>
31int main(
int argc,
char **argv)
34 for(uint function = 1; function <= 30; function++) {
37 std::ifstream fin(argv[1]);
39 std::cerr <<
"Error opening config file! (" << argv[1] <<
")\n";
43 std::string xmlFile, temp;
46 xmlFile +=
"\n" + temp;
51 std::string funcName = uint2str(function);
52 std::string logName =
"log", statsName =
"stats";
57 logName += uint2str(function) +
".txt";
58 statsName += uint2str(function) +
".txt";
62 XMLNode xConfig = XMLNode::parseString(xmlFile.c_str(),
"ECF", &results);
63 XMLNode registry = xConfig.getChildNode(
"Registry");
65 XMLNode func = registry.getChildNodeWithAttribute(
"Entry",
"key",
"cec.function");
66 func.updateText(funcName.c_str());
67 XMLNode log = registry.getChildNodeWithAttribute(
"Entry",
"key",
"log.filename");
68 log.updateText(logName.c_str());
69 XMLNode stats = registry.getChildNodeWithAttribute(
"Entry",
"key",
"batch.statsfile");
70 stats.updateText(statsName.c_str());
73 std::ofstream fout(argv[1]);
74 fout << xConfig.createXMLString(
true);
79 StateP state (
new State);
84 state->initialize(argc, argv);
Function minimization evaluation class.
State class - backbone of the framework.