Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
WuSiren opened this issue Jun 27, 2024 · 2 comments

Comments

@WuSiren
Copy link

WuSiren commented Jun 27, 2024

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
Copy link
Owner

odow commented Jun 27, 2024

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
Copy link
Author

WuSiren commented Jun 27, 2024

I see. Thanks!

@WuSiren WuSiren closed this as completed Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants