CO2 storage cost and reverse pipeline flow are paid to the model instead of charged

オープン
#893 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
backend, databases

調査の方向性

Start with workflow/scripts/add_extra_components.py, especially add_co2_storage and add_co2_network, and reproduce the objective changes described using PyPSA 1.3.0. Trace how Store dispatch and reverse Link flow contribute to the objective, then compare modeling options for charging storage and pipeline flow correctly. Done when storage and either pipeline direction increase the objective by their stated per tonne costs.

索引モデルが issue の本文から書いたものです。

説明

bug
Version Checks
  • This bug exists on the develop branch of PyPSA-USA.
The Issue

With co2: storage: true, the cost of storing CO2 lowers the objective instead of raising it.

add_co2_storage puts the storage cost (USD/tCO2) on the marginal_cost of the co2 storage Store. PyPSA multiplies a Store's marginal_cost by its dispatch p, which is negative while the store fills. A store that only fills therefore earns its "cost" on every tonne injected.

The CO2 pipelines have the same problem in one direction. add_co2_network builds each pipeline as a single Link with p_min_pu=-1 and marginal_cost=4, so flow from bus1 to bus0 is paid 4 USD/t rather than charged.

Effects:

  • CCS plants are subsidised by the storage cost of their node (about 3.5 USD/MWh for a CCGT at 10 USD/t) rather than charged it.
  • Nodes with the highest storage "cost" are the most attractive. The county data goes up to 243 USD/t, where DAC plus storage could pay for itself (not tested).
Steps To Reproduce

On pypsa 1.3.0, a generator feeding a Link that sends 0.35 t/MWh to a capture bus with an extendable Store, 140 t injected in total:

Store marginal_cost Objective
0 4000
10 2600

The objective falls by 10 USD/t x 140 t. For the Link, 20 t of reverse flow at marginal_cost=4 lowers the objective by 80.

Suggested Fix

Charge the storage cost on something that only flows one way, e.g. a Link from the capture bus to a separate storage bus with the cost as its marginal_cost (this Link can also carry an injection-rate limit). Model the pipelines as two one-way Links that share capacity, or as a bidirectional Link with the cost on absolute flow.

主要言語
Python
スター
154
フォーク
58
平均マージ
3日 9時間
マージ済み PR(30日)
51

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PyPSA/pypsa-usa のほかの issue

PyPSA/pypsa-usa の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。