NREL / SAM

System Advisor Model (SAM)
BSD 3-Clause "New" or "Revised" License
337 stars 139 forks source link

REopt API call for default PV Battery / Commercial returns battery size of zero #1742

Closed cpaulgilman closed 2 months ago

cpaulgilman commented 6 months ago

For the default PV Battery / Commercial case, clicking Get size and dispatch on the Battery Cell and System page intermittently returns an optimal battery size of zero.

image

After trying three times:

image

brtietz commented 5 months ago

As of 4/17, this has changed to:

image

Given that the default case has net metering, we may need to assess implementing some of what is discussed here: https://github.com/NREL/REopt-Analysis-Scripts/discussions/149 for the SAM API call.

brtietz commented 4 months ago

Notes from the REopt team:

cpaulgilman commented 2 months ago

Additional note from REopt team:

...the error was caused by the very large numbers in the “max” fields of the demand and energy rate structures. Some of these were ~10^38. HiGHS isn’t able to handle numbers that big in the problem matrix.

...but in the meantime you can either:

  • Use SCIP, which didn’t seem to have this issue
  • Use HiGHS, and manually or programmatically reduce the number of digits in the max energy and demand values within the "urdb_response”