Hi,
Im having problems with the code that I have attached in the message. The main point of the code is to set all the variables and simulate the case, but when i run the code and click on the simulate botton on SAM the following pop-up window appears.
I also detected that when i run the code the variable "grid_curtailment" is not being set, but when I delete that line of code, it operates properly. Why does this happen?