Known issues with parameter.as.dict method in multiperiod optimisation?

Hello everyone,

after trying to debug for over a day I’ve pretty much reached the end of my rope…
Is anyone aware of any current issues with using the parameters_as_dict function within a multiperiod optimization?
The error I keep getting relates to an array and index length mismatch, which I have traced back to be a likely error with the “max” Attribute of one of my nodes being equal to the length of my timeindex (array length = 17520), although the index length is equal to my periods (index length = 2).
However, I’ve printed out every single “max” attribute I provide for every single node when building my energy system and am not (ever) providing the model with an array for max, which leads me to believe it might have something to do with the way that solph itself may be handling attributes ?

I’m thankful for any help with the matter!

Cheers!

Hi @moritz_reuter,

I have to admit that with the introduction of the multi-period feature, we accepted quite some technical debt. What you name is not a known error, but as the feature is marked experimental, maybe others just did not report.

If possible, could you please provide a minimum example to show the problem?

Cheers,
Patrik