-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copy project #760
Comments
This feature could be implemented with a lot less code using the existing
Note that it is necessary to provide the names of a Report and Output file to the function so that |
Thank you, @LRossman, for the reply! It is a nice workaround, and it does exactly what I need. As in my Ph.D. I am looking to perform optimisation of design and control variables, thus requiring many EPS simulations, I will try these approaches and get back with a comparison of the execution times. I am also happy to do it myself and contribute to the project! I agree that an element-by-element copy is a delicate operation that would require a lot of coding. |
The API misses the possibility of creating a new instance of an
EN_Project
starting from an existing one.This feature is helpful when solving staged design problems, and the evaluation of the designs at the several steps can be run in parallel. However, the designs evaluated at the different steps usually modify the previous steps. Hence, an
EN_copyproject
function would allow the application of the changes in the first step, then copy this modified version and apply the second interval changes, and so on...This function would also help run multiple instances of the same network in a probabilistic setup (e.g., sampling the demand from a distribution). Copying an object in memory instead of loading it from the file is more efficient.
The proposed function to be added in the "Project functions" section would look something like:
and its pseduo-implementation
The text was updated successfully, but these errors were encountered: