I am working on a model, an excel-base pump scheduling optimization model.
The structure of my coding in the interface as following:
Pump Setting (on and off)
According to the Toolkit user manual, the toolkit function for pump setting during the simulation is ("EN_STATUS" or 11).
Now, I want to save the results of the model in the end of the simulation into an epanet inp file. For doing that I am using (ENsaveinpfile (ActiveWorkbook.Path + "\New Solution.inp"). But, this function (ENsaveinpfile) is actually not saving the interface results, instead it is saving the initial state of the inp file.
Please, I was wondering weather I am wrong in the structure of the coding or I have to use another toolkit function to save the model result in an epanet inp file.
Many Thanks for any advice.