You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of using @Elapsed and saving the time inside
EnergyProblem, use TimerOuputs.
Time the inner parts of the EnergyProblem constructor.
ClosesTulipaEnergy#680
abelsiqueira
added a commit
to abelsiqueira/TulipaEnergyModel.jl
that referenced
this issue
Jun 27, 2024
To avoid changing the EnergyProblem structure too much
because of timing, we create a timings dictionary.
We time the constructor of EnergyProblem instead of
the function that reads the CSV folder. This way
we time the functions inside the constructor, which
are the expensive functions in the input.
ClosesTulipaEnergy#680
What and Why
The
create_energy_problem_from_csv_folder
function times two calls:create_connection...
which reads the CSV files into the connectionEnergyProblem(connection)
which reads the dataframes input, creates internal structures and compute constraints partitions.Most timing should happen inside
EnergyProblem(connection)
, then it also shows when called directly.Possible Drawbacks
No response
Related Issues
No response
The text was updated successfully, but these errors were encountered: