Jump to content
Simio Forum

Welcome to the Simio Forum

Welcome to the Simio Forum! Experience the full experience of the forum by becoming a Simio Insider! You must be an Insider to post on any forum!

Click_Here_button.png

Sign in to follow this  
marquisd

Initializing a State Vector

Recommended Posts

I have a state vector where all but one indexed value must be zero. This oddball cannot be zero. I want to initialize it in the Definitions window. Can someone explain how to do this in a general sense? I.e., in general, what if I want to initialize every index with a unique value?


Thanks

Share this post


Link to post
Share on other sites

Dave,


From the help file it says:

In order to initialize a State Array, the user should bind the array to a Data Table. When bound, the array size will be initialized from the number of rows and numeric columns in the table, and the array data will be initialized from the data in the table. To bind an array to a table, set the Dimension Type property of the state to 'Matrix From Table' and select the appropriate table from the drop down of the Table Name property.

 

Attached is a sample model that shows that.


Hope that helps.

Init Array State Model.spfx

Share this post


Link to post
Share on other sites
Sign in to follow this  

×
×
  • Create New...