[380] | 1 | expdef:
|
---|
| 2 | name:Foraminifera simulation
|
---|
| 3 | info:~
|
---|
| 4 | Genes and parameter values which control reproduction are stored in user1 and user2 fields.
|
---|
| 5 |
|
---|
| 6 | user1:
|
---|
| 7 | genes which are not encoded in ff genotype:
|
---|
| 8 | Vamin - Minimum stored energy necessary for reproduction
|
---|
| 9 | amin - minimal age for reproduction
|
---|
| 10 |
|
---|
| 11 | user2:
|
---|
| 12 | Physiological parameters of foraminifera:
|
---|
| 13 | Va - amount of the stored energy
|
---|
| 14 | gen - generation: 0 haploid, 1 diploid
|
---|
| 15 | ~
|
---|
| 16 | code:~
|
---|
| 17 |
|
---|
| 18 | global foodenergywaiting;
|
---|
| 19 | global reprocounter;
|
---|
| 20 |
|
---|
| 21 | // -------------------------------- experiment begin --------------------------------
|
---|
| 22 |
|
---|
| 23 | function onExpDefLoad()
|
---|
| 24 | {
|
---|
| 25 | // define genotype and creature groups
|
---|
| 26 | GenePools.clear();
|
---|
| 27 | Populations.clear();
|
---|
| 28 | GenePools[0].name = "Unused";
|
---|
| 29 |
|
---|
| 30 | var pop = Populations[0];
|
---|
| 31 | pop.name = "Creatures";
|
---|
| 32 | pop.en_assim = 0;
|
---|
| 33 | pop.nnsim = 1;
|
---|
| 34 | pop.enableperf = 1;
|
---|
| 35 | pop.death = 1;
|
---|
| 36 | pop.energy = 1;
|
---|
| 37 | pop.selfmask = 0x10001;
|
---|
| 38 | pop.othermask = 0x30000;
|
---|
| 39 | pop.perfperiod = 25;
|
---|
| 40 |
|
---|
| 41 | pop = Populations.addGroup("Food");
|
---|
| 42 | pop.nnsim = 0;
|
---|
| 43 | pop.enableperf = 0;
|
---|
| 44 | pop.death = 1;
|
---|
| 45 | pop.energy = 1;
|
---|
| 46 | pop.selfmask = 0x20002;
|
---|
| 47 | pop.othermask = 0x30002;
|
---|
| 48 |
|
---|
| 49 | ExpParams.genh = "/*F*/1,1.1,1.1,1.1,1,1,1";
|
---|
| 50 | ExpParams.gend = "/*F*/1,1,1,1,1,1,1";
|
---|
| 51 | ExpParams.p_mut = 50;
|
---|
| 52 | ExpParams.e_meta = 0.1;
|
---|
| 53 | ExpParams.feedrate = 0.7;
|
---|
| 54 | ExpParams.feede0 = 100;
|
---|
| 55 | ExpParams.feedtrans = 3;
|
---|
| 56 | ExpParams.creath = -0.99; //just above the bottom
|
---|
| 57 | ExpParams.foodgen = "//0\np:sh=1,sx=0.1,sy=0.1,sz=0.1";
|
---|
| 58 | ExpParams.autorestart = 0;
|
---|
| 59 | ExpParams.psize = 10;
|
---|
| 60 | ExpParams.ofnumh = 14;
|
---|
| 61 | ExpParams.ofnumd = 4;
|
---|
| 62 | ExpParams.v_min_d = 200;
|
---|
| 63 | ExpParams.v_min_h = 500;
|
---|
| 64 | ExpParams.age_min_d = 150;
|
---|
| 65 | ExpParams.age_min_h = 300;
|
---|
| 66 | ExpParams.crossprob = 0.3;
|
---|
| 67 | ExpParams.repro_time = 200;
|
---|
| 68 | ExpParams.repro_thr = 1;
|
---|
| 69 |
|
---|
| 70 | ExpState.totaltestedcr = 0;
|
---|
| 71 | ExpState.food = "";
|
---|
| 72 | foodenergywaiting = ExpParams.feede0;
|
---|
| 73 | reprocounter = 0;
|
---|
| 74 |
|
---|
| 75 | ExpParams.wsize = 30;
|
---|
| 76 |
|
---|
| 77 | World.wrldwat = 50;
|
---|
| 78 | World.wrldsiz = ExpParams.wsize;
|
---|
| 79 | World.wrldbnd = 1;
|
---|
| 80 | }
|
---|
| 81 |
|
---|
| 82 | @include "standard_placement.inc"
|
---|
| 83 |
|
---|
| 84 | function onExpInit()
|
---|
| 85 | {
|
---|
| 86 | Populations[0].clear();
|
---|
| 87 | Populations[1].clear();
|
---|
| 88 |
|
---|
| 89 | for (var i = 0; i < ExpParams.psize; i++)
|
---|
| 90 | {
|
---|
| 91 | var cr = Populations[0].add(ExpParams.genh);
|
---|
| 92 | cr.name = "Initial creature" + i;
|
---|
| 93 | placeCreatureRandomly(cr, 0, 0);
|
---|
| 94 | cr.energ0 = ExpParams.v_min_h - ExpParams.repro_thr;
|
---|
| 95 | cr.energy = cr.energ0;
|
---|
| 96 | cr.user1 = {"vamin" : ExpParams.v_min_h, "amin": ExpParams.age_min_h};
|
---|
| 97 | cr.user2 = {"Va" : ExpParams.v_min_h - ExpParams.repro_thr, "gen" : 0 };
|
---|
| 98 | }
|
---|
| 99 | ExpState.totaltestedcr = 0;
|
---|
| 100 | foodenergywaiting = ExpParams.feede0;
|
---|
| 101 | }
|
---|
| 102 |
|
---|
| 103 | function onExpLoad()
|
---|
| 104 | {
|
---|
| 105 | for (var pop in Populations)
|
---|
| 106 | pop.clear();
|
---|
| 107 |
|
---|
| 108 | Loader.addClass(sim_params.*);
|
---|
| 109 | Loader.setBreakLabel(Loader.BeforeUnknown, "onExpLoad_Unknown");
|
---|
| 110 | Loader.run();
|
---|
| 111 |
|
---|
| 112 | Simulator.print("Loaded " + Populations[0].size + " creatures and " + Populations[1].size + " food objects");
|
---|
| 113 | }
|
---|
| 114 |
|
---|
| 115 | function onExpLoad_Unknown()
|
---|
| 116 | {
|
---|
| 117 | if (Loader.objectName == "org") // saved by the old expdef
|
---|
| 118 | {
|
---|
| 119 | var g = Genotype.newFromString("");
|
---|
| 120 | Loader.currentObject = g;
|
---|
| 121 | Interface.makeFrom(g).setAllDefault();
|
---|
| 122 | Loader.loadObject();
|
---|
| 123 | var cr = Populations[0].add(g);
|
---|
| 124 | if (cr != null)
|
---|
| 125 | {
|
---|
| 126 | cr.rotate(0, 0, Math.rnd01*Math.twopi);
|
---|
| 127 | if ((typeof(g.user1) == "Vector") && (g.user1.size >= 3))
|
---|
| 128 | { // [x,y,energy]
|
---|
| 129 | cr.move(g.user1[0] - cr.center_x, g.user1[1] - cr.center_y, 0);
|
---|
| 130 | cr.energy = g.user1[2];
|
---|
| 131 | }
|
---|
| 132 | else
|
---|
| 133 | {
|
---|
| 134 | cr.move(Math.rnd01*World.wrldsiz - cr.center_x, Math.rnd01*World.wrldsiz - cr.center_y, 0);
|
---|
| 135 | }
|
---|
| 136 | }
|
---|
| 137 | }
|
---|
| 138 | else if (Loader.objectName == "Creature")
|
---|
| 139 | {
|
---|
| 140 | Loader.currentObject = CreatureSnapshot.new();
|
---|
| 141 | Loader.loadObject();
|
---|
| 142 | Populations[0].add(Loader.currentObject);
|
---|
| 143 | }
|
---|
| 144 | }
|
---|
| 145 |
|
---|
| 146 | function onExpSave()
|
---|
| 147 | {
|
---|
| 148 | File.writeComment("saved by '%s.expdef'" % Simulator.expdef);
|
---|
| 149 |
|
---|
| 150 | var i, tmpvec = [];
|
---|
| 151 |
|
---|
| 152 | for (var cr in Populations[1])
|
---|
| 153 | tmpvec.add([cr.center_x, cr.center_y, cr.energy]);
|
---|
| 154 |
|
---|
| 155 | ExpState.food = tmpvec;
|
---|
| 156 | File.writeObject(sim_params.*);
|
---|
| 157 | ExpState.food = null; //vectors are only created for saving and then discarded
|
---|
| 158 |
|
---|
| 159 | for (var cr in Populations[0])
|
---|
| 160 | File.writeObject(cr);
|
---|
| 161 | }
|
---|
| 162 |
|
---|
| 163 | // -------------------------------- experiment end --------------------------------
|
---|
| 164 |
|
---|
| 165 | // -------------------------------- creature begin --------------------------------
|
---|
| 166 |
|
---|
| 167 | function onCreaturesBorn(cr)
|
---|
| 168 | {
|
---|
| 169 | cr.idleen = ExpParams.e_meta;
|
---|
| 170 | }
|
---|
| 171 |
|
---|
| 172 | function readyToRepro(cr)
|
---|
| 173 | {
|
---|
| 174 | cr.signals.add("repro");
|
---|
| 175 | cr.signals.get(0).power = 1;
|
---|
| 176 | }
|
---|
| 177 |
|
---|
| 178 | function onCreaturesStep(cr)
|
---|
| 179 | {
|
---|
| 180 | cr.moveAbs(cr.pos_x, cr.pos_y, 0);
|
---|
| 181 | var p = cr.getMechPart(0);
|
---|
| 182 | var n = cr.signals.receiveSet("food", ExpParams.food_range);
|
---|
| 183 |
|
---|
| 184 | if (n.size > 0)
|
---|
| 185 | {
|
---|
| 186 | var i;
|
---|
| 187 | var mp;
|
---|
| 188 | var distvec = XYZ.new(0, 0, 0);
|
---|
| 189 | var dist;
|
---|
| 190 | var mindist = 100000000000;
|
---|
| 191 | var mindistvec = null;
|
---|
| 192 |
|
---|
| 193 | if (Math.rnd01 < 0.8)
|
---|
| 194 | {
|
---|
| 195 | for (i = 0;i < n.size;i++)
|
---|
| 196 | {
|
---|
| 197 | mp = n[i].value;
|
---|
| 198 | distvec.set(mp.pos);
|
---|
| 199 | distvec.sub(p.pos);
|
---|
| 200 | dist = distvec.length;
|
---|
| 201 | if (dist < mindist)
|
---|
| 202 | {
|
---|
| 203 | mindist = dist;
|
---|
| 204 | mindistvec = distvec.clone();
|
---|
| 205 | }
|
---|
| 206 | }
|
---|
| 207 | }
|
---|
| 208 | else
|
---|
| 209 | {
|
---|
| 210 | mp = n[Math.random(n.size)].value;
|
---|
| 211 | distvec.set(mp.pos);
|
---|
| 212 | distvec.sub(p.pos);
|
---|
| 213 | mindistvec = distvec.clone();
|
---|
| 214 | }
|
---|
| 215 |
|
---|
| 216 | mindistvec.normalize();
|
---|
| 217 | mindistvec.scale( -0.1);
|
---|
| 218 | cr.localDrive = mindistvec;
|
---|
| 219 | }
|
---|
| 220 | else
|
---|
| 221 | {
|
---|
| 222 | cr.localDrive = (0.1, 0, 0);
|
---|
| 223 | }
|
---|
| 224 |
|
---|
| 225 | var properAge = cr.user2["Va"] >= cr.user1["vamin"];
|
---|
| 226 | var properSize = cr.user1["amin"] <= cr.lifespan;
|
---|
| 227 |
|
---|
| 228 | //if creature has proper age and cytoplasm amount
|
---|
| 229 | if ( properAge && properSize )
|
---|
| 230 | {
|
---|
| 231 | //reproduce with probability repro_prob
|
---|
| 232 | if (Math.rnd01 <= ExpParams.repro_prob)
|
---|
| 233 | {
|
---|
| 234 | readyToRepro(cr);
|
---|
| 235 | }
|
---|
| 236 | }
|
---|
| 237 | if ( properAge && properSize && (cr.signals.receive("repro") > 0))
|
---|
| 238 | {
|
---|
| 239 | readyToRepro(cr);
|
---|
| 240 | }
|
---|
| 241 | }
|
---|
| 242 |
|
---|
| 243 | function onCreaturesDied(cr)
|
---|
| 244 | {
|
---|
| 245 | //fossilization
|
---|
| 246 | var geno = GenePools[0].add(cr.genotype);
|
---|
| 247 | geno.user1 = cr.user1;
|
---|
| 248 | geno.user2 = cr.user2;
|
---|
| 249 | Simulator.print("\"" + cr.name + "\" died...");
|
---|
| 250 | ExpState.totaltestedcr++;
|
---|
| 251 | }
|
---|
| 252 |
|
---|
| 253 | // -------------------------------- creature end --------------------------------
|
---|
| 254 |
|
---|
| 255 | // -------------------------------- food begin --------------------------------
|
---|
| 256 |
|
---|
| 257 | function onFoodStep(cr)
|
---|
| 258 | {
|
---|
| 259 | cr.moveAbs(cr.pos_x % ExpParams.wsize, cr.pos_y % ExpParams.wsize, 0.5);
|
---|
| 260 | }
|
---|
| 261 |
|
---|
| 262 | function addfood()
|
---|
| 263 | {
|
---|
| 264 | var cr = Populations[1].add(ExpParams.foodgen);
|
---|
| 265 |
|
---|
| 266 | cr.name = "Food";
|
---|
| 267 | cr.idleen = 0;
|
---|
| 268 | cr.energ0 = ExpParams.feede0;
|
---|
| 269 | cr.energy = cr.energ0;
|
---|
| 270 | cr.signals.add("food");
|
---|
| 271 |
|
---|
| 272 | cr.signals.get(0).value = cr.getMechPart(0);
|
---|
| 273 |
|
---|
| 274 | var retry = 50; //try 50 times
|
---|
| 275 | while (retry--)
|
---|
| 276 | {
|
---|
| 277 | placeCreatureRandomly(cr, 0, 0);
|
---|
| 278 | cr.signals.get(0).value = cr.getMechPart(0);
|
---|
| 279 | if (!cr.boundingBoxCollisions(0))
|
---|
| 280 | return cr;
|
---|
| 281 | }
|
---|
| 282 |
|
---|
| 283 | return cr;
|
---|
| 284 | }
|
---|
| 285 |
|
---|
| 286 | function onFoodCollision()
|
---|
| 287 | {
|
---|
| 288 | if (Collision.Creature2.user2 != null)
|
---|
| 289 | {
|
---|
| 290 | var e = Collision.Part2.ing * ExpParams.feedtrans;
|
---|
| 291 | //Simulator.print("transferring "+e+" from "+Collision.Creature1.name+" to "+Collision.Creature2.name+" ("+Collision.Creature2.energy+")");
|
---|
| 292 | Collision.Creature1.energy_m = Collision.Creature1.energy_m + e;
|
---|
| 293 | Collision.Creature2.energy_p = Collision.Creature2.energy_p + e;
|
---|
| 294 | var ener = float(Collision.Creature2.user2.get("Va"));
|
---|
| 295 | var sum = float(float(ener) + float(e));
|
---|
| 296 | Collision.Creature2.user2.set("Va", float(sum));
|
---|
| 297 | }
|
---|
| 298 | }
|
---|
| 299 |
|
---|
| 300 | // -------------------------------- food end --------------------------------
|
---|
| 301 |
|
---|
| 302 | // -------------------------------- step begin --------------------------------
|
---|
| 303 |
|
---|
| 304 | function reproduce(repro_list, number)
|
---|
| 305 | {
|
---|
| 306 | for (var i = 0; i < repro_list.size; i++)
|
---|
| 307 | {
|
---|
| 308 | var parent = Populations[0].get(repro_list[i]);
|
---|
| 309 |
|
---|
| 310 | var energ = parent.user2["Va"] / number;
|
---|
| 311 | for (var j = 0; j < number; j++)
|
---|
| 312 | {
|
---|
| 313 | var cr = Populations[0].add(ExpParams.gend);
|
---|
| 314 | cr.energ0 = energ;
|
---|
| 315 | cr.energy = cr.energ0;
|
---|
| 316 | if (parent.user2["gen"] == 0)
|
---|
| 317 | {
|
---|
| 318 | cr.user1 = {"vamin" : ExpParams.v_min_d, "amin": ExpParams.age_min_d};
|
---|
| 319 | }
|
---|
| 320 | else
|
---|
| 321 | {
|
---|
| 322 | cr.user1 = {"vamin" : ExpParams.v_min_h, "amin": ExpParams.age_min_h};
|
---|
| 323 | }
|
---|
| 324 | cr.user2 = { "Va" : cr.energ0, "gen" : 1 - parent.user2["gen"] };
|
---|
| 325 | placeCreatureRandomly(cr, 0, 0);
|
---|
| 326 | }
|
---|
| 327 | }
|
---|
| 328 | for (var j = 0; j < repro_list.size; j++)
|
---|
| 329 | {
|
---|
| 330 | Populations[0].kill(repro_list[j]);
|
---|
| 331 | }
|
---|
| 332 | }
|
---|
| 333 |
|
---|
| 334 | function log(tolog, fname)
|
---|
| 335 | {
|
---|
| 336 | var f = File.appendDirect(fname, "description");
|
---|
| 337 | f.writeString("" + Simulator.stepNumber);
|
---|
| 338 | for (var i = 0; i < tolog.size; i++)
|
---|
| 339 | {
|
---|
| 340 | f.writeString(";" + tolog[i]);
|
---|
| 341 | }
|
---|
| 342 | f.writeString("\n");
|
---|
| 343 | f.close();
|
---|
| 344 | }
|
---|
| 345 |
|
---|
| 346 |
|
---|
| 347 |
|
---|
| 348 | function onStep()
|
---|
| 349 | {
|
---|
| 350 | var haploids = 0;
|
---|
| 351 | var diploids = 0;
|
---|
| 352 | var e_inc_h = 0.0;
|
---|
| 353 | var e_inc_d = 0.0;
|
---|
| 354 | var e_nut = 0.0;
|
---|
| 355 |
|
---|
| 356 | for (var i = 0; i < Populations[0].size; i++)
|
---|
| 357 | {
|
---|
| 358 | var cr = Populations[0].get(i);
|
---|
| 359 | if (cr.user2["gen"] == 0)
|
---|
| 360 | {
|
---|
| 361 | haploids += 1;
|
---|
| 362 | e_inc_h += cr.energy;
|
---|
| 363 | }
|
---|
| 364 | else
|
---|
| 365 | {
|
---|
| 366 | diploids += 1;
|
---|
| 367 | e_inc_d += cr.energy;
|
---|
| 368 | }
|
---|
| 369 | }
|
---|
| 370 |
|
---|
| 371 | for (var i = 0; i < Populations[1].size; i++)
|
---|
| 372 | {
|
---|
| 373 | var cr = Populations[1].get(i);
|
---|
| 374 | e_nut += cr.energy;
|
---|
| 375 | }
|
---|
| 376 |
|
---|
| 377 | if (haploids < 2 && diploids == 0)
|
---|
| 378 | {
|
---|
| 379 | Simulator.print("no more creatures, stopped.");
|
---|
| 380 | Simulator.stop();
|
---|
| 381 | }
|
---|
| 382 |
|
---|
| 383 | var l1 = Vector.new();
|
---|
| 384 | l1 = [haploids, diploids, Populations[1].size];
|
---|
| 385 | var l2 = Vector.new();
|
---|
| 386 | l2 = [e_inc_h, e_inc_d, e_nut];
|
---|
| 387 |
|
---|
| 388 | log(l1, "log.txt");
|
---|
| 389 | log(l2, "log2.txt");
|
---|
| 390 | //food growth ---------------------------------------------
|
---|
| 391 | foodenergywaiting = foodenergywaiting + ExpParams.feedrate;
|
---|
| 392 | if (foodenergywaiting > ExpParams.feede0)
|
---|
| 393 | {
|
---|
| 394 | for (var i = 0; i < ExpParams.foodPop; i++)
|
---|
| 395 | {
|
---|
| 396 | addfood();
|
---|
| 397 | }
|
---|
| 398 |
|
---|
| 399 | foodenergywaiting = 0.0;
|
---|
| 400 | Simulator.checkpoint();
|
---|
| 401 | }
|
---|
| 402 |
|
---|
| 403 | //reproduction --------------------------------------------
|
---|
| 404 | reprocounter += 1;
|
---|
| 405 | if (reprocounter > ExpParams.repro_time)
|
---|
| 406 | {
|
---|
| 407 | reprocounter = 0;
|
---|
| 408 | var to_repro_h = Vector.new();
|
---|
| 409 | var to_repro_d = Vector.new();
|
---|
| 410 | for (var i = 0; i < Populations[0].size; i++)
|
---|
| 411 | {
|
---|
| 412 | var cr = Populations[0].get(i);
|
---|
| 413 | if (cr.signals.size > 0)
|
---|
| 414 | {
|
---|
| 415 | if (cr.user2["gen"] == 0)
|
---|
| 416 | {
|
---|
| 417 | to_repro_h.add(i);
|
---|
| 418 | }
|
---|
| 419 | else
|
---|
| 420 | {
|
---|
| 421 | to_repro_d.add(i);
|
---|
| 422 | }
|
---|
| 423 | }
|
---|
| 424 | }
|
---|
| 425 | if (to_repro_h.size > 0)
|
---|
| 426 | {
|
---|
| 427 | reproduce(to_repro_h, ExpParams.ofnumh);
|
---|
| 428 | }
|
---|
| 429 | if (to_repro_d.size > 1)
|
---|
| 430 | {
|
---|
| 431 | reproduce(to_repro_d, ExpParams.ofnumd);
|
---|
| 432 | }
|
---|
| 433 | }
|
---|
| 434 |
|
---|
| 435 | //check for death -----------------------------------------------
|
---|
| 436 | if (Populations[0].size == 0)
|
---|
| 437 | {
|
---|
| 438 | if (ExpParams.autorestart)
|
---|
| 439 | {
|
---|
| 440 | Simulator.print("no more creatures, restarting...");
|
---|
| 441 | onExpInit();
|
---|
| 442 | }
|
---|
| 443 | else
|
---|
| 444 | {
|
---|
| 445 | Simulator.print("no more creatures, stopped.");
|
---|
| 446 | Simulator.stop();
|
---|
| 447 | }
|
---|
| 448 | }
|
---|
| 449 | }
|
---|
| 450 |
|
---|
| 451 | // -------------------------------- step end --------------------------------
|
---|
| 452 |
|
---|
| 453 |
|
---|
| 454 | @include "standard_events.inc"
|
---|
| 455 |
|
---|
| 456 | ~
|
---|
| 457 |
|
---|
| 458 | prop:
|
---|
| 459 | id:wsize
|
---|
| 460 | name:world size
|
---|
| 461 | type:d 10 1000 20
|
---|
| 462 |
|
---|
| 463 | prop:
|
---|
| 464 | id:foodPop
|
---|
| 465 | name:food size
|
---|
| 466 | type:d 1 1000 10
|
---|
| 467 |
|
---|
| 468 | prop:
|
---|
| 469 | id:age_min
|
---|
| 470 | name:minimal age for reproduction
|
---|
| 471 | type:d 100 10000 200
|
---|
| 472 |
|
---|
| 473 | prop:
|
---|
| 474 | id:age_min_h
|
---|
| 475 | name:Min reproduction age of haploid forams
|
---|
| 476 | type:d 100 10000 300
|
---|
| 477 | group:Foraminifera
|
---|
| 478 |
|
---|
| 479 | prop:
|
---|
| 480 | id:age_min_d
|
---|
| 481 | name:Min reproduction age of diploid forams
|
---|
| 482 | type:d 100 10000 200
|
---|
| 483 | group:Foraminifera
|
---|
| 484 |
|
---|
| 485 | prop:
|
---|
| 486 | id:v_min_h
|
---|
| 487 | name:Min reproduction energy of haploid forams
|
---|
| 488 | type:d 100 10000 300
|
---|
| 489 | group:Foraminifera
|
---|
| 490 |
|
---|
| 491 | prop:
|
---|
| 492 | id:v_min_d
|
---|
| 493 | name:Min reproduction energy of diploid forams
|
---|
| 494 | type:d 100 10000 150
|
---|
| 495 | group:Foraminifera
|
---|
| 496 |
|
---|
| 497 | prop:
|
---|
| 498 | id:repro_thr
|
---|
| 499 | name:treshold for reproduction
|
---|
| 500 | type:d 1 1000 1
|
---|
| 501 |
|
---|
| 502 | prop:
|
---|
| 503 | id:food_range
|
---|
| 504 | name:range of food smell
|
---|
| 505 | type:d 0 10000 10000
|
---|
| 506 |
|
---|
| 507 | prop:
|
---|
| 508 | id:repro_time
|
---|
| 509 | name:time before reproduction
|
---|
| 510 | type:d 0 1000
|
---|
| 511 |
|
---|
| 512 | prop:
|
---|
| 513 | id:psize
|
---|
| 514 | name:initial population size
|
---|
| 515 | type:d 1 1000 100
|
---|
| 516 |
|
---|
| 517 | prop:
|
---|
| 518 | id:ofnumh
|
---|
| 519 | name:Number of offspring from haploid forams
|
---|
| 520 | type:d
|
---|
| 521 | group:Foraminifera
|
---|
| 522 |
|
---|
| 523 | prop:
|
---|
| 524 | id:ofnumd
|
---|
| 525 | name:Number of offspring from diploid forams
|
---|
| 526 | type:d
|
---|
| 527 | group:Foraminifera
|
---|
| 528 |
|
---|
| 529 | prop:
|
---|
| 530 | id:repro_prob
|
---|
| 531 | name:probability of reproduction
|
---|
| 532 | type:f 0 1 0.9
|
---|
| 533 |
|
---|
| 534 | prop:
|
---|
| 535 | id:crossprob
|
---|
| 536 | name:crossover probability
|
---|
| 537 | type:f 0 1
|
---|
| 538 |
|
---|
| 539 | prop:
|
---|
| 540 | id:genh
|
---|
| 541 | name:Initial genotype of haploid forams
|
---|
| 542 | type:s 1
|
---|
| 543 | group:Foraminifera
|
---|
| 544 |
|
---|
| 545 | prop:
|
---|
| 546 | id:gend
|
---|
| 547 | name:Initial genotype of diploid forams
|
---|
| 548 | type:s 1
|
---|
| 549 | group:Foraminifera
|
---|
| 550 |
|
---|
| 551 | prop:
|
---|
| 552 | id:creath
|
---|
| 553 | name:Creation height
|
---|
| 554 | type:f -1 50
|
---|
| 555 | help:~
|
---|
| 556 | Vertical position (above the surface) where new creatures are revived.
|
---|
| 557 | Negative values are only used in the water area:
|
---|
| 558 | 0 = at the surface
|
---|
| 559 | -0.5 = half depth
|
---|
| 560 | -1 = just above the bottom~
|
---|
| 561 |
|
---|
| 562 | prop:
|
---|
| 563 | id:p_mut
|
---|
| 564 | name:Mutations
|
---|
| 565 | type:f 0 100
|
---|
| 566 |
|
---|
| 567 | prop:
|
---|
| 568 | id:e_meta
|
---|
| 569 | name:Idle metabolism
|
---|
| 570 | type:f 0 1
|
---|
| 571 | group:Energy
|
---|
| 572 | help:Each stick consumes this amount of energy in one time step
|
---|
| 573 |
|
---|
| 574 | prop:
|
---|
| 575 | id:feedrate
|
---|
| 576 | name:Feeding rate
|
---|
| 577 | type:f 0 100
|
---|
| 578 | group:Energy
|
---|
| 579 | help:How fast energy is created in the world
|
---|
| 580 |
|
---|
| 581 | prop:
|
---|
| 582 | id:feede0
|
---|
| 583 | name:Food's energy
|
---|
| 584 | group:Energy
|
---|
| 585 | type:f 0 1000
|
---|
| 586 |
|
---|
| 587 | prop:
|
---|
| 588 | id:feedtrans
|
---|
| 589 | name:Ingestion multiplier
|
---|
| 590 | group:Energy
|
---|
| 591 | type:f 0 100
|
---|
| 592 |
|
---|
| 593 | prop:
|
---|
| 594 | id:foodgen
|
---|
| 595 | name:Food's genotype
|
---|
| 596 | group:Energy
|
---|
| 597 | type:s 1
|
---|
| 598 |
|
---|
| 599 | prop:
|
---|
| 600 | id:autorestart
|
---|
| 601 | name:Restart after extinction
|
---|
| 602 | group:
|
---|
| 603 | help:Restart automatically this experiment after the last creature has died?
|
---|
| 604 | type:d 0 1
|
---|
| 605 |
|
---|
| 606 | state:
|
---|
| 607 | id:notes
|
---|
| 608 | name:Notes
|
---|
| 609 | type:s 1
|
---|
| 610 | help:~
|
---|
| 611 | You can write anything here
|
---|
| 612 | (it will be saved to the experiment file)~
|
---|
| 613 |
|
---|
| 614 | state:
|
---|
| 615 | id:totaltestedcr
|
---|
| 616 | name:Evaluated creatures
|
---|
| 617 | help:Total number of the creatures evaluated in the experiment
|
---|
| 618 | type:d
|
---|
| 619 | flags:16
|
---|
| 620 |
|
---|
| 621 | state:
|
---|
| 622 | id:food
|
---|
| 623 | name:Food locations
|
---|
| 624 | help:vector of vectors [x,y,energy]
|
---|
| 625 | type:x
|
---|
| 626 | flags:32
|
---|
| 627 |
|
---|