Skip to content

Commit

Permalink
Untransform x when evaluating callbacks.
Browse files Browse the repository at this point in the history
  • Loading branch information
r.jaepel committed Jan 9, 2024
1 parent 56c377f commit a83d94b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CADETProcess/optimization/optimizationProblem.py
Original file line number Diff line number Diff line change
Expand Up @@ -1585,7 +1585,7 @@ def evaluate_callbacks(self, ind, current_iteration=1, force=False):
callback._current_iteration = current_iteration

try:
self._evaluate(ind.x, callback, force)
self._evaluate(ind.x_transformed, callback, force, untransform=True)
except CADETProcessError:
self.logger.warning(
f'Evaluation of {callback} failed at {ind.x}.'
Expand Down

0 comments on commit a83d94b

Please sign in to comment.