PGA/route.py
def deepcopy(self):
        """
        return a deep copy of itself, copy all except g_map
        :return: copy route
        """
        new_route = Route(sequence=self.sequence.copy(), g_map=self.g_map, punish=self.punish, refresh_im=False)
        new_route.start_time = self.start_time
        new_route.cost = self.cost
        new_route.window_punish, new_route.capacity_punish, new_route.weight_punish, new_route.volume_punish = \
            self.window_punish, self.capacity_punish, self.weight_punish, self.volume_punish
        new_route.capacity_remain = self.capacity_remain
        new_route.served_w, new_route.served_v = self.served_w, self.served_v
        new_route.extra_t = self.extra_t
        return new_route

        return a deep copy of itself, copy all except g_map
        :return: copy route
        
return a deep copy of itself, copy all except g_map
return a deep copy of itself copy all except g_map
def deepcopy(self):
        new_route = Route(sequence=self.sequence.copy(), g_map=self.g_map, punish=self.punish, refresh_im=False)
        new_route.start_time = self.start_time
        new_route.cost = self.cost
        new_route.window_punish, new_route.capacity_punish, new_route.weight_punish, new_route.volume_punish = \
            self.window_punish, self.capacity_punish, self.weight_punish, self.volume_punish
        new_route.capacity_remain = self.capacity_remain
        new_route.served_w, new_route.served_v = self.served_w, self.served_v
        new_route.extra_t = self.extra_t
        return new_route
def deepcopy ( self ) : new_route = Route ( sequence = self . sequence . copy ( ) , g_map = self . g_map , punish = self . punish , refresh_im = False ) new_route . start_time = self . start_time new_route . cost = self . cost new_route . window_punish , new_route . capacity_punish , new_route . weight_punish , new_route . volume_punish = self . window_punish , self . capacity_punish , self . weight_punish , self . volume_punish new_route . capacity_remain = self . capacity_remain new_route . served_w , new_route . served_v = self . served_w , self . served_v new_route . extra_t = self . extra_t return new_route
return a deep copy of itself, copy all except g_map
return a deep copy of itself copy all except g_map
"""
        return a deep copy of itself, copy all except g_map
        :return: copy route
        """
None
self