To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 032d7d21 authored by wadaniel's avatar wadaniel

adjusted skeleton code to new korali interface

parent 4e406498
......@@ -20,7 +20,7 @@ void direct(korali::Sample& k)
double sse = 0.0; // TODO
k["Evaluation"] = -sse;
k["F(x)"] = -sse;
}
......
......@@ -7,8 +7,7 @@ int main(int argc, char* argv[])
{
// Configuring Problem.
auto e = korali::Experiment();
e["Problem"]["Type"] = "Evaluation/Direct/Basic";
e["Problem"]["Objective"] = "Maximize";
e["Problem"]["Type"] = "Optimization/Stochastic";
e["Problem"]["Objective Function"] = &direct;
// Defining the problem's variables.
......@@ -30,7 +29,7 @@ int main(int argc, char* argv[])
// Configuring CMA-ES parameters
e["Solver"]["Type"] = "Optimizer/CMAES";
e["Solver"]["Type"] = "CMAES";
e["Solver"]["Population Size"] = 8;
e["Solver"]["Termination Criteria"]["Min Value Difference Threshold"] = 1e-7;
e["Solver"]["Termination Criteria"]["Max Generations"] = 100;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment