We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc6ec82 commit c55b4eaCopy full SHA for c55b4ea
pyoptsparse/postprocessing/OptView_baseclass.py
@@ -161,7 +161,7 @@ def OptimizationHistory(self):
161
self.storedIters = False
162
163
# Raise warning for IPOPT's duplicated history
164
- if db["metadata"]["optimizer"] == "IPOPT" and "iter" not in db["0"].keys():
+ if "metadata" in db and db["metadata"]["optimizer"] == "IPOPT" and "iter" not in db["0"].keys():
165
pyOptSparseWarning(
166
"The optimization history file has duplicated entries at every iteration, and the OptView plot is not correct. "
167
+ "Re-run the optimization with a current version of pyOptSparse to generate a correct history file."
0 commit comments