1. A method for generating bids for a look-ahead energy market, the method comprising: providing a processor configured to generate a lookup table approximating a value function having four dimensions including: state of the storage system, price of electricity, prior low bid and prior high bid; the processor being configured to observe an initial numeric value for a first set of dimensions and exploiting monotonicity to update a first region of the lookup table; the processor being configured to iteratively observe subsequent numeric values for a next set of dimensions and update subsequent regions of the lookup table while exploiting monotonicity to generate the lookup table; the value function being configured with numeric values for all possible sets of dimensions, the numeric values being usable to compute optimal bids.