-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
29790cb
commit 4a8cff2
Showing
11 changed files
with
197 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#Result | ||
Here, we describe the optimization result. | ||
|
||
## Types | ||
The optimization results are provided in an `OptResult` struct: | ||
```@docs | ||
OptResult | ||
``` | ||
## Equations | ||
!!! note | ||
The model tracks how it is setup and which equations are used. This can help you to understand the models exact configuration without looking up the source code. | ||
|
||
The information of the model setup can be checked out the following way: | ||
```@setup 3 | ||
using CapacityExpansion | ||
using Clp | ||
optimizer=Clp.Optimizer | ||
state="GER_1" | ||
years=[2016] | ||
ts_input_data = load_timeseries_data_provided(state;T=24, years=years) | ||
cep_data = load_cep_data_provided(state) | ||
ts_clust_data = run_clust(ts_input_data;method="kmeans",representation="centroid",n_init=10,n_clust=5).best_results | ||
``` | ||
```@example 3 | ||
result = run_opt(ts_clust_data,cep_data,optimizer;descriptor="Model Name") | ||
println.(result.opt_info["model"]) | ||
``` | ||
## Variables in Result | ||
All variables are provided as dense `OptVariable` structs and can be indexed: | ||
```@docs | ||
OptVariable | ||
``` | ||
The variables can be of different type as explained in [Variables](@ref). The different groups of variables can be extracted from the `OptResult` based on the `variable_type`: | ||
```@docs | ||
get_cep_variables | ||
get_cep_slack_variables | ||
get_cep_design_variables | ||
``` | ||
The extraction of design variables is e.g. necessary for a [Second stage operational validation step](@ref), which validates the energy system design on a different time series. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.