Skip to content
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

Refactor some of the code related to model creation #886

Merged
merged 2 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion docs/src/20-tutorials.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,16 @@ Finally, we also need dataframes that store the linearized indexes of the variab
dataframes = construct_dataframes(graph, representative_periods, constraints_partitions, years)
```

And we need the sets.

```@example manual
sets = create_sets(graph, years)
```

Now we can compute the model.

```@example manual
model = create_model(graph, representative_periods, dataframes, years, timeframe, groups, model_parameters)
model = create_model(graph, sets, representative_periods, dataframes, years, timeframe, groups, model_parameters)
```

Finally, we can compute the solution.
Expand Down
2 changes: 2 additions & 0 deletions src/TulipaEnergyModel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ using TimerOutputs: TimerOutput, @timeit

const to = TimerOutput()

include("utils.jl")
include("input-schemas.jl")
include("model-parameters.jl")
include("structures.jl")
include("model-preparation.jl")
include("io.jl")
include("create-model.jl")
include("solver-parameters.jl")
Expand Down
Loading
Loading