rameau.core.Model.run_optimization
- Model.run_optimization(maxit=None, starting_date=None, ending_date=None, method=None, transformation=None, river_objective_function=None, selected_watersheds=None, verbose=None)[source]
Start an optimisation run.
- Parameters:
maxit (
int, optional) – Number of iterations for the optimisation algorithm.starting_date (
datetime.datetime, optional) – The date and time defining the start of the period to consider in the input data for the optimisation run.ending_date (
datetime.datetime, optional) – The date and time defining the end of the period to consider in the input data for the optimisation run.method (
str, optional) – The approach to use when several gauged watersheds need to be considered in the optimisation run. SeeOptimizationSettings.methodfor details.transformation (
str, optional) – The function to apply to transform the observed and predicted river flow (Q) before computing the objective function. SeeOptimizationSettings.transformationfor details.river_objective_function (
str, optional) – The objective function to use to compare the observed and predicted river flow. SeeOptimizationSettings.objective_functionfor details.selected_watersheds (
listorint, optional) – The indices of the watersheds to consider in the optimisation run. The indices relate to those in the sequence of watersheds specified in theTree. If not provided, all gauged watersheds are considered.verbose (
bool, optional) – Whether to display information for each step of the optimisation process. If not provided, no information is displayed.
- Returns:
OptiSimulation