From 781f250518271e66946a62e6299c207bbee9cf2a Mon Sep 17 00:00:00 2001 From: Robert Chisholm Date: Thu, 23 Nov 2023 15:01:44 +0000 Subject: [PATCH] Add RunPlanVector::setPropertyStep() example. --- src/guide/running-multiple-simulations/index.rst | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/guide/running-multiple-simulations/index.rst b/src/guide/running-multiple-simulations/index.rst index 5aa8c8702..148e49589 100644 --- a/src/guide/running-multiple-simulations/index.rst +++ b/src/guide/running-multiple-simulations/index.rst @@ -63,8 +63,10 @@ It is also possible to specify subdirectories for a particular runs' logging out runs_control.setSteps(3600); // Random seeds for each run should take the values (12, 13, 14, 15, etc) runs_control.setRandomSimulationSeed(12, 1); - // Initialise environment property 'lerp_float' with values uniformly distributed between 1 and 128 - runs_control.setPropertyLerpRange("lerp_float", 1.0f, 128.0f); + // Initialise environment property 'lerp_float' with values uniformly distributed between 1 and 256 + runs_control.setPropertyLerpRange("lerp_float", 1.0f, 256.0f); + // Initialise environment property 'step_int' with values 0, 2, 4, 6, 8 etc + runs_control.setPropertyStep("step_int", 0, 2); // Initialise environment property 'random_int' with values uniformly distributed in the range [0, 10] runs_control.setPropertyUniformRandom("random_int", 0, 10); @@ -106,8 +108,10 @@ It is also possible to specify subdirectories for a particular runs' logging out runs_control.setSteps(3600) # Random seeds for each run should take the values (12, 13, 14, 15, etc) runs_control.setRandomSimulationSeed(12, 1) - # Initialise environment property 'lerp_float' with values uniformly distributed between 1 and 128 - runs_control.setPropertyLerpRangeFloat("lerp_float", 1.0, 128.0) + # Initialise environment property 'lerp_float' with values uniformly distributed between 1 and 256 + runs_control.setPropertyLerpRangeFloat("lerp_float", 1.0, 256.0) + # Initialise environment property 'step_int' with values 0, 2, 4, 6, 8 etc + runs_control.setPropertyStepInt("step_int", 0, 2); # Initialise environment property 'random_int' with values uniformly distributed in the range [0, 10] runs_control.setPropertyUniformRandomInt("random_int", 0, 10)