extern tree generation and tree import tree generation inside of the model based on the selected approach meta data of scenario tree branch definitions for nBranch branches number of branches in the scenario tree number of dimensions in the input vector from the optimizer for one controlled variable over all branches, nStepTotal is less equal than nBranch*nStepBranch number of simulation time steps in a branch index (starting at 0) to the input vector from the optimizer, number of indices should be equal to the number of control time steps nOutput, highest index must be nInput-1 probability of branch in the range between 0 and 1, the sum over all branches should be equal to 1 index (starting at 0) to ensemble member in disturbance ensemble, if not supplied we expect the number of ensembles equal to the number of branches simple tree with a single trajectory at the beginning and a branching point to N number of branches binary scenario tree with equidistant branching points number of branches after the branching point position of the branching point in time steps from the root of the ensemble number of steps with smoothing for discontinuities at branching points number of final branches in the scenario tree, must be 1, 2, 4, 8, 16, etc. number of steps with smoothing for discontinuities at branching points pairs with references to the time series which get converted by the generated scenario tree input time series including the ensemble data output time series including the scenario tree reference time series for the generation of the scenario tree number of branches in the scenario tree indices of optimization variables