[NEMO-devel] Error in handling 8784 hours (with 29 Feb data)

Yusak Tanoto yusak.tanoto at gmail.com
Thu Aug 10 10:20:02 AEST 2017


Hi Dr. Ben,

I tried to run NEMO using my load case for 2016 (with 29 February, so it
constitutes of 8784 hours), without change other costs or resources data,
but it returned error as below. However, when I deleted the load for 29
Feb, it was worked well.

How to solve this problem?

Cheers,

Yusak

The fault messages:

Traceback (most recent call last):
  File "evolve.py", line 369, in <module>
    run()
  File "evolve.py", line 341, in run
    stats=mstats, halloffame=hof, verbose=True)
  File "C:\Python27\lib\site-packages\deap\algorithms.py", line 457, in
eaGenerateUpdate
    fitnesses = toolbox.map(toolbox.evaluate, population)
  File "C:\Python27\lib\site-packages\scoop\fallbacks.py", line 49, in
wrapper
    return map(*args, **kwargs)
  File "evolve.py", line 294, in eval_func
    nem.run(context)
  File "C:\Users\Yusak\Documents\nemo-edited\nemo-edited\sim.py", line 174,
in run
    _sim(context, starthour, endhour)
  File "C:\Users\Yusak\Documents\nemo-edited\nemo-edited\sim.py", line 81,
in _sim
    gen, spl = g.step(hr, async_demand)
  File "C:\Users\Yusak\Documents\nemo-edited\nemo-edited\generators.py",
line 196, in step
    generation = self.generation[hr] * self.capacity
IndexError: index 8760 is out of bounds for axis 0 with size 8760

The successful one:
Timesteps: 8760 h
Demand energy: 175.2 TWh
Unused surplus energy: 1.0 TWh
Timesteps with unused surplus energy: 622
Unserved energy: 5.068%
WARNING: reliability standard exceeded
Unserved total hours: 2433
Number of unserved energy events: 348
Shortfalls (min, max): (1.0, 11225.0)
Score: 196.47 $/MWh
Penalty: 13824967456998.58 $/MWh
Constraints violated: bioenergy unserved hydro
Done
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/nemo-devel/attachments/20170810/d65547e5/attachment.html>


More information about the nemo-devel mailing list