Here is a script which compiles... You might want to create a new folder specific to your project in the OpenMOLE workspace and upload this file in it. You can achieve theses action in the web ui.
Le 03/11/2015 16:20, Murat Yildizoglu a écrit : > Which folder Romain? I can only see a download button for the oms file. > When I download it, I see the one that is on the screen, without any > dashes. > > I have cleaned the webui folder under localhost in .openmole, and now > I get new error messages that are also mysterious to me (and the fact > that the messages have changed shows that there seems to be also a > cache problem here, no?): > > > org.openmole.core.exception.UserBadDataError: Compilation error: > type mismatch; > found : Int.type > required: String > val savevectors0 = Val(Int) > ^ > on line 190 > Compilation error: > type mismatch; > found : Int.type > required: String > val savefrequency0 = Val(Int) > ^ > on line 191 > Compilation error: > type mismatch; > found : Int.type > required: String > val nbf0 = Val(Int) > ^ > on line 192 > Compilation error: > object java.lang.String is not a value > val networkstructure0 = Val(String) > ^ > on line 193 > Compilation error: > missing arguments for method apply in object Array; > follow this method with `_' if you want to treat it as a partially > applied function > val omprice = Array[Double] > ^ > on line 196 > Compilation error: > missing arguments for method apply in object Array; > follow this method with `_' if you want to treat it as a partially > applied function > val omavprofit = Array[Double] > ^ > on line 197 > Compilation error: > missing arguments for method apply in object Array; > follow this method with `_' if you want to treat it as a partially > applied function > val omavcapital = Array[Double] > ^ > on line 198 > Compilation error: > missing arguments for method apply in object Array; > follow this method with `_' if you want to treat it as a partially > applied function > val omavtrajectory = Array[Double] > ^ > on line 199 > Compilation error: > missing arguments for method apply in object Array; > follow this method with `_' if you want to treat it as a partially > applied function > val ommaxtrajectory = Array[Double] > ^ > on line 200 > Compilation error: > missing arguments for method apply in object Array; > follow this method with `_' if you want to treat it as a partially > applied function > val ommintrajectory = Array[Double] > ^ > on line 201 > Compilation error: > missing arguments for method apply in object Array; > follow this method with `_' if you want to treat it as a partially > applied function > val omtcc = Array[Double] > ^ > on line 202 > Compilation error: > missing arguments for method apply in object Array; > follow this method with `_' if you want to treat it as a partially > applied function > val omnbf = Array[Double] > ^ > on line 203 > Compilation error: > missing arguments for method apply in object Array; > follow this method with `_' if you want to treat it as a partially > applied function > val omnbt = Array[Double] > ^ > on line 204 > Compilation error: > missing arguments for method apply in object Array; > follow this method with `_' if you want to treat it as a partially > applied function > val omavproductivity = Array[Double] > ^ > on line 205 > Compilation error: > missing arguments for method apply in object Array; > follow this method with `_' if you want to treat it as a partially > applied function > val ommaxproductivity = Array[Double] > ^ > on line 206 > Compilation error: > missing arguments for method apply in object Array; > follow this method with `_' if you want to treat it as a partially > applied function > val omminproductivity = Array[Double] > ^ > on line 207 > Compilation error: > missing arguments for method apply in object Array; > follow this method with `_' if you want to treat it as a partially > applied function > val omavclustering = Array[Double] > ^ > on line 208 > Compilation error: > missing arguments for method apply in object Array; > follow this method with `_' if you want to treat it as a partially > applied function > val omavdistance = Array[Double] > ^ > on line 209 > Compilation error: > type mismatch; > found : Int.type > required: String > val savevectors0 = Val(Int) > ^ > on line 305 > Compilation error: > type mismatch; > found : Int.type > required: String > val savefrequency0 = Val(Int) > ^ > on line 306 > Compilation error: > type mismatch; > found : Int.type > required: String > val nbf0 = Val(Int) > ^ > on line 307 > Compilation error: > object java.lang.String is not a value > val networkstructure0 = Val(String) > ^ > on line 308 > Compilation error: > missing arguments for method apply in object Array; > follow this method with `_' if you want to treat it as a partially > applied function > val omprice = Array[Double] > ^ > on line 311 > Compilation error: > missing arguments for method apply in object Array; > follow this method with `_' if you want to treat it as a partially > applied function > val omavprofit = Array[Double] > ^ > on line 312 > Compilation error: > missing arguments for method apply in object Array; > follow this method with `_' if you want to treat it as a partially > applied function > val omavcapital = Array[Double] > ^ > on line 313 > Compilation error: > missing arguments for method apply in object Array; > follow this method with `_' if you want to treat it as a partially > applied function > val omavtrajectory = Array[Double] > ^ > on line 314 > Compilation error: > missing arguments for method apply in object Array; > follow this method with `_' if you want to treat it as a partially > applied function > val ommaxtrajectory = Array[Double] > ^ > on line 315 > Compilation error: > missing arguments for method apply in object Array; > follow this method with `_' if you want to treat it as a partially > applied function > val ommintrajectory = Array[Double] > ^ > on line 316 > Compilation error: > missing arguments for method apply in object Array; > follow this method with `_' if you want to treat it as a partially > applied function > val omtcc = Array[Double] > ^ > on line 317 > Compilation error: > missing arguments for method apply in object Array; > follow this method with `_' if you want to treat it as a partially > applied function > val omnbf = Array[Double] > ^ > on line 318 > Compilation error: > missing arguments for method apply in object Array; > follow this method with `_' if you want to treat it as a partially > applied function > val omnbt = Array[Double] > ^ > on line 319 > Compilation error: > missing arguments for method apply in object Array; > follow this method with `_' if you want to treat it as a partially > applied function > val omavproductivity = Array[Double] > ^ > on line 320 > Compilation error: > missing arguments for method apply in object Array; > follow this method with `_' if you want to treat it as a partially > applied function > val ommaxproductivity = Array[Double] > ^ > on line 321 > Compilation error: > missing arguments for method apply in object Array; > follow this method with `_' if you want to treat it as a partially > applied function > val omminproductivity = Array[Double] > ^ > on line 322 > Compilation error: > missing arguments for method apply in object Array; > follow this method with `_' if you want to treat it as a partially > applied function > val omavclustering = Array[Double] > ^ > on line 323 > Compilation error: > missing arguments for method apply in object Array; > follow this method with `_' if you want to treat it as a partially > applied function > val omavdistance = Array[Double] > ^ > on line 324 > > at > org.openmole.core.console.ScalaREPL.messageToException(ScalaREPL.scala:74) > at org.openmole.core.console.ScalaREPL.compile(ScalaREPL.scala:92) > at org.openmole.console.Project.compile(Project.scala:64) > at org.openmole.console.Project.compile(Project.scala:58) > at org.openmole.gui.server.core.ApiImpl$.runScript(ApiImpl.scala:160) > at > org.openmole.gui.server.core.GUIServlet$$anonfun$12$$anonfun$apply$1.applyOrElse(GUIServlet.scala:179) > at > org.openmole.gui.server.core.GUIServlet$$anonfun$12$$anonfun$apply$1.applyOrElse(GUIServlet.scala:179) > at > scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:36) > at > org.openmole.gui.server.core.GUIServlet$$anonfun$12.apply(GUIServlet.scala:179) > at > org.openmole.gui.server.core.GUIServlet$$anonfun$12.apply(GUIServlet.scala:179) > at org.scalatra.ScalatraBase$class.org > <http://class.org>$scalatra$ScalatraBase$$liftAction(ScalatraBase.scala:270) > at > org.scalatra.ScalatraBase$$anonfun$invoke$1.apply(ScalatraBase.scala:265) > at > org.scalatra.ScalatraBase$$anonfun$invoke$1.apply(ScalatraBase.scala:265) > at > org.scalatra.ScalatraBase$class.withRouteMultiParams(ScalatraBase.scala:341) > at > org.scalatra.ScalatraServlet.withRouteMultiParams(ScalatraServlet.scala:49) > at org.scalatra.ScalatraBase$class.invoke(ScalatraBase.scala:264) > at org.scalatra.ScalatraServlet.invoke(ScalatraServlet.scala:49) > at > org.scalatra.ScalatraBase$$anonfun$runRoutes$1$$anonfun$apply$8.apply(ScalatraBase.scala:240) > at > org.scalatra.ScalatraBase$$anonfun$runRoutes$1$$anonfun$apply$8.apply(ScalatraBase.scala:238) > at scala.Option.flatMap(Option.scala:171) > at > org.scalatra.ScalatraBase$$anonfun$runRoutes$1.apply(ScalatraBase.scala:238) > at > org.scalatra.ScalatraBase$$anonfun$runRoutes$1.apply(ScalatraBase.scala:237) > at scala.collection.immutable.Stream.flatMap(Stream.scala:489) > at org.scalatra.ScalatraBase$class.runRoutes(ScalatraBase.scala:237) > at org.scalatra.ScalatraServlet.runRoutes(ScalatraServlet.scala:49) > at > org.scalatra.ScalatraBase$class.runActions$1(ScalatraBase.scala:163) > at > org.scalatra.ScalatraBase$$anonfun$executeRoutes$1.apply$mcV$sp(ScalatraBase.scala:175) > at > org.scalatra.ScalatraBase$$anonfun$executeRoutes$1.apply(ScalatraBase.scala:175) > at > org.scalatra.ScalatraBase$$anonfun$executeRoutes$1.apply(ScalatraBase.scala:175) > at org.scalatra.ScalatraBase$class.org > <http://class.org>$scalatra$ScalatraBase$$cradleHalt(ScalatraBase.scala:193) > at > org.scalatra.ScalatraBase$class.executeRoutes(ScalatraBase.scala:175) > at > org.scalatra.ScalatraServlet.executeRoutes(ScalatraServlet.scala:49) > at > org.scalatra.ScalatraBase$$anonfun$handle$1.apply$mcV$sp(ScalatraBase.scala:113) > at > org.scalatra.ScalatraBase$$anonfun$handle$1.apply(ScalatraBase.scala:113) > at > org.scalatra.ScalatraBase$$anonfun$handle$1.apply(ScalatraBase.scala:113) > at scala.util.DynamicVariable.withValue(DynamicVariable.scala:58) > at org.scalatra.DynamicScope$class.withResponse(DynamicScope.scala:80) > at org.scalatra.ScalatraServlet.withResponse(ScalatraServlet.scala:49) > at > org.scalatra.DynamicScope$$anonfun$withRequestResponse$1.apply(DynamicScope.scala:60) > at scala.util.DynamicVariable.withValue(DynamicVariable.scala:58) > at org.scalatra.DynamicScope$class.withRequest(DynamicScope.scala:71) > at org.scalatra.ScalatraServlet.withRequest(ScalatraServlet.scala:49) > at > org.scalatra.DynamicScope$class.withRequestResponse(DynamicScope.scala:59) > at > org.scalatra.ScalatraServlet.withRequestResponse(ScalatraServlet.scala:49) > at org.scalatra.ScalatraBase$class.handle(ScalatraBase.scala:111) > at org.scalatra.ScalatraServlet.org > <http://org.scalatra.ScalatraServlet.org>$scalatra$servlet$ServletBase$$super$handle(ScalatraServlet.scala:49) > at org.scalatra.servlet.ServletBase$class.handle(ServletBase.scala:43) > at org.openmole.gui.server.core.GUIServlet.org > <http://org.openmole.gui.server.core.GUIServlet.org>$scalatra$servlet$FileUploadSupport$$super$handle(GUIServlet.scala:47) > at > org.scalatra.servlet.FileUploadSupport$class.handle(FileUploadSupport.scala:93) > at org.openmole.gui.server.core.GUIServlet.handle(GUIServlet.scala:47) > at org.scalatra.ScalatraServlet.service(ScalatraServlet.scala:54) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) > at > org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:669) > at > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455) > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) > at > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560) > at > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) > at > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072) > at > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382) > at > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) > at > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006) > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) > at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) > at org.eclipse.jetty.server.Server.handle(Server.java:365) > at > org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485) > at > org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:937) > at > org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:998) > at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856) > at > org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) > at > org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) > at > org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:196) > at > org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628) > at > org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) > at > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) > at > org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) > at java.lang.Thread.run(Thread.java:724) > > > 2015-11-03 16:07 GMT+01:00 Romain Reuillon <[email protected] > <mailto:[email protected]>>: > > There is a download button for the folder can you download it and > attach it here? > > > Le 03/11/2015 15:53, Murat Yildizoglu a écrit : >> Hi, >> I have a unique mole script in the folder that contains the >> netlogo file, and I upload it on the web interface to use it, >> after having deleted the old version in the web interface. >> >> Is there another cache folder where OM stocks its files and >> scripts? If yes how to clan it and why the old script seems to >> survive there? >> >> I have even eliminated the dashes from all variables that are >> accessed by OM (including the NL variables that appear in the >> NLoutput instructions), but I continue to get the same error. >> >> I am getting very mad at this mystery :-( >> >> 2015-11-03 15:29 GMT+01:00 Romain Reuillon >> <[email protected] <mailto:[email protected]>>: >> >> That's because the oms which contains the error is in the >> same directory as you current script. You can import element >> from one script to another in a directory, that's why all the >> script are compiled. If the scripts are unrelated you can >> store them in separate folders. >> >> >> Le 03/11/2015 15:15, Murat Yildizoglu a écrit : >>> Hi Romain, >>> >>> I have discovered that indeed, but you can see in the bottom >>> part of my mail that I do not use them in my mole anymore. >>> So I am suprised to continue to get this message over and >>> over when I try to compile the modified mole without dashes. >>> >>> Best, >>> >>> Murat >>> >>> 2015-11-03 15:03 GMT+01:00 Romain Reuillon >>> <[email protected] <mailto:[email protected]>>: >>> >>> Hi Murat, >>> >>> you may not you the '-' letter in variables names in >>> OpenMOLE / scala... You may use '_' instead. >>> >>> Romain >>> >>> >>> Le 03/11/2015 14:55, Murat Yildizoglu a écrit : >>>> Hi, I am advancing in my experiments with OM and NL. >>>> I have been able to send my runs to our cluster and get >>>> back my results for the last period. >>>> I am transforming my mole and my NL file in order to >>>> get time series from runs. >>>> >>>> But I am getting a strange problem: I have initially >>>> had some vaiables with a dash in their name, and I have >>>> had to change them of course. I do not have any of them >>>> in my mole (while I have dashes in the NL variables). >>>> When I click on the Play button, the compilation fails >>>> with the following messages for all such variables: >>>> >>>> org.openmole.core.exception.UserBadDataError: >>>> Compilation error: >>>> om is already defined as value om >>>> val om-avprofit-vector = Array[Double] >>>> ^ >>>> on line 199 >>>> >>>> (what is the object of these references to line numbers >>>> by the way?) >>>> >>>> As you can see below, I do not have such variable names >>>> in my mole. >>>> Do you have any idea how this happens, and how I can >>>> solve this? >>>> >>>> Thank you in advance for your help! I am quite at loss >>>> here... >>>> >>>> val iota22 = Val[Int] >>>> val mu22 = Val[Int] >>>> val probrad = Val[Double] >>>> >>>> // Time series >>>> val omprice = Array[Double] >>>> val omavprofit = Array[Double] >>>> val omavcapital = Array[Double] >>>> val omavtrajectory = Array[Double] >>>> val ommaxtrajectory = Array[Double] >>>> val ommintrajectory = Array[Double] >>>> val omtcc = Array[Double] >>>> val omnbf = Array[Double] >>>> val omnbt = Array[Double] >>>> val omavproductivity = Array[Double] >>>> val ommaxproductivity = Array[Double] >>>> val omminproductivity = Array[Double] >>>> val omavclustering = Array[Double] >>>> val omavdistance = Array[Double] >>>> >>>> val exploration = >>>> ExplorationTask( >>>> // (iota22 in (0 to 3 by 1)) x >>>> (mu22 in (0 to 3 by 1)) x >>>> (probrad in (0.1 to 0.4 by 0.05)) >>>> ) >>>> >>>> val savevectors0 = 1 >>>> val savefrequency0 = 10 >>>> val networkstructure0 = "Lattice" >>>> val nbf0 = 25 //225 >>>> >>>> val cmds = List( >>>> "init-grid-globals", >>>> "setup", >>>> "while [ticks < 100] repeat ${savefrequency0}[go]") >>>> >>>> val myTask = >>>> >>>> >>>> NetLogo5Task("/Users/myildi/Dropbox/These-vanDerPol/Modele/openmole/VDPMYV02-om.nlogo", >>>> cmds,true) set ( >>>> outputs += >>>> >>>> (iota22,mu22,probrad,savevectors0,savefrequency0,nbf0,networkstructure0), >>>> netLogoInputs += (iota22, "iota2"), >>>> netLogoInputs += (mu22, "mu2"), >>>> netLogoInputs += (probrad, "probrad2"), >>>> netLogoInputs += (savevectors0, "save-vectors"), >>>> netLogoInputs += (savefrequency0, "save-frequency"), >>>> netLogoInputs += (nbf0, "nbf0"), >>>> netLogoInputs += (networkstructure0, "net-structure"), >>>> netLogoOutputs += ("om-price-vector", omprice), >>>> netLogoOutputs += ("om-avprofit-vector", omavprofit), >>>> netLogoOutputs += ("om-avcapital-vector", omavcapital), >>>> netLogoOutputs += ("om-avtrajectory-vector", >>>> omavtrajectory), >>>> netLogoOutputs += ("om-maxtrajectory-vector", >>>> ommaxtrajectory), >>>> netLogoOutputs += ("om-mintrajectory-vector", >>>> ommintrajectory), >>>> netLogoOutputs += ("om-tcc-vector", omtcc), >>>> netLogoOutputs += ("om-nbf-vector", omnbf), >>>> netLogoOutputs += ("om-nbt-vector", omnbt), >>>> netLogoOutputs += ("om-avproductivity-vector", >>>> omavproductivity), >>>> netLogoOutputs += ("om-maxproductivity-vector", >>>> ommaxproductivity), >>>> netLogoOutputs += ("om-minproductivity-vector", >>>> omminproductivity), >>>> netLogoOutputs += ("om-avclustering-vector", >>>> omavclustering), >>>> netLogoOutputs += ("om-avdistance-vector", >>>> omavdistance) >>>> ) >>>> >>>> val env1 = LocalEnvironment(4) >>>> >>>> >>>> >>>> val csvHook = >>>> >>>> AppendToCSVFileHook("/Users/myildi/Dropbox/These-vanDerPol/Modele/openmole/result-om-test.csv", >>>> >>>> >>>> iota22,mu22,probrad,savevectors0,savefrequency0,nbf0,networkstructure0, >>>> >>>> omprice, >>>> omavprofit, >>>> omavcapital, >>>> omavtrajectory, >>>> ommaxtrajectory, >>>> ommintrajectory, >>>> omtcc, >>>> omnbf, >>>> omnbt, >>>> omavproductivity, >>>> ommaxproductivity, >>>> omminproductivity, >>>> omavclustering, >>>> omavdistance >>>> ) >>>> >>>> exploration -< (myTask on env1 hook csvHook) >>>> >>>> >>>> >>>> >>>> -- >>>> Prof. Murat Yildizoglu >>>> >>>> Note: Please use the following address as such >>>> >>>> UNIVERSITE DE BORDEAUX >>>> GREThA (UMR CNRS 5113) >>>> MURAT YILDIZOGLU >>>> 16 AVENUE LEON DUGUIT >>>> CS 50057 >>>> 33608 PESSAC CEDEX >>>> FRANCE >>>> >>>> Bureau : E-331 >>>> >>>> mail: murat.yildizoglu at u-bordeaux.fr >>>> <http://u-bordeaux.fr> >>>> >>>> web: www.yildizoglu.fr <http://www.yildizoglu.fr> >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> OpenMOLE-users mailing list >>>> [email protected] <mailto:[email protected]> >>>> http://fedex.iscpif.fr/mailman/listinfo/openmole-users >>> >>> >>> _______________________________________________ >>> OpenMOLE-users mailing list >>> [email protected] <mailto:[email protected]> >>> http://fedex.iscpif.fr/mailman/listinfo/openmole-users >>> >>> >>> >>> >>> -- >>> Prof. Murat Yildizoglu >>> >>> Note: Please use the following address as such >>> >>> UNIVERSITE DE BORDEAUX >>> GREThA (UMR CNRS 5113) >>> MURAT YILDIZOGLU >>> 16 AVENUE LEON DUGUIT >>> CS 50057 >>> 33608 PESSAC CEDEX >>> FRANCE >>> >>> Bureau : E-331 >>> >>> mail: murat.yildizoglu at u-bordeaux.fr <http://u-bordeaux.fr> >>> >>> web: www.yildizoglu.fr <http://www.yildizoglu.fr> >>> >>> >>> _______________________________________________ >>> OpenMOLE-users mailing list >>> [email protected] <mailto:[email protected]> >>> http://fedex.iscpif.fr/mailman/listinfo/openmole-users >> >> >> _______________________________________________ >> OpenMOLE-users mailing list >> [email protected] <mailto:[email protected]> >> http://fedex.iscpif.fr/mailman/listinfo/openmole-users >> >> >> >> >> -- >> Prof. Murat Yildizoglu >> >> Note: Please use the following address as such >> >> UNIVERSITE DE BORDEAUX >> GREThA (UMR CNRS 5113) >> MURAT YILDIZOGLU >> 16 AVENUE LEON DUGUIT >> CS 50057 >> 33608 PESSAC CEDEX >> FRANCE >> >> Bureau : E-331 >> >> mail: murat.yildizoglu at u-bordeaux.fr <http://u-bordeaux.fr> >> >> web: www.yildizoglu.fr <http://www.yildizoglu.fr> >> >> >> _______________________________________________ >> OpenMOLE-users mailing list >> [email protected] <mailto:[email protected]> >> http://fedex.iscpif.fr/mailman/listinfo/openmole-users > > > _______________________________________________ > OpenMOLE-users mailing list > [email protected] <mailto:[email protected]> > http://fedex.iscpif.fr/mailman/listinfo/openmole-users > > > > > -- > Prof. Murat Yildizoglu > > Note: Please use the following address as such > > UNIVERSITE DE BORDEAUX > GREThA (UMR CNRS 5113) > MURAT YILDIZOGLU > 16 AVENUE LEON DUGUIT > CS 50057 > 33608 PESSAC CEDEX > FRANCE > > Bureau : E-331 > > mail: murat.yildizoglu at u-bordeaux.fr <http://u-bordeaux.fr> > > web: www.yildizoglu.fr <http://www.yildizoglu.fr> > > > _______________________________________________ > OpenMOLE-users mailing list > [email protected] > http://fedex.iscpif.fr/mailman/listinfo/openmole-users
val iota22 = Val[Int]
val mu22 = Val[Int]
val probrad = Val[Double]
val savevectors0 = Val[Int]
val savefrequency0 = Val[Int]
val nbf0 = Val[Int]
val networkstructure0 = Val[String]
// Time series
val omprice = Val[Array[Double]]
val omavprofit = Val[Array[Double]]
val omavcapital = Val[Array[Double]]
val omavtrajectory = Val[Array[Double]]
val ommaxtrajectory = Val[Array[Double]]
val ommintrajectory = Val[Array[Double]]
val omtcc = Val[Array[Double]]
val omnbf = Val[Array[Double]]
val omnbt = Val[Array[Double]]
val omavproductivity = Val[Array[Double]]
val ommaxproductivity = Val[Array[Double]]
val omminproductivity = Val[Array[Double]]
val omavclustering = Val[Array[Double]]
val omavdistance = Val[Array[Double]]
val exploration =
ExplorationTask(
(iota22 in (0 to 3 by 1)) x
(mu22 in (0 to 3 by 1)) x
(probrad in (0.1 to 0.4 by 0.05))
)
val cmds = List(
"init-grid-globals",
"setup",
"while [ticks < 700] repeat ${savefrequency0}[go]")
val myTask =
NetLogo5Task("/Users/myildi/Dropbox/These-vanDerPol/Modele/openmole/VDPMYV02-om.nlogo",
cmds,true) set (
outputs += (iota22,mu22,probrad),
netLogoInputs += (iota22, "iota2"),
netLogoInputs += (mu22, "mu2"),
netLogoInputs += (probrad, "probrad2"),
netLogoInputs += (savevectors0, "savevectors"),
netLogoInputs += (savefrequency0, "savefrequency"),
netLogoInputs += (nbf0, "nbf0"),
netLogoInputs += (networkstructure0, "net-structure"),
netLogoOutputs += ("ompricevector", omprice),
netLogoOutputs += ("omavprofitvector", omavprofit),
netLogoOutputs += ("omavcapitalvector", omavcapital),
netLogoOutputs += ("omavtrajectoryvector", omavtrajectory),
netLogoOutputs += ("ommaxtrajectoryvector", ommaxtrajectory),
netLogoOutputs += ("ommintrajectoryvector", ommintrajectory),
netLogoOutputs += ("omtccvector", omtcc),
netLogoOutputs += ("omnbfvector", omnbf),
netLogoOutputs += ("omnbtvector", omnbt),
netLogoOutputs += ("omavproductivityvector", omavproductivity),
netLogoOutputs += ("ommaxproductivityvector", ommaxproductivity),
netLogoOutputs += ("omminproductivityvector", omminproductivity),
netLogoOutputs += ("omavclusteringvector", omavclustering),
netLogoOutputs += ("omavdistancevector", omavdistance),
outputs += (networkstructure0, savefrequency0),
savevectors0 := 1,
savefrequency0 := 10,
networkstructure0 := "Lattice",
nbf0 := 25
)
val env1 = LocalEnvironment(4)
val env2 =
PBSEnvironment(
"yildi",
"avakas.mcia.univ-bordeaux.fr",
queue="ubx4",
workDirectory = "/scratch/yildi/openmole",
wallTime=1 hours,
nodes=30,
threads=4
)
/* val envPBS =
PBSEnvironment(
"yildi",
"localhost",
queue="ubx4",
wallTime="PT60M"
)
*/
val csvHook =
AppendToCSVFileHook("/Users/myildi/Dropbox/These-vanDerPol/Modele/openmole/result-om-avakas-test.csv",
iota22,mu22,probrad,savefrequency0,networkstructure0,
omprice,
omavprofit,
omavcapital,
omavtrajectory,
ommaxtrajectory,
ommintrajectory,
omtcc,
omnbf,
omnbt,
omavproductivity,
ommaxproductivity,
omminproductivity,
omavclustering,
omavdistance
)
exploration -< (myTask on env1 hook csvHook)
signature.asc
Description: OpenPGP digital signature
_______________________________________________ OpenMOLE-users mailing list [email protected] http://fedex.iscpif.fr/mailman/listinfo/openmole-users
