Skip to content

Investment appraisal fails when demand is equal in 2 consecutive years in (a slight adaptation of) the simple model #1115

@ahawkes

Description

@ahawkes

Describe the bug

I modified the "simple" model so there are more milestone years. If two MSY in a row have the same service demand input (RSHEAT in this case), investment appraisal fails. It appears to calculate NaN for the metric.

A clear and concise description of what the bug is, including error messages.

[09:39:10 INFO muse2::simulation] Milestone year: 2034
[09:39:10 INFO muse2::simulation] Running agent investment...
[09:39:10 ERROR muse2] Agent investment failed

Caused by:
No feasible investment options for commodity 'GASNAT' after appraisal

To Reproduce

Run attached model

Expected behavior

I can't see a reason why investment appraisal should fail - it should be fine.

simple.zip

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

🏗 In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions