From: Nick C. <nic...@ve...> - 2001-10-15 12:57:39
|
Hi, I think this is a bug that occurs when you have only constant parameters and a run value of greater than 1. Fortunately, there is a work-around. Trying doing: runs: 1 numberOfPeriods { set_list: 25 25 } which will do two batch runs, setting numberOfPeriods to 25 each time. I've tested this and it works. Let me know how this works for you. In the meantime, I'll try and fix the bug. Nick On Sun, 2001-10-14 at 17:30, Norman Ehrentreicxh wrote: > Hallo everybody, > > I am having problems finishing my simulations when started in > batch-mode. My parameter file looks like this: > > runs: 2 > numberOfPeriods { > set: 25 > } > > I expect the model to run two times, yet it doesn't stop at all. I > confirmed that the parameter file is properly read by the model by > altering the numberOfPeriods parameter. My main-method looks like this: > > public static void main(String[] args) { > SimInit init = new SimInit(); > AsmModel model = new AsmModel(); > if (args.length > 0) { > init.loadModel(model, args[0], true); > } else { > init.loadModel(model, null, false); > } > } > > and I call the model with the following batch-file: > > cd..\ASMModel\classes > java -cp > .;c:/repast/lib/repast.jar;c:/repast/lib/colt.jar;c:/repast/lib/jgl3.1.0.jar;c:/repast/lib/plot.jar;c:/repast/lib/jmf.jar > ASMModel.AsmModel H:/Java/ASMModel/src/ASMModel/Asm.pf > > I remember of having no problems when I tested this feature at the > beginning of my programming job (under Repast 1.2), but now, coming to > an end, I can't get it to run. > > Any ideas what might be wrong? Am I forgetting something? Thank you. > > Norman > > > -- > Norman Ehrentreich > Martin-Luther-University Halle-Wittenberg (Germany) > Dept. of Banking and Finance > > > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > _______________________________________________ > Repast-interest mailing list > Rep...@li... > https://lists.sourceforge.net/lists/listinfo/repast-interest -- Nick Collier Social Science Research Computing University of Chicago http://repast.sourceforge.net |