Run a sequence to initialize the population sector (loop with k=0). Parameters ---------- alone : boolean, optional if True, run the sector alone with exogenous inputs. The default is False.
(self, alone=False)
| 474 | self.loopk_exogenous(0) |
| 475 | |
| 476 | def loop0_population(self, alone=False): |
| 477 | """ |
| 478 | Run a sequence to initialize the population sector (loop with k=0). |
| 479 | |
| 480 | Parameters |
| 481 | ---------- |
| 482 | alone : boolean, optional |
| 483 | if True, run the sector alone with exogenous inputs. The default |
| 484 | is False. |
| 485 | |
| 486 | """ |
| 487 | |
| 488 | # Set initial conditions |
| 489 | self.p1[0] = self.p1i |
| 490 | self.p2[0] = self.p2i |
| 491 | self.p3[0] = self.p3i |
| 492 | self.p4[0] = self.p4i |
| 493 | self.frsn[0] = 0.82 |
| 494 | self.pop[0] = self.p1[0] + self.p2[0] + self.p3[0] + self.p4[0] |
| 495 | |
| 496 | if alone: |
| 497 | self.loop0_exogenous() |
| 498 | # Death rate subsector |
| 499 | # connect World3 sectors to Population |
| 500 | # pop from initialisation |
| 501 | self._update_fpu(0) |
| 502 | self._update_lmp(0) |
| 503 | self._update_lmf(0) |
| 504 | self._update_cmi(0) |
| 505 | self._update_hsapc(0) |
| 506 | # inside Population sector |
| 507 | self._update_ehspc(0) |
| 508 | self._update_lmhs(0) |
| 509 | self._update_lmc(0) |
| 510 | self._update_le(0) |
| 511 | self._update_m1(0) |
| 512 | self._update_m2(0) |
| 513 | self._update_m3(0) |
| 514 | self._update_m4(0) |
| 515 | self._update_mat1(0, 0) |
| 516 | self._update_mat2(0, 0) |
| 517 | self._update_mat3(0, 0) |
| 518 | self._update_d1(0, 0) |
| 519 | self._update_d2(0, 0) |
| 520 | self._update_d3(0, 0) |
| 521 | self._update_d4(0, 0) |
| 522 | self._update_d(0, 0) # replace (0, -1) by (0, 0) at init |
| 523 | self._update_cdr(0) |
| 524 | # Birth rate subsector |
| 525 | # connect World3 sectors to Population |
| 526 | # industrial Output > Population |
| 527 | self._update_aiopc(0) |
| 528 | self._update_diopc(0) |
| 529 | self._update_fie(0) |
| 530 | # inside Population sector |
| 531 | self._update_sfsn(0) |
| 532 | self._update_frsn(0) |
| 533 | self._update_dcfs(0) |
no test coverage detected