Skip to content

Commit

Permalink
Fix tutorials
Browse files Browse the repository at this point in the history
  • Loading branch information
datejada committed Jan 27, 2025
1 parent 48b9c48 commit 3b8acca
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions docs/src/20-tutorials.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ save_solution!(energy_problem)
```

The solutions will be saved in the variable and constraints tables.
To save these tables to files, use
To save the solution to CSV files, you can use [`export_solution_to_csv_files`](@ref)

```@example manual-energy-problem
mkdir("output_folder")
save_solution_to_file("output_folder", energy_problem)
export_solution_to_csv_files("output_folder", energy_problem)
```

The objective value and the termination status are also included in the energy problem:
Expand Down Expand Up @@ -154,12 +154,3 @@ For the complete list of parameters, check your chosen optimizer.

These parameters can also be passed via a file. See the
[`read_parameters_from_file`](@ref) function for more details.

### Writing the output to CSV

To save the solution to CSV files, you can use [`export_solution_to_csv_files`](@ref):

```@example solution
mkdir("outputs")
export_solution_to_csv_files("outputs", energy_problem)
```

0 comments on commit 3b8acca

Please sign in to comment.