Skip to content

Commit fc05435

Browse files
committed
Write initial objective function value in each epf iteration
1 parent 34d8514 commit fc05435

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

popt/loop/optimize.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,10 @@ def run_loop(self):
205205
self.ftol *= self.epf['tol_factor'] # decrease tolerance
206206
self.obj_func_values = self.fun(self.xk, epf = self.epf)
207207
self.iteration = 0
208+
info_str = ' {:<10} {:<10} {:<15} {:<15} {:<15} '.format('iter', 'alpha_iter',
209+
'obj_func', 'step-size', 'cov[0,0]')
210+
self.logger.info(info_str)
211+
self.logger.info(' {:<21} {:<15.4e}'.format(self.iteration, np.mean(self.obj_func_values)))
208212
self.epf_iteration += 1
209213
optimize_result = ot.get_optimize_result(self)
210214
ot.save_optimize_results(optimize_result)

0 commit comments

Comments
 (0)