/// <summary> /// Apply the option to the candidate and store the agent's evaluation. /// </summary> public void ApplyOption(option opt, candidate cand, bool doMinimize) { cand.graph.globalVariables.Add(cand.f0); // track fitness values of previous states opt.apply(cand.graph, null); cand.addToRecipe(opt); if (doMinimize) { cand.graph = Minimize(cand.graph); } cand.graph = OBFunctions.tagconvexhullpoints(cand.graph); }
/// <summary> /// Apply the option to the candidate and store the agent's evaluation. /// </summary> public void ApplyOption(option opt, candidate cand, bool doMinimize, bool doEvaluate = false) { cand.graph.globalVariables.Add(cand.f0); // track fitness values of previous states // Minimize and evaluate opt.apply(cand.graph, null); cand.addToRecipe(opt); if (doMinimize) { cand.graph = Minimize(cand.graph); } if (doEvaluate) { cand.f0 = Evaluate(cand); } // MC Is this like line 64? by the way, tracking fitness here is better than in cand.graph }