@p Using the ex and the env variables you can follow the progress of the execution by using the commands: print(ex) and print(env). To cancel the execution you should use: ex.cancel.
@@ -99,11 +99,11 @@ OpenMOLE makes the inclusion of your own Java code in a workflow simple. Since t
val csvHook = AppendToCSVFileHook(workDirectory / "result.csv")
DirectSampling(
evaluation = javaTask hook csvHook,
evaluation = javaTask,
sampling =
(arg1 in (0.0 to 10.0 by 1.0)) x
(arg2 in (0.0 until 10.0 by 1.0))
)""")
) hook csvHook""")
@p
This workflow will call the function @i{hello} with both arguments varying from 0 to 10 and save the results in a CSV file. Variables @i{arg1} and @i{arg2} are specified in the task output so that they are also written to the CSV file by the hook (see @aa("Hooks", href := DocumentationPages.hook.file))
...
...
@@ -169,9 +169,9 @@ OpenMOLE makes the inclusion of your own Java code in a workflow simple. Since t
@@ -115,8 +115,8 @@ val sum = ScalaTask("val result = multiplied.sum") set (
DirectSampling (
evaluation = expensive,
sampling = element in List(8.0, 9.0, 10.0),
aggregation = sum hook ToStringHook()
)""")
aggregation = sum
) hook ToStringHook()""")
@p
The execution of this workflow can be distributed using OpenMOLE's environments. Check the page dedicated to @a("environments", href := DocumentationPages.scale.file) to learn more on this process.
@p Notions from OpenMOLE are reused in this example. If you're not too familiar with @a("Environments", href := DocumentationPages.scale.file), @a("Groupings", href := DocumentationPages.scale.file + "#Grouping"), @a("Hooks", href := DocumentationPages.hook.file) or @a("Samplings", href := DocumentationPages.directSampling.file), check the relevant sections of the documentation.