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

web: www.yildizoglu.fr
_______________________________________________
OpenMOLE-users mailing list
[email protected]
http://fedex.iscpif.fr/mailman/listinfo/openmole-users

Reply via email to