forked from miuramiure/Powergrid_Artisoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpowergrid_artisoc.model
1195 lines (1065 loc) · 34.3 KB
/
powergrid_artisoc.model
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//====================================================================/
// /
// artisoc /
// /
//====================================================================/
Version = 3.0;
//-------------------------------------------------------
// Component Tree
//-------------------------------------------------------
UNIVERSE {
Space powergrid(0,0),Square_2D(150, 150, !Loop, North, 1, !Map_3D){
AgtType area(0, 0)[0] {
Dim ID(0, 0) As Integer = (0);
Dim X(0, 0) As Double = (0.0);
Dim Y(0, 0) As Double = (0.0);
Dim Layer(0, 0) As Integer = (0);
Dim Direction(0, 0) As Double = (0.0);
Dim dp(0, 0) As Double = (0.0);
Dim k(0, 0) As Double = (0.0);
Dim b(0, 0) As Double = (0.0);
Dim p(0, 0) As Double = (0.0);
Dim serial(0, 0) As Integer = (0);
Dim trans_out_set(0, 0) As AgtSet = ();
Dim trans_in_set(0, 0) As AgtSet = ();
Dim e_new(0, 0) As Double = (0.0);
Dim m(0, 0) As Double = (0.0);
Dim e(0, 0) As Double = (0.0);
Dim link(0, 0) As AgtSet = ();
Dim members(0, 0) As AgtSet = ();
Dim ramda(0, 0) As Double = (0.0);
Dim ramda_next(0, 0) As Double = (0.0);
Dim G_i(0, 0) As Double = (0.0);
}
AgtType transmitter(0, 0)[0] {
Dim ID(0, 0) As Integer = (0);
Dim X(0, 0) As Double = (0.0);
Dim Y(0, 0) As Double = (0.0);
Dim Layer(0, 0) As Integer = (0);
Dim Direction(0, 0) As Double = (0.0);
Dim from_player(0, 0) As Agt = (0);
Dim to_player(0, 0) As Agt = (0);
Dim p(0, 0) As Double = (0.0);
Dim f(0, 0) As Double = (0.0);
Dim b(0, 0) As Double = (0.0);
Dim k(0, 0) As Double = (0.0);
Dim dp(0, 0) As Double = (0.0);
Dim x_i(0, 0) As Double = (0.0);
Dim x_i_next(0, 0) As Double = (0.0);
Dim C1(0, 0) As Double = (0.0);
Dim C2(0, 0) As Double = (0.0);
Dim C3(0, 0) As Double = (0.0);
Dim C4(0, 0) As Double = (0.0);
Dim D1(0, 0) As Double = (0.0);
Dim D2(0, 0) As Double = (0.0);
Dim D3(0, 0) As Double = (0.0);
Dim D4(0, 0) As Double = (0.0);
Dim U(0, 0) As Double = (0.0);
Dim dU(0, 0) As Double = (0.0);
Dim dG(0, 0) As Integer = (0);
}
AgtType home(0, 0)[0] {
Dim ID(0, 0) As Integer = (0);
Dim X(0, 0) As Double = (0.0);
Dim Y(0, 0) As Double = (0.0);
Dim Layer(0, 0) As Integer = (0);
Dim Direction(0, 0) As Double = (0.0);
Dim link(0, 0) As AgtSet = ();
Dim e(0, 0) As Double = (0.0);
Dim m(0, 0) As Double = (0.0);
Dim e_new(0, 0) As Double = (0.0);
Dim trans_in_set(0, 0) As AgtSet = ();
Dim trans_out_set(0, 0) As AgtSet = ();
Dim serial(0, 0) As Integer = (0);
Dim p(0, 0) As Double = (0.0);
Dim b(0, 0) As Double = (0.0);
Dim k(0, 0) As Double = (0.0);
Dim dp(0, 0) As Double = (0.0);
Dim x_i(0, 0) As Double = (0.0);
Dim x_i_next(0, 0) As Double = (0.0);
Dim C1(0, 0) As Double = (0.0);
Dim C2(0, 0) As Double = (0.0);
Dim C3(0, 0) As Double = (0.0);
Dim C4(0, 0) As Double = (0.0);
Dim D1(0, 0) As Double = (0.0);
Dim D2(0, 0) As Double = (0.0);
Dim D3(0, 0) As Double = (0.0);
Dim D4(0, 0) As Double = (0.0);
Dim U(0, 0) As Double = (0.0);
Dim dU(0, 0) As Double = (0.0);
Dim dG(0, 0) As Integer = (0);
Dim area(0, 0) As Agt = (0);
}
AgtType solar(0, 0)[0] {
Dim ID(0, 0) As Integer = (0);
Dim X(0, 0) As Double = (0.0);
Dim Y(0, 0) As Double = (0.0);
Dim Layer(0, 0) As Integer = (0);
Dim Direction(0, 0) As Double = (0.0);
Dim link(0, 0) As AgtSet = ();
Dim e(0, 0) As Double = (0.0);
Dim m(0, 0) As Double = (0.0);
Dim e_new(0, 0) As Double = (0.0);
Dim trans_in_set(0, 0) As AgtSet = ();
Dim trans_out_set(0, 0) As AgtSet = ();
Dim serial(0, 0) As Integer = (0);
Dim p(0, 0) As Double = (0.0);
Dim b(0, 0) As Double = (0.0);
Dim k(0, 0) As Double = (0.0);
Dim dp(0, 0) As Double = (0.0);
Dim x_i(0, 0) As Double = (0.0);
Dim x_i_next(0, 0) As Double = (0.0);
Dim C1(0, 0) As Double = (0.0);
Dim C2(0, 0) As Double = (0.0);
Dim C3(0, 0) As Double = (0.0);
Dim C4(0, 0) As Double = (0.0);
Dim D1(0, 0) As Double = (0.0);
Dim D2(0, 0) As Double = (0.0);
Dim D3(0, 0) As Double = (0.0);
Dim D4(0, 0) As Double = (0.0);
Dim U(0, 0) As Double = (0.0);
Dim dU(0, 0) As Double = (0.0);
Dim dG(0, 0) As Integer = (0);
Dim area(0, 0) As Agt = (0);
}
}
Dim alpha(0, 0) As Double = (0.0);
Dim beta(0, 0) As Double = (0.0);
Dim link_range(0, 0) As Double = (0.0);
Dim k_p(0, 0) As Double = (0.0);
Dim time_min(0, 0) As Integer = (0);
Dim time_hour(0, 0) As Integer = (0);
Dim time_day(0, 0) As Integer = (0);
Dim e_total(0, 0) As Double = (0.0);
Dim count(0, 0) As Integer = (0);
Dim const(0, 0) As Double = (0.0);
Dim home_num(0, 0) As Integer = (0);
Dim solar_num(0, 0) As Integer = (0);
Dim area_num(0, 0) As Integer = (0);
Dim F(0, 0) As Double = (0.0);
}
//-------------------------------------------------------
// Agent Variable Initial Data
//-------------------------------------------------------
Initial_Value {
UNIVERSE.ALPHA = 1(0.03);
UNIVERSE.BETA = 1(0.04);
UNIVERSE.LINK_RANGE = 1(50.0);
UNIVERSE.K_P = 1(0.2);
UNIVERSE.COUNT = 1(0);
UNIVERSE.CONST = 1(0.3);
}
//-------------------------------------------------------
// Agent Rule
//-------------------------------------------------------
#begin_rule UNIVERSE
include "lib_miura.inc" //基礎的な独自関数をインポート
//################UNIVE_INIT#######################
Univ_Init{
ClearConsoleScreen() //コンソールをクリア
//-------------------------変数の宣言(開始)------------------------------------
//空間に関する変数
Dim width as Integer //空間の幅(x)
Dim height as Integer //空間の高さ(y)
//エージェントに関する変数
Dim area_set as AgtSet //areaエージェントセット
//インクリメント変数, 一時格納変数
Dim i as Integer
Dim one as Agt
Dim temp_agtset as AgtSet
//-------------------------変数の宣言(終了)------------------------------------
//-------------------------パラメータの設定(開始)---------------------------
//エージェントの数
Universe.area_num=20 //areaエージェントの数
Universe.home_num=50 //homeエージェントの最大数
Universe.solar_num=50 //solarエージェントの最大数
//-------------------------パラメータの設定(終了)---------------------------
//-------------------------事前処理(開始)---------------------------------------
//空間のサイズを取得
width=GetWidthSpace(Universe.powergrid) //空間の幅(x)
height=GetHeightSpace(Universe.powergrid) //空間の高さ(y)
//-------------------------事前処理(終了)---------------------------------------
//---------------エージェントの生成と配置(開始)-------------------------
//areaエージェントの生成と配置
For i=0 to Universe.area_num
CreateAgt(Universe.powergrid.area)
next i
MakeAgtSet(area_set, Universe.powergrid.area)
RandomPutAgtset(area_set)
}//#############UNIVE_INITの終了###################
//#############UNIVE_STEP_BEGIN#################
Univ_Step_Begin{
//-------------------------変数の宣言(開始)------------------------------------
//地域の中のmembers配置に用いる変数
Dim r_max as Double
Dim r as Double
Dim theta as Double
//インクリメント変数, 一時格納変数
Dim i as Integer
Dim one as Agt
Dim one2 as Agt
Dim temp_agt as Agt
Dim num_temp as Integer
Dim link_agtset as AgtSet
//-------------------------変数の宣言(終了)------------------------------------
//-------------------------パラメータの設定(開始)---------------------------
r_max=10 //地域の中に需要供給エージェントを配置するときの範囲(地域中心から半径r_max以内)
//-------------------------パラメータの設定(終了)---------------------------
//-----------------エージェントの生成と配置(開始)-----------------------
//エージェントの生成と配置は初回ステップのみ実行する
if Universe.count== 0 Then
//地域エージェント間にリンク(送電線)を生成する
MakeAgtSet(link_agtset, Universe.powergrid.area)
//linkエージェントにserialを付与する(serial=1,2,...)
i=1 //インクリメント変数の初期化
For each one in link_agtset
one.serial=i
i=i+1
next one
//送電線を引く(送電線を引く相手をそれぞれのlinkエージェントセットに格納する)
For each one in link_agtset
ClearAgtset (one.link)
MakeOneAgtSetAroundPosition(one.link, Universe.powergrid, one.X, one.Y, one.Layer, Universe.link_range, Universe.powergrid.area) //自分のまわりの視野内にいるエージェント取得
DelAgtSet2(one.link, one) //linkから自分自身を削除
next one
//link関係の間にtransエージェントを生成してtrans_inまたはtrans_outに格納
//serialが大きいほうから小さいほうへ流れがあるときを正とする
//-----serialが小さい相手との間の送電エージェントはtrans_out_setに格納
//-----serialが大きい相手との間の送電エージェントはtrans_in_setに格納
For each one in link_agtset //linkエージェントそれぞれに(one)
For each one2 in one.link //各linkエージェントのlink相手それぞれに(one2)
if one.serial>one2.serial then //Serialが大きいほうから小さい方に向けて処理をすれば十分(2回処理する必要はない)
temp_agt=CreateAgt(Universe.powergrid.transmitter) //送電エージェントを生成
AddAgt(one.trans_out_set, temp_agt) //送電エージェントをserialが大きい方のエージェント(one)のtrans_out_setに格納
AddAgt(one2.trans_in_set, temp_agt) //送電エージェントをserialが小さい方のエージェント(one)のtrans_in_setに格納
temp_agt.from_player=one //送電エージェントから見て上流側の地域をfrom_playerに格納
temp_agt.to_player=one2 //送電エージェントから見て下流側の地域をto_playerに格納
//送電エージェントを配置.ただし空間出力には表示しない(送電線のみ表示)
temp_agt.X=(one.X+one2.X)/2
temp_agt.Y=(one.Y+one2.Y)/2
end if
next one2
next one
//各地域エージェントのmembersにhomeやsolarを追加
For each one in link_agtset //各地域ごとに
ClearAgtset (one.members) //membersを初期化
//homeエージェントの配置
num_temp=CInt(Universe.home_num*Rnd()) //homeエージェント数をランダムで決定
For i=1 to num_temp
temp_agt =CreateAgt(Universe.powergrid.home)
r=r_max*Rnd()
theta=2*PI()*Rnd()
temp_agt.X=one.X+r*cos(theta)
temp_agt.Y=one.Y+r*sin(theta)
AddAgt(one.members, temp_agt)
temp_agt.area=one
next i
//solarエージェントの配置
num_temp=CInt(Universe.solar_num*Rnd()) //solarエージェント数をランダムで決定
For i=1 to num_temp
temp_agt =CreateAgt(Universe.powergrid.solar)
r=r_max*Rnd()
theta=2*PI()*Rnd()
temp_agt.X=one.X+r*cos(theta)
temp_agt.Y=one.Y+r*sin(theta)
AddAgt(one.members, temp_agt)
temp_agt.area=one
next i
next one
End if
//-----------------エージェントの生成と配置(終了)-----------------------
}//##########UNIVE_STEP_BEGINの終了##############
//##############UNIVE_STEP_END#################
Univ_Step_End{
Dim temp_agtset as AgtSet
Dim area_agtset as AgtSet
Dim player_agtset as AgtSet
Dim count_min as Integer
Universe.count=Universe.count+1
count_min=Universe.count*1 //離散時間を調整
Universe.time_min=count_min mod 60
Universe.time_day=count_min \ 1440
Universe.time_hour=(count_min mod 1440) \ 60
ClearAgtset (area_agtset)
ClearAgtset(player_agtset)
ClearAgtset (temp_agtset)
//全ての地域を取得
MakeAgtSet(area_agtset , Universe.powergrid.area)
//全てのプレイヤーを取得
MakeAgtSet(player_agtset, Universe.powergrid.home) //homeを追加
MakeAgtSet(temp_agtset, Universe.powergrid.solar)
JoinAgtSet(player_agtset, temp_agtset) //solarを追加
MakeAgtSet(temp_agtset, Universe.powergrid.transmitter)
JoinAgtSet(player_agtset, temp_agtset) //transを追加
PurifyAgtSet(player_agtset, player_agtset) //重複を削除
//停滞量の総量を更新
Universe.e_total=0
For each one in area_agtset
Universe.e_total=Universe.e_total+one.G_i
next one
//目的関数を更新
Universe.F=0
For each one in player_agtset
Universe.F=Universe.F+one.U
next one
//ラムダを更新
For each one in area_agtset
one.ramda=one.ramda_next
next one
//x_iを更新
For each one in player_agtset
one.x_i=one.x_i_next
next one
}//###########UNIVE_STEP_ENDの終了##############
//##############UNIVE_STEP_END#################
Univ_Finish{
}//#############UNIVE_STEP_ENDの終了############
#end_rule UNIVERSE
//-------------------------------------------------------
// Agent Rule
//-------------------------------------------------------
#begin_rule UNIVERSE.POWERGRID.AREA
Agt_Init{
My.ramda=0
My.ramda_next=0
My.G_i=0
}
Agt_Step{
Dim one as Agt
My.G_i=0
For each one in My.members
My.G_i=My.G_i+one.dG*one.x_i
next one
For each one in My.trans_out_set
My.G_i=My.G_i-one.x_i
next one
For each one in My.trans_in_set
My.G_i=My.G_i+one.x_i
next one
if Universe.time_min == 50 then
My.ramda_next= My.ramda+ Universe.beta * My.G_i
end if
My.p=My.ramda
}
#end_rule UNIVERSE.POWERGRID.AREA
//-------------------------------------------------------
// Agent Rule
//-------------------------------------------------------
#begin_rule UNIVERSE.POWERGRID.TRANSMITTER
Agt_Init{
My.C1=0.5
My.C2=1.0
My.C3=1.0
//My.C4=0.2
//My.D1=1.0
//My.D2=0.5
//My.D3=1.0
//dG=-1
}
Agt_Step{
//U, dUの計算
if -My.C1<=My.x_i And My.x_i<My.C1 then
My.U=My.C2
My.dU=0
Else
if My.x_i< -My.C1 then
My.U=-My.C3*(My.x_i+My.C1)^2+My.C2
My.dU=-2*My.C3*(My.x_i+My.C1)
else
My.U=-My.C3*(My.x_i-My.C1)^2+My.C2
My.dU=-2*My.C3*(My.x_i-My.C1)
end if
end if
My.x_i_next=My.x_i - Universe.alpha * (-My.dU - My.from_player.ramda+My.to_player.ramda )
}
#end_rule UNIVERSE.POWERGRID.TRANSMITTER
//-------------------------------------------------------
// Agent Rule
//-------------------------------------------------------
#begin_rule UNIVERSE.POWERGRID.HOME
Agt_Init{
My.C1=0.5
My.C2=1.0
My.C3=1.0
My.C4=0.2
//My.D1=1.0
//My.D2=0.5
//My.D3=1.0
My.dG=-1
}
Agt_Step{
//時変パラメータC1の値を計算する
//U, dUの計算
if My.x_i<My.C1 then
My.U=-My.C3*(My.x_i-My.C1)^2+My.C2
My.dU=-2*My.C3*(My.x_i-My.C1)
Else
My.U=-My.C4*(My.x_i-My.C1)^2+My.C2
My.dU=-2*My.C4*(My.x_i-My.C1)
end if
My.x_i_next=My.x_i - Universe.alpha * (-My.dU + My.dG * My.area.ramda )
}
#end_rule UNIVERSE.POWERGRID.HOME
//-------------------------------------------------------
// Agent Rule
//-------------------------------------------------------
#begin_rule UNIVERSE.POWERGRID.SOLAR
Agt_Init{
My.C1=0.8
My.C2=1.0
My.C3=0.2
My.C4=1.0
//My.D1=1.0
//My.D2=0.5
//My.D3=1.0
My.dG=1
}
Agt_Step{
//U, dUの計算
if My.x_i<My.C1 then
My.U=-My.C3*(My.x_i-My.C1)^2+My.C2
My.dU=-2*My.C3*(My.x_i-My.C1)
Else
My.U=-My.C4*(My.x_i-My.C1)^2+My.C2
My.dU=-2*My.C4*(My.x_i-My.C1)
end if
My.x_i_next=My.x_i - Universe.alpha * (-My.dU + My.dG * My.area.ramda )
}
#end_rule UNIVERSE.POWERGRID.SOLAR
//-------------------------------------------------------
// Simulation Definition Division
//-------------------------------------------------------
Single_Simulation {
Step_Max = 0;
Time_Max = 0;
End_Condition = "";
Exec_Wait = 50;
Exec_Order = Random;
Exec_Order_Random_First_Step_Only = No;
Random_Seed = 0;
Redraw_Timing = Step;
Redraw_Interval = 1;
Garbage_Interval = 0;
}
//-------------------------------------------------------
// Simulation Loop Definition Division
//-------------------------------------------------------
Repeat_Simulation {
Value_Change = None;
Initial_Value_Change_None {
Repeat_Max = 1;
}
}
//-------------------------------------------------------
// 2 Dimension Map Display Definition Division
//-------------------------------------------------------
Map_Output {
Map_Space_Name = "Universe.powergrid";
Map_Name = "powergrid";
Title = "powergrid";
Disable = No;
Background_Color = 255, 255, 255;
Position_x = -43;
Position_y = 21;
Size_x = 1044;
Size_y = 800;
Remarks = Yes;
Legend_Pos = Top;
Font_Name = "Dialog";
Font_Char_Set = 81;
Font_Size = 12.0;
Font_Style = 0;
Font_Color = 0, 0, 0;
Font_Background_Color = 255, 255, 255;
FastDraw = Yes;
Draw_Timing = Simulation_Step;
Draw_Interval = 1;
Axis_Label = "", "";
Draw_Range = 0, 0, 150, 150;
Ruled_Line = No;
Text_Display = No;
Text_Display_Variable_Name = "";
Chess_Type_Display_Position = Yes;
Background_Transparent = No;
Target_Layer = 0;
Coordinate_Display = No;
Space_Kind = Square_2D;
BG_Pict = No;
BG_Type = 0;
BG_Var_Name = "";
BG_File_Name = "";
Origin_Position = 2;
Output_Group_Name = "";
Output {
Map_Element_Name = "需要家(一般家庭)";
Map_Element = Agent_Variable;
Output_Expression = "Universe.powergrid.home";
Draw_Line = No;
Collection_Name = "";
Line_Type = 0;
Line_Arrow = 0;
Line_Width = 0;
Line_Color = 0, 0, 0;
Line_Type_Variable = "";
Line_Arrow_Variable = "";
Line_Width_Variable = "";
Line_Color_Variable = "";
Agent_Color = 255,0,0;
Marker_Id = -1;
Effective_Figures = 0;
Format_Id = 0;
Agent_Image_Direction = No;
Icon_Type = 0;
Icon_Var_Name = "";
Icon_Transparent = No;
Icon_Enlarg_Reduce = No;
Icon_File_Name = "image_home.png";
Num_Display = No;
Num_Var_Name = "Universe.powergrid.home.ID";
Agent_Image_Magnify_by_value = Yes;
Agent_Image_Magnify_Value = 0.1;
Agent_Image_Magnify_Variable_Name = "Universe.powergrid.home.ID";
Agent_Image_Transparency_by_value = Yes;
Agent_Image_Transparency_Value = 0.0;
Agent_Image_Transparency_Variable_Name = "Universe.powergrid.home.ID";
}
Output {
Map_Element_Name = "発電家(太陽光発電)";
Map_Element = Agent_Variable;
Output_Expression = "Universe.powergrid.solar";
Draw_Line = Yes;
Collection_Name = "Universe.powergrid.solar.link";
Line_Type = 1;
Line_Arrow = 1;
Line_Width = 1;
Line_Color = 0, 0, 255;
Line_Type_Variable = "";
Line_Arrow_Variable = "";
Line_Width_Variable = "";
Line_Color_Variable = "";
Agent_Color = 0,0,255;
Marker_Id = -1;
Effective_Figures = 0;
Format_Id = 0;
Agent_Image_Direction = No;
Icon_Type = 0;
Icon_Var_Name = "";
Icon_Transparent = No;
Icon_Enlarg_Reduce = No;
Icon_File_Name = "image_solar.png";
Num_Display = No;
Num_Var_Name = "";
Agent_Image_Magnify_by_value = Yes;
Agent_Image_Magnify_Value = 0.1;
Agent_Image_Magnify_Variable_Name = "Universe.powergrid.solar.ID";
Agent_Image_Transparency_by_value = Yes;
Agent_Image_Transparency_Value = 0.0;
Agent_Image_Transparency_Variable_Name = "Universe.powergrid.solar.ID";
}
Output {
Map_Element_Name = "地域";
Map_Element = Agent_Variable;
Output_Expression = "Universe.powergrid.area";
Draw_Line = Yes;
Collection_Name = "Universe.powergrid.area.link";
Line_Type = 1;
Line_Arrow = 1;
Line_Width = 1;
Line_Color = 0, 0, 255;
Line_Type_Variable = "";
Line_Arrow_Variable = "";
Line_Width_Variable = "";
Line_Color_Variable = "";
Agent_Color = 255,204,153;
Marker_Id = -1;
Effective_Figures = 0;
Format_Id = 0;
Agent_Image_Direction = No;
Icon_Type = 0;
Icon_Var_Name = "";
Icon_Transparent = No;
Icon_Enlarg_Reduce = No;
Icon_File_Name = "image_area.png";
Num_Display = No;
Num_Var_Name = "";
Agent_Image_Magnify_by_value = Yes;
Agent_Image_Magnify_Value = 0.5;
Agent_Image_Magnify_Variable_Name = "Universe.powergrid.area.ID";
Agent_Image_Transparency_by_value = Yes;
Agent_Image_Transparency_Value = 0.0;
Agent_Image_Transparency_Variable_Name = "Universe.powergrid.area.ID";
}
}
//-------------------------------------------------------
// Time Graph Output Definition Division
//-------------------------------------------------------
Time_Graph {
Font_Name = "Dialog";
Font_Char_Set = 81;
Font_Size = 12.0;
Font_Style = 0;
Font_Color = 0, 0, 0;
Font_Background_Color = 255, 255, 255;
Draw_Timing = Simulation_Step;
Draw_Interval = 1;
Graph_Name = "合計停滞量";
Title = "合計停滞量";
Disable = No;
Background_Color = 255, 255, 255;
Remarks = Yes;
Legend_Pos = Top;
FastDraw = Yes;
Position_x = 90;
Position_y = 190;
Size_x = 985;
Size_y = 344;
Axis_Label = "", "";
Draw_By_JFree_Chart = Yes;
Scale = 0, 0.0, 1000, 100.0, 100, 10.0;
ScaleAuto = Yes, Yes;
Output_Group_Name = "";
Output {
Graph_Element_Name = "合計停滞量";
Line_Color = 255, 0, 0;
Line_Width = 2;
Marker_Id = 1;
Output_Expression = "Universe.e_total";
Expression_Value_Display = No;
Effective_Fraction_Figures = 0;
Graph_Element_Color = (0, 255, 0);
}
}
//-------------------------------------------------------
// Time Graph Output Definition Division
//-------------------------------------------------------
Time_Graph {
Font_Name = "Dialog";
Font_Char_Set = 81;
Font_Size = 12.0;
Font_Style = 0;
Font_Color = 0, 0, 0;
Font_Background_Color = 255, 255, 255;
Draw_Timing = Simulation_Step;
Draw_Interval = 1;
Graph_Name = "価格";
Title = "価格";
Disable = No;
Background_Color = 255, 255, 255;
Remarks = Yes;
Legend_Pos = Top;
FastDraw = No;
Position_x = 98;
Position_y = -2;
Size_x = 846;
Size_y = 223;
Axis_Label = "", "";
Draw_By_JFree_Chart = Yes;
Scale = 0, 0.0, 1000, 100.0, 100, 10.0;
ScaleAuto = Yes, Yes;
Output_Group_Name = "";
Output {
Graph_Element_Name = "地域1";
Line_Color = 255, 0, 0;
Line_Width = 2;
Marker_Id = 0;
Output_Expression = "Universe.powergrid.area(1).p";
Expression_Value_Display = No;
Effective_Fraction_Figures = 0;
Graph_Element_Color = (0, 255, 0);
}
Output {
Graph_Element_Name = "地域2";
Line_Color = 255, 0, 0;
Line_Width = 2;
Marker_Id = 0;
Output_Expression = "Universe.powergrid.area(2).p";
Expression_Value_Display = No;
Effective_Fraction_Figures = 0;
Graph_Element_Color = (51, 102, 255);
}
Output {
Graph_Element_Name = "地域3";
Line_Color = 255, 0, 0;
Line_Width = 2;
Marker_Id = 0;
Output_Expression = "Universe.powergrid.area(3).p";
Expression_Value_Display = No;
Effective_Fraction_Figures = 0;
Graph_Element_Color = (0, 51, 153);
}
Output {
Graph_Element_Name = "地域4";
Line_Color = 255, 0, 0;
Line_Width = 2;
Marker_Id = 0;
Output_Expression = "Universe.powergrid.area(4).p";
Expression_Value_Display = No;
Effective_Fraction_Figures = 0;
Graph_Element_Color = (153, 0, 51);
}
Output {
Graph_Element_Name = "地域5";
Line_Color = 255, 0, 0;
Line_Width = 2;
Marker_Id = 0;
Output_Expression = "Universe.powergrid.area(5).p";
Expression_Value_Display = No;
Effective_Fraction_Figures = 0;
Graph_Element_Color = (204, 255, 0);
}
Output {
Graph_Element_Name = "地域6";
Line_Color = 255, 0, 0;
Line_Width = 2;
Marker_Id = 0;
Output_Expression = "Universe.powergrid.area(6).p";
Expression_Value_Display = No;
Effective_Fraction_Figures = 0;
Graph_Element_Color = (153, 0, 102);
}
Output {
Graph_Element_Name = "地域7";
Line_Color = 255, 0, 0;
Line_Width = 2;
Marker_Id = 0;
Output_Expression = "Universe.powergrid.area(7).p";
Expression_Value_Display = No;
Effective_Fraction_Figures = 0;
Graph_Element_Color = (102, 0, 102);
}
Output {
Graph_Element_Name = "地域8";
Line_Color = 255, 0, 0;
Line_Width = 2;
Marker_Id = 0;
Output_Expression = "Universe.powergrid.area(8).p";
Expression_Value_Display = No;
Effective_Fraction_Figures = 0;
Graph_Element_Color = (51, 0, 51);
}
Output {
Graph_Element_Name = "地域9";
Line_Color = 255, 0, 0;
Line_Width = 2;
Marker_Id = 0;
Output_Expression = "Universe.powergrid.area(9).p";
Expression_Value_Display = No;
Effective_Fraction_Figures = 0;
Graph_Element_Color = (0, 153, 153);
}
Output {
Graph_Element_Name = "地域0";
Line_Color = 255, 0, 0;
Line_Width = 2;
Marker_Id = 0;
Output_Expression = "Universe.powergrid.area(0).p";
Expression_Value_Display = No;
Effective_Fraction_Figures = 0;
Graph_Element_Color = (153, 153, 255);
}
}
//-------------------------------------------------------
// Time Graph Output Definition Division
//-------------------------------------------------------
Time_Graph {
Font_Name = "Dialog";
Font_Char_Set = 81;
Font_Size = 12.0;
Font_Style = 0;
Font_Color = 0, 0, 0;
Font_Background_Color = 255, 255, 255;
Draw_Timing = Simulation_Step;
Draw_Interval = 1;
Graph_Name = "需要供給量";
Title = "需要供給量";
Disable = Yes;
Background_Color = 255, 255, 255;
Remarks = Yes;
Legend_Pos = Top;
FastDraw = No;
Position_x = 57;
Position_y = 370;
Size_x = 500;
Size_y = 300;
Axis_Label = "", "";
Draw_By_JFree_Chart = Yes;
Scale = 0, 0.0, 1000, 100.0, 100, 10.0;
ScaleAuto = Yes, Yes;
Output_Group_Name = "";
Output {
Graph_Element_Name = "home1";
Line_Color = 255, 0, 0;
Line_Width = 2;
Marker_Id = 0;
Output_Expression = "Universe.powergrid.home(1).x_i";
Expression_Value_Display = No;
Effective_Fraction_Figures = 0;
Graph_Element_Color = (0, 255, 0);
}
Output {
Graph_Element_Name = "home2";
Line_Color = 255, 0, 0;
Line_Width = 2;
Marker_Id = 0;
Output_Expression = "Universe.powergrid.home(2).x_i";
Expression_Value_Display = No;
Effective_Fraction_Figures = 0;
Graph_Element_Color = (51, 102, 255);
}
Output {
Graph_Element_Name = "home3";
Line_Color = 255, 0, 0;
Line_Width = 2;
Marker_Id = 0;
Output_Expression = "Universe.powergrid.home(3).x_i";
Expression_Value_Display = No;
Effective_Fraction_Figures = 0;
Graph_Element_Color = (0, 51, 153);
}
Output {
Graph_Element_Name = "home4";
Line_Color = 255, 0, 0;
Line_Width = 2;
Marker_Id = 0;
Output_Expression = "Universe.powergrid.home(4).x_i";
Expression_Value_Display = No;
Effective_Fraction_Figures = 0;
Graph_Element_Color = (153, 0, 51);
}
Output {
Graph_Element_Name = "home5";
Line_Color = 255, 0, 0;
Line_Width = 2;
Marker_Id = 0;
Output_Expression = "Universe.powergrid.home(5).x_i";
Expression_Value_Display = No;
Effective_Fraction_Figures = 0;
Graph_Element_Color = (204, 255, 0);
}
Output {
Graph_Element_Name = "home6";
Line_Color = 255, 0, 0;
Line_Width = 2;
Marker_Id = 0;
Output_Expression = "Universe.powergrid.home(6).x_i";
Expression_Value_Display = No;
Effective_Fraction_Figures = 0;
Graph_Element_Color = (153, 0, 102);
}
Output {
Graph_Element_Name = "home7";
Line_Color = 255, 0, 0;
Line_Width = 2;
Marker_Id = 0;
Output_Expression = "Universe.powergrid.home(7).x_i";
Expression_Value_Display = No;
Effective_Fraction_Figures = 0;
Graph_Element_Color = (102, 0, 102);
}
Output {
Graph_Element_Name = "home8";
Line_Color = 255, 0, 0;
Line_Width = 2;
Marker_Id = 0;
Output_Expression = "Universe.powergrid.home(8).x_i";
Expression_Value_Display = No;
Effective_Fraction_Figures = 0;
Graph_Element_Color = (51, 0, 51);
}
Output {
Graph_Element_Name = "home9";
Line_Color = 255, 0, 0;
Line_Width = 2;
Marker_Id = 0;
Output_Expression = "Universe.powergrid.home(9).x_i";
Expression_Value_Display = No;
Effective_Fraction_Figures = 0;
Graph_Element_Color = (0, 153, 153);
}
Output {
Graph_Element_Name = "home0";
Line_Color = 255, 0, 0;
Line_Width = 2;
Marker_Id = 0;
Output_Expression = "Universe.powergrid.home(0).x_i";
Expression_Value_Display = No;
Effective_Fraction_Figures = 0;