epidemioptim/environments/models/heffernan_ode_model_16.py
def politic_decision_module(self):
        """
        Change contact matrices and k values regarding the number of cases (I4 + half of I3)
        4 scenarios:
            - no lockdown, holiday
            - no holiday, lockdown
            - holiday, lockdown
            - no holiday, no lockdown
        """
        # A CHAQUE DATE
        total_I4 = 0
        for f in range(16):
            total_I4 += (sum([self.current_state[self._age_groups[f]]['I3']])*0.5 + sum([self.current_state[self._age_groups[f]]['I4']]))
        if total_I4 > 37000:
            if self.t > 531:
                if self.t < 609:
                   self.newstep = 19 
            self.k = 0.3
            self.newstep = 4
            self.nbrConf += 1
            #print(self.t, self.nbrConf)    # print the number of lockdowns
        elif total_I4 < 37000:
            if self.t > 531:
                if self.t < 609:
                    self.k = 0.6
                    self.newstep = 27
                elif self.t > 609:
                    self.k = 0.55
                    self.newstep = 22
            else:
                self.k = 0.6
                self.newstep = 22

        Change contact matrices and k values regarding the number of cases (I4 + half of I3)
        4 scenarios:
            - no lockdown, holiday
            - no holiday, lockdown
            - holiday, lockdown
            - no holiday, no lockdown
        
Change contact matrices and k values regarding the number of cases (I4 + half of I3)
4 scenarios:
no lockdown, holiday
no holiday, lockdown
holiday, lockdown
no holiday, no lockdown
Change contact matrices and k values regarding the number of cases ( I4 + half of I3 ) 4 scenarios : no lockdown holiday no holiday lockdown holiday lockdown no holiday no lockdown
def politic_decision_module(self):
        total_I4 = 0
        for f in range(16):
            total_I4 += (sum([self.current_state[self._age_groups[f]]['I3']])*0.5 + sum([self.current_state[self._age_groups[f]]['I4']]))
        if total_I4 > 37000:
            if self.t > 531:
                if self.t < 609:
                   self.newstep = 19 
            self.k = 0.3
            self.newstep = 4
            self.nbrConf += 1
        elif total_I4 < 37000:
            if self.t > 531:
                if self.t < 609:
                    self.k = 0.6
                    self.newstep = 27
                elif self.t > 609:
                    self.k = 0.55
                    self.newstep = 22
            else:
                self.k = 0.6
                self.newstep = 22
def politic_decision_module ( self ) : total_I4 = 0 for f in range ( 16 ) : total_I4 += ( sum ( [ self . current_state [ self . _age_groups [ f ] ] [ 'I3' ] ] ) * 0.5 + sum ( [ self . current_state [ self . _age_groups [ f ] ] [ 'I4' ] ] ) ) if total_I4 > 37000 : if self . t > 531 : if self . t < 609 : self . newstep = 19 self . k = 0.3 self . newstep = 4 self . nbrConf += 1 elif total_I4 < 37000 : if self . t > 531 : if self . t < 609 : self . k = 0.6 self . newstep = 27 elif self . t > 609 : self . k = 0.55 self . newstep = 22 else : self . k = 0.6 self . newstep = 22
Change contact matrices and k values regarding the number of cases (I4 + half of I3)
4 scenarios:
 no lockdown, holiday
 no holiday, lockdown
 holiday, lockdown
 no holiday, no lockdown
Change contact matrices and k values regarding the number of cases ( I4 + half of I3 ) 4 scenarios : no lockdown holiday no holiday lockdown holiday lockdown no holiday no lockdown
"""
        Change contact matrices and k values regarding the number of cases (I4 + half of I3)
        4 scenarios:
            - no lockdown, holiday
            - no holiday, lockdown
            - holiday, lockdown
            - no holiday, no lockdown
        """ # A CHAQUE DATE #print(self.t, self.nbrConf)    # print the number of lockdowns
self