Variable capacity for sink

oemof

#1

Hi everybody,

I am trying to model a sink which has a variable maximum capacity over time. The maximum capacity is a known time series. So far, the current two approaches which come into my mind and I have tried are:

  • specifying a time series for the nominal capacity: The optimisation process starts, but terminates with following error code: ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().

  • setting a nominal capacity and specifying an actual value (fixed = false): the actual value is ignored

Any ideas or suggestions on how to do this better?

Lukas


#2

Welcome to the oemof forum :slight_smile:

The nominal_value is always a scalar and the base value for the Flow. All the other values refer to this value.

The actual_value is a start value and will be changed by the solver if fixed is False.

The attribute of your choice might be the max attribute. This attribute can be a time series and it is related to the nominal value. The absolute maximum is nominal_value*max.


#3

thank you for the fast reply, that solved all my issues :+1::+1: