Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RunPlanVector::setPropertyStep() example. #175

Merged
merged 1 commit into from
Nov 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions src/guide/running-multiple-simulations/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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<float>("lerp_float", 1.0f, 128.0f);
// Initialise environment property 'lerp_float' with values uniformly distributed between 1 and 256
runs_control.setPropertyLerpRange<float>("lerp_float", 1.0f, 256.0f);
// Initialise environment property 'step_int' with values 0, 2, 4, 6, 8, etc
runs_control.setPropertyStep<int>("step_int", 0, 2);

// Initialise environment property 'random_int' with values uniformly distributed in the range [0, 10]
runs_control.setPropertyUniformRandom<int>("random_int", 0, 10);
Expand Down Expand Up @@ -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)
Expand Down