"Optimum = 0" when printing solution output #241
-
Hello everyone, I'm starting my work with optimizers with pyOptSparse at the moment. Therefore I tried to understand to complete output given from the optimizer, where I stumbled upon the "Optimum" output for the objective. I for example get:
This optimum seems to be initialized to 0 and then never changed in the pyOptSparse repo code - as I'v checked the pyOptSparse code with
An Optimum of 0 seems odd for a minimizer, that can also go way down the negative function values for the objective. But it also does not seem to impact any part of the optimization, as I don't find it in the code... Thanks a lot for providing this tool :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello Lavinia, The objective function value at the final iteration is provided in the Hope this helps. Marco |
Beta Was this translation helpful? Give feedback.
Hello Lavinia,
It looks like you actually caught a small bug that got undetected for some time! That additional
Optimum
printout is misleading and it is not providing any useful information, we will remove it soon (see this PR).The objective function value at the final iteration is provided in the
Value
column. Depending on the optimizer, the additional printout files will include more information on the optimization path and parameters. You can also use optview to visualize the data from the history file (whose name is defined via thestoreHistory
attribute in theOptimizer
instance, eg in the example scripts:sol = opt(optProb, sens=.., storeHistory="<yourHistoryfilename>.hst")
).Hope …