Open dhblum opened 3 years ago
@dhblum I get similar results to yours on Python 3 with Scipy 1.4.1.
I tend to remember that there has been significant updates to scipy.optimize
.
Some default options may have changed since 0.19, causing the issue. I will look into it.
I am able to obtain the correct results by using less restrictive bounds for the compressor parameters (such as the ones commented out here).
I have not yet been able to compare Python 2 vs 3 and Scipy 0.19 vs 1.4.
@MassimoCimmino I collaborate with Dave on the same project and I am catching up on python/modelica models.
Thanks for looking into the issue. I also get better results with Python 3.7 and Scipy 1.4 when the bounds are made larger, which is counter-intuitive to me.
@sjchakra I was able to test out the script in Python 2.7 and compare scipy 0.19 and scipy 1.0.
It seems the issue was introduced by scipy 1.0 and does not have to do with Python 3. Il will try to find what change in scipy.optimize
caused the issue.
Updating the bounds for the calibration may very well be the proper fix.
When running
Buildings/Resources/src/fluid/heatpumps/calibration/Examples/example_calibration.py
with Python 3.8.3 and Scipy 1.4.1 (using conda, and in Ubuntu 18.04), the results of the calibration are as follows, which DO NOT match the associated paper reference results:
However, with Python 2.7.17 and Scipy 0.19.1 (in Ubuntu 18.04), the results of the calibration are as follows, which DO match the associated paper reference results:
I wanted to report this behavior in case other users find the same thing. @MassimoCimmino Do you find the same thing? Could it be just due to the different version of Scipy?