Me again,

As far as I can see, OM only collects the results of the last period. If we
need inetrmediate results, we should collect them in a NetLogo list, ten
transfer this list in a OM array variable. Is this a correct understanding?

In my example, with the commands

 val cmds = List(
  "setup",
  "init-grid-globals",
  "while [ticks < 100] [go]")

I only get the results of the 100th period. Of course one would like to
collect time series of several variables.
No easy solution to that I imagine, except transfering data through lists
and arrays.

Best regards,

Murat


2015-11-02 13:42 GMT+01:00 Jonathan Passerat-Palmbach <
[email protected]>:

> Same thing for mu22 and maxtrajecotory of course.
> You can't specify them as inputs/outputs twice or the validation fails.
>
> Stick to the netLogoInputs/Outputs.
>
> Cheers
> J.
>
>
> On 02/11/15 12:18, Murat Yildizoglu wrote:
> > Hi again,
> >
> > To follow up: my preceding problem was coming from the dahs sign in the
> > name of the mole file.
> >
> > But now I get another type of problems in the new version of the mole :
> >
> > org.openmole.core.exception.UserBadDataError: Formal validation of your
> > mole has failed, several errors have been found: iota22 has been found
> > several time in capsule in Input of capsule Object@1677708695: iota22:
> > Int, iota22: Int.
> > mu22 has been found several time in capsule in Input of capsule
> > Object@1677708695: mu22: Int, mu22: Int.
> > maxtrajectory has been found several time in capsule in Output of
> > capsule Object@1677708695: maxtrajectory: Int, maxtrajectory: Int.
> >
> >
> > My Mole contains elements that have been inspired by the NetLogo Task
> > Tutorial:
> >
> > val iota22 = Val[Int]
> > val mu22 = Val[Int]
> > val maxtrajectory = Val[Int]
> >
> > val exploration =
> >   ExplorationTask(
> >     (iota22 in (0 to 1 by 1)) x
> >     (mu22 in (0 to 1 by 1))
> >   )
> >
> >   val cmds = List(
> >   "setup",
> >   "init-grid-globals",
> >   "while [ticks < 100] [go]")
> >
> >   val myTask =
> >
> >
> NetLogo5Task("/Users/myildi/Dropbox/These-vanDerPol/Modele/VDPMYV02.nlogo",
> > cmds) set (
> >     inputs += mu22,
> >     inputs += iota22,
> >     outputs += (iota22,mu22,maxtrajectory),
> >     netLogoInputs += (iota22, "iota2"),
> >     netLogoInputs += (mu22, "mu2"),
> >     netLogoOutputs += ("max-trajectory", maxtrajectory)
> >   )
> >
> >   val csvHook =
> >
> AppendToCSVFileHook("/Users/myildi/Dropbox/These-vanDerPol/Modele/result-om.csv")
> >
> >   exploration -< (myTask hook csvHook)
> >
> > *What am I doing wrong?*
> >
> > Murat
> >
> > 2015-11-02 11:32 GMT+01:00 Murat Yildizoglu
> > <[email protected] <mailto:[email protected]
> >>:
> >
> >     Hello,
> >
> >     I am trying to get on track back with OpenMole and I have downloaded
> >     the last version (it would be nice if the version is shown somewhere
> >     on the web interface, by the way).
> >
> >     I am first testing a NetLogo task locally, before testing it on our
> >     cluster, and I am getting an error message that I do not understand
> >     (see the scrrenshot attached to this message).
> >
> >     My OM file contains the following instructions :
> >
> >     val iota = Val[Int]
> >     val mu = Val[Int]
> >     val max-trajectory = Val[Int]
> >
> >     val exploration =
> >       ExplorationTask(
> >         (iota in (0 to 1 by 1)) x
> >         (mu in (0 to 1 by 1))
> >       )
> >
> >       val cmds = List(
> >       "setup",
> >       "while [ticks < 100] [go]")
> >
> >       val myTask =
> >
> >
>  NetLogo5Task("/Users/myildi/Dropbox/These-vanDerPol/Modele/VDPMYV02.nlogo",
> >     cmds) set (
> >         inputs += mu,
> >         inputs += iota,
> >         outputs += (iota,mu,max-trajectory),
> >         netLogoInputs += (iota, "iota"),
> >         netLogoInputs += (mu, "mu"),
> >         netLogoOutputs += ("max-trajectory", max-trajectory)
> >       )
> >
> >       val csvHook =
> >
>  
> AppendToCSVFileHook("/Users/myildi/Dropbox/These-vanDerPol/Modele/result-om.csv")
> >
> >       exploration -< (myTask hook csvHook)
> >
> >     Any idea?
> >
> >     Best,
> >
> >     MuratImages intégrées 1
> >
> >     --
> >     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>
> >
> >
> >
> >
> > --
> > Prof. Murat Yildizoglu
> >
> > Université Montesquieu Bordeaux IV
> > GREThA (UMR CNRS 5113)
> > Avenue Léon Duguit
> > 33608 Pessac cedex
> > France
> >
> > Bureau : E-331
> >
> > mail: yildi-at-u-bordeaux4.fr <http://yildi-at-u-bordeaux4.fr>
> >
> > web: yildizoglu.info <http://yildizoglu.info>
> >
> >
> > _______________________________________________
> > OpenMOLE-users mailing list
> > [email protected]
> > http://fedex.iscpif.fr/mailman/listinfo/openmole-users
> >
>
> --
> Jonathan Passerat-Palmbach, PhD
> Research Associate
> Department of Computing
> Imperial College London
>
> South Kensington Campus
> Huxley Building - room 344
> 180 Queen's Gate
> London SW7 2AZ
>
>
> _______________________________________________
> OpenMOLE-users mailing list
> [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

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

Reply via email to