Skip to content

preprocess.py script does not create subset entries if default values are used #68

@willu47

Description

@willu47

When using the preprocess.py script on a datafile which has been converted using otoole, we found that subsets were not being generated for entries in InputActivityRatio and OutputActivityRatio whose value is equal to the default value (zero in most cases). This causes an error downstream when using glpsol to create the model as there are inconsistent subsets.

In my mind - if InputActivityRatio and OutputActivityRatio are zero, then the equations should not be generated anyway - the technologies will not consume or produce anything and can reduce to zero.

On the other hand, if we need subsets produced for zero valued combinations, then how to make this robust?

I'm not sure if this is something that should be address in i) the model formulation ii) otoole iii) our model definition

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions