Skip to content

Commit e7e5303

Browse files
authored
Merge pull request #119 from JuliaOpt/fix_iterators_sdp_forward
[FIX] Fix forgot collect in forward simulation grids
2 parents 803cc6f + c79b488 commit e7e5303

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/SDPoptimize.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,9 @@ function sdp_forward_single_simulation(model::StochDynProgModel,
541541
#Compute cartesian product spaces
542542
product_states, product_controls = generate_grid(model, param)
543543

544+
product_states = collect(product_states)
545+
product_controls = collect(product_controls)
546+
544547
controls = Inf*ones(TF-1, 1, model.dimControls)
545548
states = Inf*ones(TF, 1, model.dimStates)
546549

0 commit comments

Comments
 (0)