Hi,

I'm trying to launch some test on ants.nlogo, and i'm searching a way to
get the number of experience i into my csvfile.

I try to do a *hook saveHook* on replicateModel to get the *i experience
number*, but it doesn't work.
Can i make a datachannel to pass directly this *i* * experience number *to
*statisticCapsule* ?

Best !
Sr.

Extract of the corresponding wf :

--
val statistic =
  StatisticTask() set (
    statistics += (food1, medNumberFood1, median),
    statistics += (food2, medNumberFood2, median),
    statistics += (food3, medNumberFood3, median)
  )

val exploration = ExplorationTask(i in (0.0 to 5.0 by 1.0))
val statisticCapsule = Capsule(statistic)
val env = LocalEnvironment(10)
val seedFactor = seed in (UniformDistribution[Int]() take 2)
val replicateModel = Replicate(modelCapsule, seedFactor, statisticCapsule)

// Define the hooks to collect the results
val displayOutputs = ToStringHook(i, seed, food1, food2, food3)
val displayMedians = ToStringHook(medNumberFood1, medNumberFood2,
medNumberFood3)

*val saveHook = AppendToCSVFileHook(resPath + "replication.csv", i,
gPopulation, gDiffusionRate, gEvaporationRate, medNumberFood1,
medNumberFood2,medNumberFood3)*
// Execute the workflow
val ex = exploration -< (replicateModel  + (modelCapsule on env hook
displayOutputs) + (statisticCapsule hook displayMedians) ) start




-- 
<http://stackoverflow.com/users/385881/reyman64>
_______________________________________________
OpenMOLE-users mailing list
[email protected]
http://fedex.iscpif.fr/mailman/listinfo/openmole-users

Reply via email to