Create Steady-State Problems#
Given a SystemModel, you can use the PredictionTaskSteadyStateGenerator in order to create a table containing the steady-states and the parameters of a problem.
We provide a simple example here by using the problem of salt and brine tanks.
First, import the prediction task:
>>> from simba_ml.example_problems import salt_and_brine_tanks
And the steady-state generator:
>>> from simba_ml.simulation import generators
Then you can create the generator and generate a problem table.
>>> generator = generators.SteadyStateGenerator(salt_and_brine_tanks.sm)
>>> generator.generate_signals()
x1 x2 timestamps arg_r arg_V x1_start_value x2_start_value
99999 749.000000 749.000000 100000 0.230684 100 999 499
99999 748.998790 749.001210 100000 0.230684 100 999 499
99999 749.000000 749.000000 100000 0.230684 100 999 499
99999 748.999811 749.000189 100000 0.230684 100 999 499
99999 749.000000 749.000000 100000 0.230684 100 999 499
... ... ... ... ... ... ... ...
99999 749.000000 749.000000 100000 0.230684 100 999 499
99999 749.000000 749.000000 100000 0.230684 100 999 499
99999 749.000000 749.000000 100000 0.230684 100 999 499
99999 748.999771 749.000229 100000 0.230684 100 999 499
99999 749.000000 749.000000 100000 0.230684 100 999 499
Upcoming features:#
Deal with problems, that do not have a steady-state