From: Luis W. <lw...@en...> - 2010-02-14 15:18:59
|
<html> <head> <title>Repast Simphony : 2-03 Freezedrying and Loading Data</title> <link rel="stylesheet" href="styles/site.css" type="text/css" /> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <table class="pagecontent" border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#ffffff"> <tr> <td valign="top" class="pagebody"> <div class="pageheader"> <span class="pagetitle"> Repast Simphony : 2-03 Freezedrying and Loading Data </span> </div> <div class="pagesubheading"> This page last changed on Feb 14, 2010<font color="#0050B2"> lwatts </font>. </div> <h2><a name="2-03FreezedryingandLoadingData-FreezedryingtheModelState%26nbsp%3B"></a>Freezedrying the Model State </h2> <p>The agents created by the agent editor tool are not permanent and will be destroyed if the Reset simulation button is clicked. To preserve the agents for future use, the Freezedrer tool is used to save the agent data. The Freezedryer saves the entire state of the simulation, including all agent instances and property values. The Freezedryer tool may be useful for storing important simulation states. With this tool, the simulation can be run for a period of time, freezedried and then restarted from the freezedry point at any time in the future. This would be useful for example, if a simulation needs to be run for a very long time as a "warm up" perdiod. Before the simulation is reset, use the pull down File menu and select Freeze Dry. The Freezedryer wizard provides several options for storing the simulation data. Select XML File and click Next. </p> <p><img src="../655398/runtime_freezedry_1.PNG" align="absmiddle" border="0" /></p> <p><br/> The Context selection step specifies what parts of the scenario are to be saved. Leave the default values and click Next.<br/> <br/> <img src="../655398/runtime_freezedry_2.PNG" align="absmiddle" border="0" /></p> <p>The location step specifies where the freeze dried data are to be stored. Click the Browse button</p> <p><img src="../655398/runtime_freezedry_3.PNG" align="absmiddle" border="0" /><br clear="all" /></p> <p>and browse to the data directory of the Infrasructure_Demo project freezedried_data directory. Any location may optionally be selected. Finally click finish on the last wizard step.</p> <p><img src="../655398/runtime_freezedry_4.PNG" align="absmiddle" border="0" /><br/> <br/> </p> <h2><a name="2-03FreezedryingandLoadingData-LoadingtheModelfromFreezedriedData%26nbsp%3B"></a>Loading the Model from Freezedried Data </h2> <p>To specify the freeze dried data to be automatically loaded, the Scenario Tree data loader needs to be modified. The existing data loader will use the Score Context Builder, which loads an empty context containing no agents, and the projections specified in the model Score file. Right click on Data Loaders and select Set Data Loader </p> <p><img src="../655398/runtime_freezedry_5.PNG" align="absmiddle" border="0" /><br clear="all" /></p> <p>Select XML File and click Next</p> <p><img src="../655398/runtime_freezedry_6.PNG" align="absmiddle" border="0" /></p> <p>Click the browse button and browse to the directory that contains the freeze dried data</p> <p><img src="../655398/runtime_freezedry_7.PNG" align="absmiddle" border="0" /><br clear="all" /></p> <p>The following screen appears . Click Finish. The saved agent data will be loaded the next time the model is reset.<br/> <br/> <img src="../655398/runtime_freezedry_8.PNG" align="absmiddle" border="0" /></p> <br/> <div class="tabletitle"> <a name="attachments">Attachments:</a> </div> <div class="greybox" align="left"> <img src="icons/bullet_blue.gif" height="8" width="8" alt=""/> <a href="../655398/runtime_freezedry_1.PNG">runtime_freezedry_1.PNG</a> (image/png) <br/> <img src="icons/bullet_blue.gif" height="8" width="8" alt=""/> <a href="../655398/runtime_freezedry_2.PNG">runtime_freezedry_2.PNG</a> (image/png) <br/> <img src="icons/bullet_blue.gif" height="8" width="8" alt=""/> <a href="../655398/runtime_freezedry_3.PNG">runtime_freezedry_3.PNG</a> (image/png) <br/> <img src="icons/bullet_blue.gif" height="8" width="8" alt=""/> <a href="../655398/runtime_freezedry_4.PNG">runtime_freezedry_4.PNG</a> (image/png) <br/> <img src="icons/bullet_blue.gif" height="8" width="8" alt=""/> <a href="../655398/runtime_freezedry_5.PNG">runtime_freezedry_5.PNG</a> (image/png) <br/> <img src="icons/bullet_blue.gif" height="8" width="8" alt=""/> <a href="../655398/runtime_freezedry_6.PNG">runtime_freezedry_6.PNG</a> (image/png) <br/> <img src="icons/bullet_blue.gif" height="8" width="8" alt=""/> <a href="../655398/runtime_freezedry_7.PNG">runtime_freezedry_7.PNG</a> (image/png) <br/> <img src="icons/bullet_blue.gif" height="8" width="8" alt=""/> <a href="../655398/runtime_freezedry_8.PNG">runtime_freezedry_8.PNG</a> (image/png) <br/> <img src="icons/bullet_blue.gif" height="8" width="8" alt=""/> <a href="../655398/penguin.png">penguin.png</a> (image/png) <br/> </div> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td height="12" background="border/border_bottom.gif"><img src="border/spacer.gif" width="1" height="1" border="0"/></td> </tr> <tr> <td align="center"><font color="grey">Document generated by Confluence on Mar 18, 2009 16:17</font></td> </tr> </table> </body> </html> |