odow / SDDP.jl

A JuMP extension for Stochastic Dual Dynamic Programming
https://sddp.dev
Other
293 stars 62 forks source link

ERROR: TypeError: in keyword argument incoming_state, expected Dict{Symbol, Float64}, got a value of type Dict{Symbol, Any} #754

Closed WuSiren closed 2 months ago

WuSiren commented 2 months ago
ERROR: TypeError: in keyword argument incoming_state, expected Dict{Symbol, Float64}, got a value of type Dict{Symbol, Any}

It comes after I run

solution = SDDP.evaluate(
    rule;
    incoming_state = state,
    noise = ω,
)

where state is a dictionary of all the state variables among which there are matrix state variables.

odow commented 2 months ago

Per the error: state must be a Dict{Symbol, Float64}.

See model.initial_root_state for an example of what it needs to be.

WuSiren commented 2 months ago

I see. Thanks!