[仏教の最適化プログラムの続き。]…
jrf> [仏教の最適化プログラムの続き。]
全体として資産収入のマイナス(--whole-cut-slack)を 27.5 に選んだのは実験結果を見て。まったく一家離散がないのもおかしいと考えたが、それは必要最低限で、ただ、一家離散者が悪目立ちしすぎることもないようにしよう…として、27.5 を選んだ。グラフのつくり方は次の通り(stats_simbdp3 ではなくその親の simbd のディレクトリで)。
CWD=`pwd`
SIMBD=simbdp3x1
LOG="${CWD}/stats_simbdp3/test1-00.log"
CMD="python ${SIMBD}.py -d -t 1200 -S --save-period=12 --no-view --invasion-mag=5.0 --change-random-seed --no-frozen --whole-cut-slack=20"
echo "# $CMD" > "$LOG"
$CMD | tee -a "$LOG"
LOG="${CWD}/stats_simbdp3/test2-00.log"
CMD="python ${SIMBD}.py -d -t 1200 -S --save-period=12 --no-view --invasion-mag=5.0 --change-random-seed --no-frozen --whole-cut-slack=25"
echo "# $CMD" > "$LOG"
$CMD | tee -a "$LOG"
LOG="${CWD}/stats_simbdp3/test3-00.log"
CMD="python ${SIMBD}.py -d -t 1200 -S --save-period=12 --no-view --invasion-mag=5.0 --change-random-seed --no-frozen --whole-cut-slack=30"
echo "# $CMD" > "$LOG"
$CMD | tee -a "$LOG"
LOG="${CWD}/stats_simbdp3/test4-00.log"
CMD="python ${SIMBD}.py -d -t 1200 -S --save-period=12 --no-view --invasion-mag=5.0 --change-random-seed --no-frozen --whole-cut-slack=27.5"
echo "# $CMD" > "$LOG"
$CMD | tee -a "$LOG"
cd stats_simbdp3
python plot_logs.py test1 test2 test3 test4 -p AccBreakup -o fig-20211026_02.png
python plot_logs.py test1 test2 test3 test4 -p Welfare -o fig-20211026_03.png
《グラフ集: 2021-10-26 から - Issue #7 - JRF-2018/simbd》
https://github.com/JRF-2018/simbd/issues/7
Welfare は生活保護世帝数。
なお、fig-20211026_01.png には 27.5 にした上での最後の状態の資産状況を示すグラフを表示させて、それを保存したものである。