LCA-ActivityBrowser / activity-browser

GUI for brightway2
GNU Lesser General Public License v3.0
137 stars 52 forks source link

Monte Carlo simulation fails due to shape mismatch when considering parameters #615

Open mixib opened 3 years ago

mixib commented 3 years ago

With an LCA setup of a system of many parameters, the simulation works fine when including the uncertainty for “Technosphere”, “Biosphere”, and “Characterization factors”. Some of the parameters include uncertainty data. When running the simulation including "Parameters" The following error message appears: image

Apparently, this also causes that the Global Sensitivity Analysis does not work properly. See error message: image

A simpler system with less parameters, including uncertainty, works fine. Help troubleshooting the more complex system is appreciated.

FOLLOW-UP: The database was exported to Excel from the faulty project and loaded to a new project (after emptying the !#NUM cells to prevent the behavior in https://github.com/LCA-ActivityBrowser/activity-browser/issues/514#issuecomment-773433440). Then, Monte Carlo simulation worked fine.

Maybe some parameter is not deleted correctly from the faulty project? Then, apparently the required parameters seem to be loaded correctly in the corresponding AB tab, but there might be hidden parameters causing the error. If the database doesn't cause problems in a new project, would backing up the faulty project work better to reproduce the issue? Would zipping and sharing the project folder work?

SteLue commented 3 years ago

Thanks for posting my issue @mixib!

The above error does not appear anymore, however, now the error changed (do I need to create a new issue for that or should it be part of this one?).

When running the calculation, the LCA result is e.g. 300 kg CO2-eq.:

grafik

However, when running the MC simulation, the simulated results do not match with the LCA results anymore as it lays significantly higher: grafik

And the results are getting negative when including uncertainty for "parameters" (this even happens if there is no parameter for which the uncertainty is defined):

grafik

Thanks a lot for any help or ideas!