twin_simulate_batch_mode#
- TwinRuntime.twin_simulate_batch_mode(input_df, output_column_names, step_size=0, interpolate=0, time_as_index=False)#
Simulates the TWIN model in batch mode using given input dataframe and returns the results in an output dataframe using output column names.
- Parameters:
- input_df
pandas.DataFrame
Pandas dataframe storing all the TWIN inputs to be evaluated of the batch simulation.
- output_column_names
list
List of string describing the different output columns name (including ‘Time’ as first column).
- step_size
float
(optional
) Step size. If 0, time points in the input table will be used as the output points; otherwise it will produce output at an equal spacing of h. Default is 0.
- interpolate
int
(optional
) Flag to interpolate real continuous variables if step size > 0.
- time_as_indexbool (
optional
) Flag to reset the input_df index if set to True. Default is False.
- input_df
- Returns:
pandas.DataFrame
Pandas dataframe storing all the TWIN outputs evaluated over the batch simulation.