def optimize(self, timeSeries, forecastingMethods=None, startingPercentage=0.0, endPercentage=100.0):
        # no forecasting methods provided
        if forecastingMethods is None or len(forecastingMethods) == 0:
            raise ValueError("forecastingMethods cannot be empty.")
Runs the optimization on the given TimeSeries.
dataset/ETHPy150Open T-002/pycast/pycast/optimization/baseoptimizationmethod.py/BaseOptimizationMethod.optimize