Skip to content

Commit

Permalink
Test demand
Browse files Browse the repository at this point in the history
  • Loading branch information
YoungFaithful committed Oct 3, 2019
1 parent bf9455e commit ca6d60a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/optim_problems/set.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function setup_opt_set_tech!(set::Dict{String,Dict{String,Array}},
end
end
# Test if demand exists
if empty(intersect(set["tech"]["demand"], set["tech"]["exist_inf"]))
if intersect(set["tech"]["demand"], set["tech"]["exist_inf"])==Array{String,1}()
@warn "No existing demand is provided - Ensure that `run_opt` option `infrastructure` is correct and looks like: `Dict{String,Array}(\"existing\"=>[\"demand\", ...])` or `Dict{String,Array}(\"existing\"=>[\"all\"])`"
end
return set
Expand Down

0 comments on commit ca6d60a

Please sign in to comment.