Skip to content

Commit c79b488

Browse files
committed
[FIX] Fix forgot collect in forward simulation grids
1 parent 803cc6f commit c79b488

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)