Filter löschen
Filter löschen

Simulink restore operating point

1 Ansicht (letzte 30 Tage)
Martin Seyr
Martin Seyr am 9 Okt. 2020
Hello,
I need help restoring a simulation state.
First of all, i would like to reset the time if i restore a certain operating point. For unclear reasons, this does not seem to be as straightforward as it should reasonably be.
I am running a genetic optimisation algorithm, that requires multiple executions of a simulation, the final system state of the best solution of each generation should be preserved for the next generation, but if i can't reset the time, it will grow indefinitely.
Secondly, i would like to comment a subsystem block containing some of the logged states, but using a model operating point does not permit to do that.
Thirdly, i don't understand why it is not possible to access and modify some of the states logged in the operating point. Specifically, i can't find any data that corresponds to the internal states of delay blocks, while it must be contained in the object, as the delay state is in fact restored.
>> Simout.FinalState
ans =
Simulink.op.ModelOperatingPoint
Operating point of the model 'mdl_WalkerNeuroMusculoSkeletal' at the time of simulation stop.
Properties
loggedStates
description
startTime (Read-only)
snapshotTime (Read-only)
Methods
get
set
The listing of the loggedStates does not contain the delay block state, and it can't be found anywhere else either.
Mathwork's documentation on the matter is sparse (to be polite) and i am really at a loss how this feature should be of any practical use with the limitations that i find.
It is really not hard to log the output of integrators and memory blocks, i don't need any built-in feature to do that. The only thing that is difficult to achieve (i.e. restoring the state of a delay block) is somehow obscured and can only be done with severe disadvantages.
Please help!
Thanks
Martin

Antworten (0)

Kategorien

Mehr zu Manual Performance Optimization finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by