You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: library/src/main/scala/org/openmole/spatialdata/application/multimodelmacro/SDG.scala
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,6 @@ object SDG {
66
66
defsetupMultiModelMacro(population: Matrix,
67
67
distances: Matrix,
68
68
dates: Array[Double],
69
-
finalTime: Int,
70
69
seed: Long,
71
70
innovationWeight: Double,
72
71
innovationGravityDecay: Double,
@@ -91,6 +90,8 @@ object SDG {
91
90
coevolNetworkThresholdQuantile: Double
92
91
)(implicitrng: Random):MultiMacroModel= {
93
92
93
+
rng.setSeed(seed)
94
+
94
95
// note: constructor are a mess: legacy vs mutation model, no proper for mutation
95
96
// initial innov utility is 1
96
97
valdistrib= innovationUtilityDistrib match {case"normal"=>InnovationUtilityNormalDistribution(); case"log-normal"=>InnovationUtilityLogNormalDistribution()}
0 commit comments