We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
get_cmap(::OptimizationSystem)
1 parent 5fb0eff commit 3e33d96Copy full SHA for 3e33d96
src/utils.jl
@@ -739,7 +739,12 @@ end
739
740
function get_cmap(sys, exprs = nothing)
741
#Inject substitutions for constants => values
742
- cs = collect_constants([collect(get_eqs(sys)); get_observed(sys)]) #ctrls? what else?
+ buffer = []
743
+ has_eqs(sys) && append!(buffer, collect(get_eqs(sys)))
744
+ has_observed(sys) && append!(buffer, collect(get_observed(sys)))
745
+ has_op(sys) && push!(buffer, get_op(sys))
746
+ has_constraints(sys) && append!(buffer, get_constraints(sys))
747
+ cs = collect_constants(buffer) #ctrls? what else?
748
if !empty_substitutions(sys)
749
cs = [cs; collect_constants(get_substitutions(sys).subs)]
750
end
0 commit comments