(self, target_capacity)
return self.fulfilled_capacity
When current capacity is less than target_capacity, this function would increase capacity to meet
        target_capacity

        :returns: the current capacity after filling up
When current capacity is less than target_capacity, this function would increase capacity to meet
        target_capacity
When current capacity is less than target_capacity this function would increase capacity to meet target_capacity
def _increase_capacity_to_target(self, target_capacity):
        """ When current capacity is less than target_capacity, this function would increase capacity to meet
        target_capacity

        :returns: the current capacity after filling up
        """
        new_market_counts = self._get_new_market_counts(target_capacity)
        added_instances, __ = self.modify_size(new_market_counts)
        for instance in added_instances:
            instance.bid_price = self._instance_types[instance.market].bid_price
            self.simulator.add_instance(instance)
        return self.fulfilled_capacity
def _increase_capacity_to_target ( self , target_capacity ) : new_market_counts = self . _get_new_market_counts ( target_capacity ) added_instances , __ = self . modify_size ( new_market_counts ) for instance in added_instances : instance . bid_price = self . _instance_types [ instance . market ] . bid_price self . simulator . add_instance ( instance ) return self . fulfilled_capacity