2
私は、特徴付け係数の不確かさでモンテカルロ解析を実行しようとします。コードは正常に実行されています(エラーはありません)が、各反復の結果は常に同じです。計算はLCAシミュレーションだけで動作します。ここでLCIAでの不確実性を伴うモンテカルロ解析の問題
はコードです:簡単なアクティビティの
some_exchange = bw.Database('biosphere3').random()
my_cf = [(some_exchange.key,
{"amount": 10,
"uncertainty_type": 4,
"minimum": 0,
"maximum": 20}
)]
uncertain_method = bw.Method(("fake", "method", "with uncertainty"))
uncertain_method.write(my_cf)
定義
simple_LCI_db = bw.Database('simple LCI db')
simple_LCI_db.write(
{('simple LCI db', 'some_code'):
{'name': 'fake activity',
'unit': 'amount',
'exchanges':
[
{'input': ('simple LCI db', 'some_code'),
'amount': 1,
'type': 'production'},
{'input': some_exchange.key,
'amount': 1,
'type': 'biosphere'},
]
},
})
モンテカルロコード
mc = bw.MonteCarloLCA({('simple LCI db', 'some_code'):1}, ('fake', 'method', 'with uncertainty'))
next(mc)
はありサンプルLCIA手法の
定義somet不確実性の定義が間違っていますか?
ありがとうございました!