(self, ids, batch_size=-1)
return ids
Terminate specified instances

        :param ids: desired ids of instances to be terminated
        :returns: a list of the terminated instance ids
Terminate specified instances
Terminate specified instances
def terminate_instances_by_id(self, ids, batch_size=-1):
        """ Terminate specified instances

        :param ids: desired ids of instances to be terminated
        :returns: a list of the terminated instance ids
        """
        for id in ids:
            self.simulator.remove_instance(self.instances[id])
        super().terminate_instances_by_id(ids, batch_size)
        # restore capacity if current capacity is less than target capacity
        if self.fulfilled_capacity < self.target_capacity:
            self._increase_capacity_to_target(self.target_capacity)
        return ids
def terminate_instances_by_id ( self , ids , batch_size = - 1 ) : for id in ids : self . simulator . remove_instance ( self . instances [ id ] ) super ( ) . terminate_instances_by_id ( ids , batch_size ) # restore capacity if current capacity is less than target capacity if self . fulfilled_capacity < self . target_capacity : self . _increase_capacity_to_target ( self . target_capacity ) return ids