How to get the parameter value named "Seed" on Optim controller?
I set Other=OutVar="Optim1.Seed" on main simulation controller (i.e. SP), but no result in the dataset.
Do you have any ways to do this?
Cannot simulation controllers output its parameters to dataset?
Regards,
Hiroko
I set Other=OutVar="Optim1.Seed" on main simulation controller (i.e. SP), but no result in the dataset.
Do you have any ways to do this?
Cannot simulation controllers output its parameters to dataset?
Regards,
Hiroko
There are nifty and trickier ways, but here is my boring and "works every time" way. :P
Insert a "VAR" block and set a variable such as:
seed_opt=1234
Then, in the optimization controller, set the "seed=seed_opt"
Finally, insert a "MeasEqn" block and set "OutSeed=seed_opt".
Run the sim, and you will then find a lonely old OutSeed in your dataset (a single number too, not a large array of the same number.) 8)
Other approaches (instead of the MeasEqn approach) would be to use the OutVar as you mentioned, or in every simulation controller (e.g. SP/AC/DC/HB) there is a tab for data output. This approach can get complex though if you have nested or multiple simulation controllers. That's why I sometimes prefer the MeasEqn approach.
Hope this helps! ;)