Skip to content

refactors and small fixes for ParameterValueDistribution-related codes (stochastic)#1510

Open
HansRobo wants to merge 34 commits intomasterfrom
parameter_value_distribution_1
Open

refactors and small fixes for ParameterValueDistribution-related codes (stochastic)#1510
HansRobo wants to merge 34 commits intomasterfrom
parameter_value_distribution_1

Conversation

@HansRobo
Copy link
Copy Markdown
Member

@HansRobo HansRobo commented Jan 21, 2025

Description

Abstract

  • Change way to manage a shared resource for stochastic parameter distributions
  • Fix member element names
  • Improve detailed implementation

Background

There are a large diff in #1253.
This pull-request is a part of it.

Details

Change way to manage a shared resource for stochastic parameter distributions

Use Scope::random_engine instead of Scope::seed as shared resource for stochastic parameter distributions.

Fixed member element names

class wrong member name fixed member name
PoissonDistribution range Range
NormalDistribution range Range
UniformDistribution range Range
HistogramBin range Range
ParameterValueDistributionDefinition parameterValueDistribution ParameterValueDistribution

Improve detailed implementation

Stop using XXAdaptor for member initialization

  • Histogram
  • ProbabilityDistributionSet

References

Destructive Changes

Known Limitations

In this pull-request, tests are out-of-scope and will be introduced another pull-request.

@github-actions
Copy link
Copy Markdown

Checklist for reviewers ☑️

All references to "You" in the following text refer to the code reviewer.

  • Is this pull request written in a way that is easy to read from a third-party perspective?
  • Is there sufficient information (background, purpose, specification, algorithm description, list of disruptive changes, and migration guide) in the description of this pull request?
  • If this pull request contains a destructive change, does this pull request contain the migration guide?
  • Labels of this pull request are valid?
  • All unit tests/integration tests are included in this pull request? If you think adding test cases is unnecessary, please describe why and cross out this line.
  • The documentation for this pull request is enough? If you think adding documents for this pull request is unnecessary, please describe why and cross out this line.

@HansRobo HansRobo changed the title refactors and small fixes for ParameterValueDistribution-related codes refactors and small fixes for ParameterValueDistribution-related codes (stochastic) Feb 28, 2025
@github-actions
Copy link
Copy Markdown

Failure optional scenarios

Note

This is an experimental check and does not block merging the pull-request.
But, please be aware that this may indicate a regression.

scenario failed: execution_time_test
      <failure type="SimulationFailure" message="CustomCommandAction typed &quot;exitFailure&quot; was triggered by the named Conditions {&quot;update time checker&quot;, &quot;avoid startup&quot;}: {&quot;update time checker&quot;: Is the /simulation/interpreter/execution_time/update (= 0.007761999999999999802491323919) is greaterThan 0.005?}, {&quot;avoid startup&quot;: Is the simulation time (= 1.850000000000000976996261670138) is greaterThan 1.000000000000000000000000000000?}" />

@HansRobo HansRobo added bump patch If this pull request merged, bump patch version of the scenario_simulator_v2 and removed wait for regression test labels Mar 27, 2025
@HansRobo HansRobo requested a review from yamacir-kit March 28, 2025 04:57
@HansRobo HansRobo marked this pull request as ready for review March 28, 2025 05:06
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Apr 1, 2025

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 2, 2025

@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

This PR has failed the SonarQube scan. Please check the details in the SonarQube dashboard.

@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bump patch If this pull request merged, bump patch version of the scenario_simulator_v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants