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_dfpandas.DataFrame

Pandas dataframe storing all the TWIN inputs to be evaluated of the batch simulation.

output_column_nameslist

List of string describing the different output columns name (including ‘Time’ as first column).

step_sizefloat (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.

interpolateint (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.

Returns:
pandas.DataFrame

Pandas dataframe storing all the TWIN outputs evaluated over the batch simulation.