Karwan86
Civil/Environmental
- Mar 14, 2016
- 1
Dear All
I am working on a model, an excel-base pump scheduling optimization model.
The structure of my coding in the interface as following:
ENinitH
Do
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).
ENrunH
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, and given an example.
Regards
Karwan
I am working on a model, an excel-base pump scheduling optimization model.
The structure of my coding in the interface as following:
ENinitH
Do
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).
ENrunH
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, and given an example.
Regards
Karwan