esa / pagmo_plugins_nonfree

A pagmo affiliated package (https://github.com/esa/pagmo2) adding commercial solvers to the list of solvers/algorithms: SNOPT7, WORHP
GNU General Public License v3.0
10 stars 9 forks source link

Fixing SNOPT not communicating the number of function evaluations to pagmo #25 #26

Open castanhas98 opened 2 years ago

castanhas98 commented 2 years ago

Attempt to fix #25, implementing @darioizzo's suggestion.

Added a test check, to make sure that the number of function evaluations shown by the UDP reflects the function evaluations made by SNOPT + the ones due to generating the population.

The modified test did not pass without the changes, but passed afterwards.

I tried to run the Python test as well, but could not figure out how to do it. If you deem it necessary and can give me some guidance on how to run it, I can do it and include the test instance to check for whether the number of function evaluations is correct.

Cheers!