There was an error while loading. Please reload this page.
1 parent 1bfe90d commit cb89213Copy full SHA for cb89213
1 file changed
modopt/external_libraries/ipopt/ipopt.py
@@ -177,8 +177,7 @@ def solve(self):
177
start_time = time.time()
178
results = solver(x0=x0, **bounds)
179
stats = solver.stats()
180
- iterations = stats['iterations']
181
- stats = {key: stats[key] for key in stats.keys() if key not in ['iterations']}
+ iterations = stats.pop('iterations')
182
self.total_time = time.time() - start_time
183
184
self.results = {
0 commit comments