Skip to content

Commit

Permalink
More robust output
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfjl committed Aug 9, 2024
1 parent 3e03b57 commit 23c28c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion popt/loop/optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def run_loop(self):
logger.info(f' -----> EPF-EnOpt: {self.epf_iteration}, {r} (outer iteration, penalty factor)') # print epf info
else:
logger.info(f' -----> EPF-EnOpt: converged, no variables changed more than {conv_crit*100} %') # print epf info
final_obj_no_penalty = str(round(self.fun(self.mean_state),4))
final_obj_no_penalty = str(round(float(self.fun(self.mean_state)),4))
logger.info(f' -----> EPF-EnOpt: objective value without penalty = {final_obj_no_penalty}') # print epf info

def save(self):
Expand Down

0 comments on commit 23c28c0

Please sign in to comment.