こぼれネット

以下のMATSimのplans.xmlの内容を説明して下さい。

以下のMATSimのplans.xmlの内容を説明して下さい。

<?xml version="1.0" ?>
<!DOCTYPE plans SYSTEM "http://www.matsim.org/files/dtd/plans_v4.dtd">
<plans xml:lang="de-CH">
  <person id="1">
	<plan>
      <act type="h" link="1" end_time="06:00" />
      <leg mode="car">
      </leg>
  
      <act type="w" link="10" dur="00:00:10" />
      <leg mode="walk">
      </leg>
	  
      <act type="w" link="11" dur="00:00:05" />
	  
      <leg mode="car">
		<!-- ここは書かない(MATSim に任せる) -->
      </leg>
	  
      <act type="h" link="11" />
	</plan>
  </person>

  <person id="2">
	<plan>
      <act type="h" link="10" end_time="06:00" />
      <leg mode="car">
		<route> </route>
      </leg>
	  
      <act type="w" link="11" dur="00:00:10" />
	  
      <leg mode="walk">
		<route> </route>
      </leg>
	  
      <act type="w" link="100" dur="00:00:05" />
	  
      <leg mode="car">
		<!-- ここは書かない(MATSim に任せる) -->
      </leg>
	  
      <act type="h" link="11" />
	</plan>
  </person>


</plans>

以下は、提示された MATSim の plans.xml の内容を、構造・意味・挙動の3点から整理して説明する。


1. ファイル全体の位置づけ

<!DOCTYPE plans SYSTEM "http://www.matsim.org/files/dtd/plans_v4.dtd">
<plans xml:lang="de-CH">
  • plans.xmlエージェント(person)ごとの行動計画(plan) を定義する入力ファイル

  • plans_v4.dtd に準拠した古典的な MATSim フォーマット

  • xml:lang="de-CH" は言語指定であり、シミュレーション挙動には影響しない


2. 基本構造(共通)

<person id="X">
  <plan>
    <act ... />
    <leg mode="..." />
    <act ... />
    ...
  </plan>
</person>

3. person id="1" の行動計画

(1) 最初の自宅活動

<act type="h" link="1" end_time="06:00" />

(2) 自宅 → 職場(車)

<leg mode="car">
</leg>

(3) 職場活動①

<act type="w" link="10" dur="00:00:10" />

(4) 徒歩移動

<leg mode="walk">
</leg>

(5) 職場活動②(短時間)

<act type="w" link="11" dur="00:00:05" />

(6) 再び車移動(経路指定なし)

<leg mode="car">
  <!-- ここは書かない(MATSim に任せる) -->
</leg>

(7) 帰宅

<act type="h" link="11" />

4. person id="2" の行動計画の特徴

person 2 は、person 1 と似ているが、route タグが明示的に存在する点が重要。


(1) 車移動(空の route)

<leg mode="car">
  <route> </route>
</leg>

(2) 徒歩移動(空 route)

<leg mode="walk">
  <route> </route>
</leg>

(3) 行動リンクの違い

<act type="w" link="100" dur="00:00:05" />

5. この plans.xml が意味する「本質」

(1) これは OD を完全に固定した計画ではない


(2) walk leg の扱い


(3) RCM / 共時空間解析への影響


6. まとめ(要点)

 

モバイルバージョンを終了