odow / SDDP.jl

Stochastic Dual Dynamic Programming in Julia

Home Page:https://sddp.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Running into some error (MSPFormat reader)

bonnkleiford opened this issue · comments

Hi Oscar,

I was trying the MSPFormat reader function to try energy problem. Unfortunately, I ran into some error where one of the coefficients (price_6) of the objective function is not found. Here is the full error:

Screenshot 2023-07-06 at 21 25 55

Here are the two JSON files (problem and lattice) for reproduction purposes:
Energy.zip

Best,
BIKEY

That's this line:

_get_constant(terms::String, state::Dict) = state[terms]

I think we discussed this, but I don't remember the conclusion. If a node i the lattice was missing a random variable, should we infer the value to be 0.0?

I'll re-iterate that I think this is a bad idea and a recipe for bugs. There's no need for file formats to be clever or save space. The zip file with and without the default values should be pretty similar.