Skip to content

Commit

Permalink
Only use fixed relationships between capacities if design variables a…
Browse files Browse the repository at this point in the history
…re not provided
  • Loading branch information
holgerteichgraeber committed Oct 23, 2019
1 parent a2c891f commit 78d08d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/optim_problems/run_opt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ function run_opt(ts_data::ClustData,
setup_opt_fix_design_variables!(cep, ts_data, opt_data, config["scale"], config["fixed_design_variables"])
end
#Setup constraints that bind the capacities of different capacities with each other
setup_opt_intertech_cap!(cep, ts_data, opt_data, config["scale"])
#If design variables are provided, this is already done by the provided variables
if isempty(config["fixed_design_variables"])
setup_opt_intertech_cap!(cep, ts_data, opt_data, config["scale"])
end
# Add existing infrastructure to
setup_opt_existing_infrastructure!(cep, ts_data, opt_data, config["scale"])
# Limit the infrastructure expansion
Expand Down

0 comments on commit 78d08d6

Please sign in to comment.