From: Brett W. <bw...@sc...> - 2008-06-27 19:20:06
|
As a follow up to this thread, I have the batch mode working on the terminal in Mac OSX. I typed the following to set my Environment Variable ECLIPSEHOME to reference the proper directory: export ECLIPSEHOME=/home/sci/bwalker/RepastS/eclipse To launch in batch mode I typed the following: java -Xms32m -Xmx1024m -cp $CLASSPATH:$ECLIPSEHOME/plugins/repast.simphony.runtime/bin/*:$ECLIPSEHOME/plugins/repast.simphony.runtime/bin/:$ECLIPSEHOME/plugins/repast.simphony.runtime/lib/*:$ECLIPSEHOME/plugins/repast.simphony.batch/bin:$ECLIPSEHOME/plugins/repast.simphony.core/lib/commons-cli-1.0.jar:$ECLIPSEHOME/plugins/repast.simphony.bin_and_src.jar:./bin-groovy/ repast.simphony.batch.BatchMain -params batch/params.xml -interactive boids.rs > Date: Wed, 25 Jun 2008 13:42:27 -0500> From: ta...@an...> To: N.M...@le...; rep...@li...> Subject: Re: [Repast-interest] Command line batch mode> > Nick, you pretty much covered it. I'll just throw in that the included> libraries on the classpath for running batch models will vary between> models. Unlike the GUI runtime, the batch runner doesn't load up all> the Repast plugin dependencies and libraries to keep things very lean.> By default, a batch model would need most of the jars in r.s.core/lib> and r.s.runtime/lib and then everhthing else just depends on what code> is implemented in the user's model. The user's own code needs to be on> the classpath as well.> > To address your last comment, there's a probably a type in> "repast.batch.BatchMain." Almost all package names were changed to> "repast.simphony.*" > > eruc> > > Eric Tatara, Ph.D.> Assistant Software Engineer> Center for Complex Adaptive Agent Systems Simulation> Decision and Information Sciences Division> Argonne National Laboratory> > -----Original Message-----> From: rep...@li...> [mailto:rep...@li...] On Behalf Of Nick> Malleson> Sent: Wednesday, June 25, 2008 2:56 AM> To: rep...@li...> Subject: Re: [Repast-interest] Command line batch mode> > > Hi Bret,> > I've just been able to get this going for my simulation, hope these> suggestions will help.> > > Is it possible to use batch mode without passing a parameter file?> > Ultimately my project involves running Repast with no GUI at all, just> > > using the simulation engine.> > Not sure, but I can't see why you'd want to do this anyway. The> parameters file lets you control how the batch run will execute: how> many runs to do, how to vary the model parameters etc. I don't think it> has anything to do with the GUI.> > > Here's the command I use to start the batch run (executed from the model> root directory)> > java -Xms32m -Xmx1024m -cp> $CLASSPATH:$ECLIPSEHOME/plugins/repast.simphony.runtime/bin/*:$ECLIPSEHO> ME/plugins/repast.simphony.runtime/bin/:$ECLIPSEHOME/plugins/repast.simp> hony.runtime/lib/*:$ECLIPSEHOME/plugins/repast.simphony.batch/bin:$ECLIP> SEHOME/plugins/repast.simphony.core/lib/commons-cli-1.0.jar:$ECLIPSEHOME> /plugins/repast.simphony.bin_and_src.jar:./bin/> repast.simphony.batch.BatchMain -params batch/batch_params.xml> -interactive burgdsim.rs> > That command works on a Mac but you might need to alter it slightly for> Windows and you'll need to check that you have defined the $ECLIPSEHOME> environment variable (if you can't work out how to do this let me know).> Also, in Eclipse you can use the "Run Dialogue" to find out what needs> to be in the classpath for a batch run.> > > >Why is the Main class reference in eclipse for running the batch model> different from the above reference? i.e. repast.batch.BatchMain vs.> repast.simphony.batch.BatchMain> > Don't know.> > Cheers,> Nick> --> View this message in context:> http://www.nabble.com/Command-line-batch-mode-tp18104253p18106874.html> Sent from the repast-interest mailing list archive at Nabble.com.> > > ------------------------------------------------------------------------> -> Check out the new SourceForge.net Marketplace.> It's the best place to buy or sell services for> just about anything Open Source.> http://sourceforge.net/services/buy/index.php> _______________________________________________> Repast-interest mailing list> Rep...@li...> https://lists.sourceforge.net/lists/listinfo/repast-interest> > -------------------------------------------------------------------------> Check out the new SourceForge.net Marketplace.> It's the best place to buy or sell services for> just about anything Open Source.> http://sourceforge.net/services/buy/index.php> _______________________________________________> Repast-interest mailing list> Rep...@li...> https://lists.sourceforge.net/lists/listinfo/repast-interest |