Commit efbe3e71 authored by Tjerk Vreeken's avatar Tjerk Vreeken

Inlude function_range in repr() of StateGoal

The function_range was already added to the repr() of Goal, but not to
StateGoal yet. We add it there as well to provide helpful information
when e.g. the function_range derived from the bounds and the target
min/max do not agree.
parent e7b7c863
......@@ -282,8 +282,8 @@ class StateGoal(Goal, metaclass=ABCMeta):
return optimization_problem.state(self.state)
def __repr__(self):
return '{}(priority={}, state={}, target_min={}, target_max={})'.format(
self.__class__, self.priority, self.state, self.target_min, self.target_max)
return '{}(priority={}, state={}, target_min={}, target_max={}, function_range={})'.format(
self.__class__, self.priority, self.state, self.target_min, self.target_max, self.function_range)
class GoalProgrammingMixin(OptimizationProblem, metaclass=ABCMeta):
......
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