-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDion.1952V2.nlogo
1849 lines (1658 loc) · 41.3 KB
/
Dion.1952V2.nlogo
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
;;Autor : Delay E. (Université de Limoges)
;;7 decembre 2012 modéliser l'article de R.DION 1952
breed [Districts District] ;les districte sont les quartiers
breed [wineMarkets wineMarket]
breed [foreigns foreign]
undirected-link-breed [linksPrim linkPrim]
undirected-link-breed [secLinks SecLink]
globals [
;des gloables qu'on va chercher a analyser en stat descriptive
fitnessPatches
patchbefore
prodCostGlob
propPatchMont
propPatchPlain
globalQuality
sumDiffQuality
meanQuality
gini-index-reserve
lorenz-points
gini-index-patch
lorenz-points-patch
meanQualityTotal
meanQualityMountain
meanQualityPlain
maxnbplots
DiffExtCentral
nbcentralPlots
meanPatchByNetwork
;;variable for gloablSetup
nbCitys
nbPLots
whatWord
demandF
priceMaxWineF
standarDevPop
downerQ
coefUpQuality
logistique
]
patches-own[
alti
owner
ageOfPlot
plotVineType
grapProduction
winrAmount
quality
RelaQualityInit
RelaQuality
DiffQuality
]
wineMarkets-own [
popB ;population locale qui varie autour de 0 par une loi normal
supplyB ;la somme des productions de chaque patches
demandB ;les besoin locaux en vin
stockB ;ce que la ville est capable de stoker (demandB - supplyB)
myplots ;agentSet de tout mes patches
distanceToMarketone ;la distance du marché centrale
productionCost ;les cout de productions qui sont proportionnel à la somme des éloignement des parcelles
prodCostNetWork ;les cout de production du réseau
connection ;FRUE/FALSE estce que la ville est connecté
networkMarket ;agentSet des marché connecté au marché principale
distCostPC ;le cout de la distance eu marché principale
plotsQuality ; la qualitée moyenne de myPlots
supplyW
demandW
stockW
]
Districts-own[
ownerTown
bourgeois
worker
city
]
foreigns-own[
demandForeign
supplyForeign
priceMax
myWineMarket
demandRest
]
links-own [
demandFlux
]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;; SETUP
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
to globalSetup ;this setup is not interpreted when the model run on openMole
;We need here all interface slider elements and all hard variable
set nbCitys nbCitys-i
set nbPLots nbPLots-i
set whatWord whatWord-i
set demandF demandF-i
set priceMaxWineF priceMaxWineF-i
set standarDevPop standarDevPop-i
set downerQ downerQ-i
set coefUpQuality coefUpQuality-i
set logistique logistique-i
end
to setup
clear-all
globalSetup
commonSetup
end
to commonSetup
; import-pcolors "montagne1.png"
let conterColor 2
set patchbefore count patches with [owner != -9999]
if whatWord = 1 [
import-pcolors "montagne5.png"
ask patches [set alti pcolor]
]
if whatWord = 0[
ask patches [set alti 0]
]
if whatWord = 2 [
import-pcolors "montagne6.png"
ask patches [set alti pcolor]
]
ask patches [
set quality (alti + 0.1) * 10
set owner -9999
set plotVineType -9999
]
if not any? patches with [quality <= 0][
set meanQuality mean [quality] of patches with [owner = -9999]
ask patches [
set RelaQualityInit quality / meanQuality * 100
]
]
set-default-shape wineMarkets "house"
set-default-shape Districts "circle"
set-default-shape foreigns "boat"
; set-default-shape parcels "plant"
create-wineMarkets nbCitys [
setxy random-pxcor random-pycor
set size 3
set label plotsQuality
set supplyB 0
set demandB 0
set stockB 0
set popB 100
set supplyW 0
set demandW 0
set stockW 0
set networkMarket (turtle-set)
; pour que chaque marché ait une couleur différente
set color conterColor
set conterColor ifelse-value (conterColor < 140) [conterColor + 10] [conterColor - 139]
set connection 0
]
create-foreigns 1 [
; setxy random-pxcor random-pycor
setxy -30 0
set priceMax priceMaxWineF
set size 5
]
;;creation des parcelles viticole
ask wineMarkets [
set myplots n-of (random nbPLots + 1) patches in-radius 5 with [owner = -9999]
ask myplots [
set pcolor [color] of myself
set owner [who] of myself
]
]
;;recherche de la ville la plus proche pour établir une liaison
ask foreigns [
set myWineMarket min-one-of wineMarkets [distance myself]
ask myWineMarket [
set connection 1
]
create-linkPrim-with myWineMarket
]
update-lorenz-and-gini
reset-ticks
end
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;Pour bouger n'importe quelle tortue avant de démarrer
to moveMousse
if mouse-down? [
let candidate min-one-of turtles [distancexy mouse-xcor mouse-ycor]
if [distancexy mouse-xcor mouse-ycor] of candidate < 1 [
;; The WATCH primitive puts a "halo" around the watched turtle.
watch candidate
while [mouse-down?] [
;; If we don't force the view to update, the user won't
;; be able to see the turtle moving around.
display
;; The SUBJECT primitive reports the turtle being watched.
ask subject [ setxy mouse-xcor mouse-ycor ]
]
;; Undoes the effects of WATCH. Can be abbreviated RP.
reset-perspective
]
]
clear-links
ask foreigns [
set myWineMarket min-one-of wineMarkets [distance myself]
ask myWineMarket [
set connection 1
]
create-linkPrim-with myWineMarket
]
end
to seeQuality
ifelse marketColor = TRUE [
ask patches [
set pcolor alti
]
ask wineMarkets [
ask myPlots [
set pcolor [color] of myself
]
]
][
ask patches [
set pcolor scale-color red quality 0 100
]
]
end
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; RUN TO THE GRID
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
to run-to-grid [tmax]
commonSetup
while [ticks <= tmax]
[go]
reset-ticks
end
to-report go-stop?
; ifelse nb-viti-non-innov = 0
; [report FALSE][report TRUE]
end
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;; GO
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
to go
;;pour le calcul du fitness
set patchbefore count patches with [owner != -9999]
exportmonde
ask wineMarkets [
dynPop]
;;demande n vin pour les étrangés
ask foreigns [
marketChoice
foreignNeed
]
ask wineMarkets [
produce
upQuality
ageIncrement
offer
colonizePLots
calculCost
]
downQuality
calculGlobalQuality
; updateColor
ask seclinks [
killlinks
]
altirob
statSpat
;;;;mise a jour du graph
update-fitness2
update-lorenz-and-gini
updatePlot
tick
end
to marketChoice
;;;;foreigns context ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;calule de la capacité de production du réseau de marché!
let surfViti 0
let countNetworkPlots []
ask myWineMarket [
ask networkmarket [
let countMyPlots count myplots
set countNetworkPlots lput countMyPlots countNetworkPlots
]
set surfViti sum countNetworkPlots + count myPlots
]
let capProd surfViti * 7
;;creation des connections
if [prodCostNetWork] of myWineMarket > priceMaxWineF [
ask myWineMarket [
let firtTestMarket wineMarkets with [connection = 0]
if any? firtTestMarket [
let potMark 0
;;connection au marchés les plus proches
set potMark min-n-of 1 firtTestMarket [distance myself]
create-secLinks-with potMark
ask potMark [
set connection 1
set distanceToMarketone distance myself
]
set networkMarket (secLink-neighbors with [connection = 1])
]
]
]
;;suprimer des connextion en cas de surproduction
if demandF < capProd[
ask myWineMarket [
if any? networkmarket [
let farewayMarket max-one-of networkmarket [distance myself]
ask farewayMarket [
set connection 0
set distanceToMarketone 0
]
set networkMarket (secLink-neighbors with [connection = 1])
]
]
]
end
to killlinks
;;;;links context
if any? seclinks[
ask seclinks with [[connection] of end2 = 0][
die
]
]
end
to foreignNeed
;;;;foreigns context ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ask myWineMarket [
let countNetwork count networkMarket + 1
set demandB demandB + (demandF / countNetwork)
ask networkMarket [
set demandB demandB + (demandF / countNetwork) ;- (distCostPC * 10)
]
]
end
to dynPop
set popB popB + random-normal 0 standarDevPop
set demandB popB
end
to produce
;;WineMarkets context;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; ask myPlots [
; set grapProduction 0
; ;verification de l'age de la parcelle pour rentrer en production
; if ageOfPlot > 3 [
; set grapProduction 1
; ]
; if grapProduction = 1 [
; set winrAmount 7
; ]
;
; ]
ask myPlots [
set winrAmount 7
]
end
;;;;;;;;;;;;;;;;;;;;;;;;;;Qualité du terrain;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
to upQuality
;;;;;;WineMarkets Context
if logistique = 1 [
ask myPlots [
;; ;set quality quality + coefUpQuality * quality * (1 - quality / 100) ;; fonction logistique de croissance de la Qualite
set quality 100 * (1 / (1 + exp(- coefUpQuality * quality)))
]
]
if logistique = 0 [
ask myPlots [
set quality quality + (coefUpQuality * quality) ;; fonction linéaire
]
]
if any? myPlots [
set plotsQuality mean [quality] of myPlots
]
end
to downQuality
ask patches with [owner = -9999][
if quality > 0.1 [
set quality quality - downerQ
if alti > 0.1 and quality < alti[
set quality alti
]
]
if quality <= 0.1 [
set quality 0.1
]
]
end
;to updateColor
; ask patches [
; set pcolor quality
; ]
;end
to ageIncrement
;;;WineMarkets context;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ask myPlots [
set ageOfPlot ageOfPlot + 1
]
end
to offer
;;;WineMarkets context;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
set supplyB sum [winrAmount] of myplots
set stockB demandB - supplyB
end
to colonizePLots
;;;WineMarkets context;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
if demandB > supplyB and priceMaxWineF > productionCost [
let potplotfinal (patch-set) ;collection de patchs pot
ask myplots [
let potplot patches in-radius 2 with [owner = -9999 ] ;critère de selection, recherche de voisins potentiels
set potplotfinal (patch-set potplotfinal potplot) ;renseigne la collection
]
if any? potplotfinal [
let listloop [1 1 1 1 1]
foreach listloop [
let newplot min-one-of (potplotfinal with-max[quality])[distance myself]
ask newplot [
set pcolor [color] of myself
set owner [who] of myself
]
set myplots (patch-set myplots newplot)
]
]
]
if demandB < supplyB or priceMaxWineF < productionCost[
if any? myplots with-max [distance myself] [
let frich n-of 1 myplots with-max [distance myself]
if count frich > 0[
ask frich [
set pcolor alti
set owner -9999
]
set myplots myplots with [owner = [who] of myself]
]
]
]
end
to calculCost
;;;;;WineMarkets context;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
let distcost 0
ask myplots [
let distplot distance myself
set distcost distcost + ( distplot * 5 ) ;;;5 est le cout de l'acheminement local
]
set productionCost (distcost / 200 ) ;;; on peut ajouter des cout de productions ici
set prodCostNetWork productionCost / (count Seclinks + 1) ;;; s'il n'y a pas de marché networke le cout de prod myeon sont les meme que les cout de prod
;; Si on travail sur un réseau de marché
if any? networkMarket [
let sumPrdCost productionCost
ask networkMarket [
let distBigMarket distance myself
set distCostPC distBigMarket
set sumPrdCost ( sumPrdCost + productionCost + distCostPC)
]
let prodCostMoy sumPrdCost / count networkMarket
set prodCostNetWork prodCostMoy
]
end
to update-fitness2
if count patches with [owner != -9999] > 0 [
set fitnessPatches count patches with [owner != -9999] / patchBefore
]
end
to altirob ;;pour tracer la courbe du nombre de patches en montagne et en plaine
let testAlti count patches with [alti > 0]
if testAlti != 0 [
set propPatchMont (count patches with [alti >= 0.1 and owner != -9999]) / ( count patches with [alti >= 0.1] ) * 100
]
set propPatchPlain (count patches with [alti <= 0.1 and owner != -9999]) / ( count patches with [alti <= 0.1] ) * 100
end
to exportmonde
if export = TRUE [
if ticks = 0 [
export-view "export/quantity0.png"
set marketColor FALSE
seeQuality
export-view "export/quality0.png"
set marketColor TRUE
seeQuality
]
if ticks = 130 [
export-view "export/quantity130.png"
set marketColor FALSE
seeQuality
export-view "export/quality130.png"
set marketColor TRUE
seeQuality
]
if ticks = 300 [
export-view "export/quantity300.png"
set marketColor FALSE
seeQuality
export-view "export/quality300.png"
set marketColor TRUE
seeQuality
]
]
end
to statSpat
set meanQualityTotal mean [quality] of patches with [owner != -9999]
ifelse any? patches with [alti >= 0.1 and owner != -9999] [
set meanQualityMountain mean [quality] of patches with [owner != -9999 and alti >= 0.1]
set meanQualityPlain mean [quality] of patches with [owner != -9999 and alti < 0.1]
][
set meanQualityMountain 0
set meanQualityPlain mean [quality] of patches with [owner != -9999]
]
ask foreigns [
ask myWineMarket [
set nbcentralPlots count myPlots
if nbcentralPlots > maxnbplots [
set maxnbplots nbcentralPlots
]
set DiffExtCentral maxnbplots - nbcentralPlots
]
]
let listpatch []
foreach sort wineMarkets with [connection = 1][
set listpatch lput count [myPlots] of ? listpatch
]
set meanPatchByNetwork mean listpatch
end
to calculGlobalQuality
let tpsGlobalQuality []
ask wineMarkets [
set tpsGlobalQuality lput plotsQuality tpsGlobalQuality
set label (precision plotsQuality 2)
]
set globalQuality tpsGlobalQuality
end
to update-lorenz-and-gini
;;; pour avoir un gini les patches sur les patches cultivé
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
let patchOwnered patches with [owner != -9999]
let countPatchOwner count patchOwnered
let sorted-wealths sort [quality] of patchOwnered
let total-wealth sum sorted-wealths
let wealth-sum-so-far 0
let index 0
set gini-index-reserve 0
set lorenz-points [] ;pour stocker un vecteur, lupt rajoute dans la liste
repeat countPatchOwner [ ; une boucle sur l'ensemble des patches cultivé
set wealth-sum-so-far (wealth-sum-so-far + item index sorted-wealths)
set lorenz-points lput ((wealth-sum-so-far / total-wealth) * 100) lorenz-points
set index (index + 1)
set gini-index-reserve gini-index-reserve + (index / countPatchOwner) - (wealth-sum-so-far / total-wealth)
]
set gini-index-reserve (gini-index-reserve / countPatchOwner) / 0.5
;;;;calcul du gini du nombre de patches
let sorted-wealths-patch []
foreach sort wineMarkets [
set sorted-wealths-patch lput count[myPlots] of ? sorted-wealths-patch
]
let total-wealth-patch sum sorted-wealths-patch
let wealth-sum-so-far-patch 0
let index-patch 0
set gini-index-patch 0
set lorenz-points-patch [] ;pour stocker un vecteur, lupt rajoute dans la liste
repeat count wineMarkets [
set wealth-sum-so-far-patch (wealth-sum-so-far-patch + item index-patch sorted-wealths-patch)
set lorenz-points-patch lput ((wealth-sum-so-far-patch / total-wealth-patch) * 100) lorenz-points-patch
set index-patch (index-patch + 1)
set gini-index-patch gini-index-patch + ((index-patch / count wineMarkets) - (wealth-sum-so-far-patch / total-wealth-patch))
]
set gini-index-patch (gini-index-patch / count wineMarkets) / 0.5
end
to updatePlot
set-current-plot "demend"
ask WineMarkets [
set-plot-pen-color color ;pour renvoyer la couleur du fermier
plotxy ticks demandB
]
set-current-plot "productionCost_WineMarkets"
ask WineMarkets [
set-plot-pen-color color ;pour renvoyer la couleur du fermier
plotxy ticks productionCost
]
set-current-plot "global-cost"
ask foreigns [
ask myWineMarket [
set-plot-pen-color color
plotxy ticks prodCostNetWork
; set prodCostGlob prodCostNetWork
]
]
set-current-plot "nbconection"
ask foreigns [
ask myWineMarket [
set-plot-pen-color color
plotxy ticks count networkMarket
]
]
set-current-plot "meanQualityVineyard"
ask wineMarkets [
set-plot-pen-color color
if count myPlots > 0 [
plotxy ticks plotsQuality
]
]
set-current-plot "mountainPlot"
set-plot-pen-color gray
plotxy ticks propPatchMont
set-plot-pen-color red
plotxy ticks propPatchPlain
set-current-plot "Absolute-landscape-fitness"
plotxy ticks fitnessPatches
set-current-plot "Quality"
;;pour réaliser un histogram on a besoin d'une liste
set-plot-x-range 0 ( (max globalQuality) + 5)
histogram globalQuality
let maxbar modes globalQuality
let maxrange length filter [ ? = item 0 maxbar ] globalQuality
set-plot-y-range 0 max list 10 maxrange
set-current-plot "LorenzCurve"
ask wineMarkets [
plot-pen-reset
set-plot-pen-interval 100 / (count patches with [owner = -9999])
plot 0
foreach lorenz-points plot
]
end
to photo
export-view (word "../img/exportview/espace_" ticks ".png")
end
@#$#@#$#@
GRAPHICS-WINDOW
210
10
609
430
32
32
5.985
1
10
1
1
1
0
0
0
1
-32
32
-32
32
0
0
1
ticks
30.0
BUTTON
15
25
88
58
NIL
setup
NIL
1
T
OBSERVER
NIL
NIL
NIL
NIL
1
SLIDER
15
100
187
133
nbCitys-i
nbCitys-i
1
100
10
1
1
NIL
HORIZONTAL
BUTTON
95
25
182
58
go step
go
NIL
1
T
OBSERVER
NIL
NIL
NIL
NIL
1
SLIDER
15
135
187
168
nbPLots-i
nbPLots-i
1
20
7
1
1
NIL
HORIZONTAL
TEXTBOX
640
10
800
46
quantité de vin demandé par le marché étranger : 7000 default
9
0.0
1
TEXTBOX
820
10
970
31
Prix max que les étrangers sont capable de payer le vin
9
0.0
1
PLOT
605
600
770
740
demend
NIL
NIL
0.0
10.0
0.0
10.0
true
false
"" ""
PENS
"default" 1.0 2 -16777216 true "" ""
BUTTON
120
65
183
98
NIL
go
T
1
T
OBSERVER
NIL
NIL
NIL
NIL
1
PLOT
5
595
185
745
productionCost_WineMarkets
NIL
NIL
0.0
10.0
0.0
10.0
true
false
"" ""
PENS
"default" 1.0 2 -16777216 true "" ""
"pen-1" 1.0 0 -2674135 true "" "plot priceMaxWineF"
PLOT
605
445
765
595
nbconection
NIL
NIL
0.0
10.0
0.0
10.0
true
false
"" ""
PENS
"default" 1.0 0 -16777216 true "" ""
"pen-1" 1.0 0 -7500403 true "" "plot count seclinks"
PLOT
15
175
205
335
meanQualityVineyard
NIL
NIL
0.0
10.0
0.0
10.0
true
false
"" ""
PENS
"default" 1.0 2 -16777216 true "" ""
SLIDER
640
35
812
68
demandF-i
demandF-i
0
30000
8000
100
1
NIL
HORIZONTAL
SLIDER
815
35
992
68
priceMaxWineF-i
priceMaxWineF-i
0
150
70
10
1
NIL
HORIZONTAL
BUTTON
20
65
112
98
go 500
if ticks <= 500 [go]
T
1
T
OBSERVER
NIL
NIL
NIL
NIL
1
PLOT
630
230
870
430
Absolute-landscape-fitness
NIL
NIL
0.0
10.0
0.9
1.1
true
false
"" ""
PENS
"default" 1.0 0 -16777216 true "" ""
"pen-1" 1.0 0 -5298144 true "" "plot 1"
BUTTON
10
485
132
518
NIL
moveMousse
T
1
T
OBSERVER
NIL
NIL
NIL
NIL
1
TEXTBOX
15
525