Commit dc687085 authored by Sebastian Hörl's avatar Sebastian Hörl
Browse files

fix config

parent 318ec86f
......@@ -25,8 +25,7 @@ public class RunASTRA2018002 {
// Load config
Config config = ConfigUtils.loadConfig(cmd.getOptionStrict("config-path"));
config.controler().setLastIteration(10);
config.strategy().clearStrategySettings();
StrategySettings strategy = new StrategySettings();
......@@ -44,6 +43,8 @@ public class RunASTRA2018002 {
strategy.setStrategyName("KeepLastSelected");
strategy.setWeight(0.8);
config.strategy().addStrategySettings(strategy);
cmd.applyConfiguration(config);
// Load scenario
Scenario scenario = ScenarioUtils.createScenario(config);
......
Supports Markdown
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