Commit eb3a953d authored by Teresa Piovesan's avatar Teresa Piovesan Committed by Tjerk Vreeken

Fix error in scale_by_problem_size implementation

Typo in the scaling of the accumulated objective in the path_objective
parent 72053fbb
......@@ -393,7 +393,7 @@ class GoalProgrammingMixin(OptimizationProblem, metaclass=ABCMeta):
acc_objective = ca.sum1(ca.vertcat(*[o(self, ensemble_member) for o in self.__subproblem_path_objectives]))
if self.goal_programming_options()['scale_by_problem_size']:
acc_objective = acc_objective / len(self.__subproblem_objectives) / len(self.times())
acc_objective = acc_objective / len(self.__subproblem_path_objectives) / len(self.times())
return acc_objective
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