Skip to content

Commit 31d9cdb

Browse files
fix: fix support for symbolic u0 in varmap_to_vars
1 parent 4d46b15 commit 31d9cdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/systems/problem_utils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ function varmap_to_vars(varmap::AbstractDict, vars::Vector;
376376
if toterm !== nothing
377377
add_toterms!(varmap; toterm)
378378
end
379-
if check
379+
if check && !allow_symbolic
380380
missing_vars = missingvars(varmap, vars; toterm)
381381
if !isempty(missing_vars)
382382
if is_initializeprob
@@ -387,7 +387,7 @@ function varmap_to_vars(varmap::AbstractDict, vars::Vector;
387387
end
388388
end
389389
evaluate_varmap!(varmap, vars; limit = substitution_limit)
390-
vals = map(x -> varmap[x], vars)
390+
vals = map(x -> get(varmap, x, x), vars)
391391
if !allow_symbolic
392392
missingsyms = Any[]
393393
missingvals = Any[]

0 commit comments

Comments
 (0)