Note
Click here to download the full example code
An example of stochastic validation point¶
from __future__ import annotations
import logging
from pathlib import Path
from pandas import read_csv
from vimseo import EXAMPLE_RUNS_DIR
from vimseo.api import activate_logger
from vimseo.api import create_model
from vimseo.core.model_settings import IntegratedModelSettings
from vimseo.io.space_io import SpaceToolFileIO
from vimseo.material.material import Material
from vimseo.material_lib import MATERIAL_LIB_DIR
from vimseo.storage_management.base_storage_manager import PersistencyPolicy
from vimseo.tools.space.space_tool_result import SpaceToolResult
from vimseo.tools.validation.validation_point import NominalValuesOutputType
from vimseo.tools.validation.validation_point import StochasticValidationPoint
from vimseo.tools.validation.validation_point import StochasticValidationPointInputs
from vimseo.tools.validation.validation_point import StochasticValidationPointSettings
from vimseo.tools.validation.validation_point import read_nominal_values
from vimseo.utilities.datasets import SEP
from vimseo.utilities.generate_validation_reference import Bias
from vimseo.utilities.generate_validation_reference import (
generate_reference_from_parameter_space,
)
activate_logger(level=logging.INFO)
First we generate synthetic reference data, using an analytical bending test model, and bias the output of interest by 5 \%.
model_name = "BendingTestAnalytical"
load_case = "Cantilever"
target_model = create_model(
model_name,
load_case,
model_options=IntegratedModelSettings(
directory_archive_persistency=PersistencyPolicy.DELETE_ALWAYS,
directory_scratch_persistency=PersistencyPolicy.DELETE_ALWAYS,
directory_archive_root=EXAMPLE_RUNS_DIR / "archive/validation_point",
directory_scratch_root=EXAMPLE_RUNS_DIR / "scratch/validation_point",
cache_file_path=EXAMPLE_RUNS_DIR
/ f"caches/validation_point/target_{model_name}_{load_case}_cache.hdf",
),
)
target_model.cache = None
reference_dataset_cantilever = generate_reference_from_parameter_space(
target_model,
SpaceToolFileIO()
.read(file_name="bending_test_validation_input_space.json")
.parameter_space,
n_samples=6,
input_names=["width", "height", "imposed_dplt"],
output_names=["reaction_forces", "maximum_dplt"],
outputs_to_bias={"reaction_forces": Bias(mult_factor=1.05)},
additional_name_to_data={"nominal_length": 600.0, "batch": 1},
)
reference_dataset_cantilever.to_csv(
"reference_validation_bending_test_cantilever.csv", sep=SEP
)
print("The reference data: ", reference_dataset_cantilever)
Out:
C:\Users\sebastien.bocquet\Dev\vd017\.tox\doc\Lib\site-packages\genson\schema\strategies\base.py:42: UserWarning:
Schema incompatible. Keyword 'description' has conflicting values ('Value of the reaction forces at the imposed displacement location' vs. ''). Using 'Value of the reaction forces at the imposed displacement location'
INFO - 09:44:13: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\06_validation_point\CustomDOETool\1
INFO - 09:44:13: *** Start DOEScenario execution ***
INFO - 09:44:13: DOEScenario
INFO - 09:44:13: Disciplines: Model BendingTestAnalytical: An analytical model for the bending of a parallelepipedic beam
INFO - 09:44:13:
INFO - 09:44:13: Load case:
INFO - 09:44:13: Load case Cantilever: A cantilever load case.
INFO - 09:44:13: Domain: Beam
INFO - 09:44:13:
INFO - 09:44:13: Boundary condition variables: imposed_dplt, relative_dplt_location
INFO - 09:44:13:
INFO - 09:44:13: Default values:
INFO - 09:44:13:
INFO - 09:44:13: Default geometrical variables:
INFO - 09:44:13: height = [40.0]
INFO - 09:44:13: length = [600.0]
INFO - 09:44:13: width = [30.0]
INFO - 09:44:13:
INFO - 09:44:13: Default boundary conditions variables:
INFO - 09:44:13: imposed_dplt = [-5.0]
INFO - 09:44:13: relative_dplt_location = [1.0]
INFO - 09:44:13:
INFO - 09:44:13: Default material variables:
INFO - 09:44:13: nu_p = [0.3]
INFO - 09:44:13: young_modulus = [210000.0]
INFO - 09:44:13:
INFO - 09:44:13: Model inputs: height, imposed_dplt, length, nu_p, relative_dplt_location, width, young_modulus
INFO - 09:44:13: Model outputs: cpu_time, date, description, directory_archive_job, directory_archive_root, directory_scratch_job, directory_scratch_root, dplt, dplt_at_force_location, dplt_grid, error_code, job_name, load_case, location_max_dplt, machine, maximum_dplt, model, moment, moment_grid, n_cpus, persistent_result_files, reaction_forces, user, vims_git_version
INFO - 09:44:13: MDO formulation: DisciplinaryOpt
INFO - 09:44:13: Optimization problem:
INFO - 09:44:13: minimize reaction_forces(width, height, imposed_dplt)
INFO - 09:44:13: with respect to height, imposed_dplt, width
INFO - 09:44:13: over the design space:
INFO - 09:44:13: +--------------+-------------+-------+-------------+-------+
INFO - 09:44:13: | Name | Lower bound | Value | Upper bound | Type |
INFO - 09:44:13: +--------------+-------------+-------+-------------+-------+
INFO - 09:44:13: | width | -inf | None | inf | float |
INFO - 09:44:13: | height | -inf | None | inf | float |
INFO - 09:44:13: | imposed_dplt | -inf | None | inf | float |
INFO - 09:44:13: +--------------+-------------+-------+-------------+-------+
INFO - 09:44:13: Solving optimization problem with algorithm CustomDOE:
INFO - 09:44:13: Current archive directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\validation_point\BendingTestAnalytical\Cantilever\1.
INFO - 09:44:13: Removing job directory: C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\validation_point\BendingTestAnalytical\Cantilever\1
INFO - 09:44:13: Current archive directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\validation_point\BendingTestAnalytical\Cantilever\1.
INFO - 09:44:13: Removing job directory: C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\validation_point\BendingTestAnalytical\Cantilever\1
INFO - 09:44:13: 17%|█▋ | 1/6 [00:00<00:00, 8.94 it/sec, feas=True, obj=-2.18e+3]
INFO - 09:44:13: Current archive directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\validation_point\BendingTestAnalytical\Cantilever\1.
INFO - 09:44:13: Removing job directory: C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\validation_point\BendingTestAnalytical\Cantilever\1
INFO - 09:44:13: Current archive directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\validation_point\BendingTestAnalytical\Cantilever\1.
INFO - 09:44:13: Removing job directory: C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\validation_point\BendingTestAnalytical\Cantilever\1
INFO - 09:44:13: 33%|███▎ | 2/6 [00:00<00:00, 11.72 it/sec, feas=True, obj=-2.17e+3]
INFO - 09:44:13: Current archive directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\validation_point\BendingTestAnalytical\Cantilever\1.
INFO - 09:44:13: Removing job directory: C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\validation_point\BendingTestAnalytical\Cantilever\1
INFO - 09:44:13: Current archive directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\validation_point\BendingTestAnalytical\Cantilever\1.
INFO - 09:44:13: Removing job directory: C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\validation_point\BendingTestAnalytical\Cantilever\1
INFO - 09:44:13: 50%|█████ | 3/6 [00:00<00:00, 12.67 it/sec, feas=True, obj=-2.35e+3]
INFO - 09:44:13: Current archive directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\validation_point\BendingTestAnalytical\Cantilever\1.
INFO - 09:44:13: Removing job directory: C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\validation_point\BendingTestAnalytical\Cantilever\1
INFO - 09:44:13: Current archive directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\validation_point\BendingTestAnalytical\Cantilever\1.
INFO - 09:44:14: Removing job directory: C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\validation_point\BendingTestAnalytical\Cantilever\1
INFO - 09:44:14: 67%|██████▋ | 4/6 [00:00<00:00, 12.62 it/sec, feas=True, obj=-2.28e+3]
INFO - 09:44:14: Current archive directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\validation_point\BendingTestAnalytical\Cantilever\1.
INFO - 09:44:14: Removing job directory: C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\validation_point\BendingTestAnalytical\Cantilever\1
INFO - 09:44:14: Current archive directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\validation_point\BendingTestAnalytical\Cantilever\1.
INFO - 09:44:14: Removing job directory: C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\validation_point\BendingTestAnalytical\Cantilever\1
INFO - 09:44:14: 83%|████████▎ | 5/6 [00:00<00:00, 12.42 it/sec, feas=True, obj=-2.32e+3]
INFO - 09:44:14: Current archive directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\validation_point\BendingTestAnalytical\Cantilever\1.
INFO - 09:44:14: Removing job directory: C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\validation_point\BendingTestAnalytical\Cantilever\1
INFO - 09:44:14: Current archive directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\validation_point\BendingTestAnalytical\Cantilever\1.
INFO - 09:44:14: Removing job directory: C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\validation_point\BendingTestAnalytical\Cantilever\1
INFO - 09:44:14: 100%|██████████| 6/6 [00:00<00:00, 12.63 it/sec, feas=True, obj=-2e+3]
INFO - 09:44:14: Optimization result:
INFO - 09:44:14: Optimizer info:
INFO - 09:44:14: Status: None
INFO - 09:44:14: Message: None
INFO - 09:44:14: Solution:
INFO - 09:44:14: Objective: -2352.1728158748174
INFO - 09:44:14: Design space:
INFO - 09:44:14: +--------------+-------------+------------------+-------------+-------+
INFO - 09:44:14: | Name | Lower bound | Value | Upper bound | Type |
INFO - 09:44:14: +--------------+-------------+------------------+-------------+-------+
INFO - 09:44:14: | width | -inf | 30.408447265625 | inf | float |
INFO - 09:44:14: | height | -inf | 39.3721923828125 | inf | float |
INFO - 09:44:14: | imposed_dplt | -inf | -5.21435546875 | inf | float |
INFO - 09:44:14: +--------------+-------------+------------------+-------------+-------+
INFO - 09:44:14: *** End DOEScenario execution ***
The reference data: width height imposed_dplt ... reaction_forces nominal_length batch
0 30.052246 38.528564 -5.212891 ... -2286.645728 600.0 1
1 31.221924 38.574341 -4.972900 ... -2274.363156 600.0 1
2 30.408447 39.372192 -5.214355 ... -2469.781457 600.0 1
3 29.725220 39.985840 -4.940674 ... -2396.209442 600.0 1
4 30.032349 39.940186 -4.987549 ... -2435.575198 600.0 1
5 29.370850 38.490967 -4.919556 ... -2102.876165 600.0 1
[6 rows x 7 columns]
The objective is to validate a model for a new material. Let's create a model to validate:
model = create_model(
model_name,
load_case,
model_options=IntegratedModelSettings(
directory_archive_root=EXAMPLE_RUNS_DIR / "archive/validation_point",
directory_scratch_root=EXAMPLE_RUNS_DIR / "scratch/validation_point",
cache_file_path=EXAMPLE_RUNS_DIR
/ f"caches/validation_point/{model_name}_{load_case}_cache.hdf",
),
)
Out:
C:\Users\sebastien.bocquet\Dev\vd017\.tox\doc\Lib\site-packages\genson\schema\strategies\base.py:42: UserWarning:
Schema incompatible. Keyword 'description' has conflicting values ('Value of the reaction forces at the imposed displacement location' vs. ''). Using 'Value of the reaction forces at the imposed displacement location'
And the material, which defines probability distributions for its properties. It is typically obtained from a calibration.
material = Material.from_json(MATERIAL_LIB_DIR / "Ta6v.json")
print("The stochastic material: ", material)
Out:
The stochastic material: Ta6v
Material relations:
Ta6v_elastic_iso
young_modulus
Default value: 210000.0
Distribution:
Normal
Parameters:
{
"loc": 0.0,
"location": 0.0,
"lower": -1000000000000.0,
"lower_bound": 190000.0,
"mean": 0.0,
"mode": 0.0,
"mu": 210000.0,
"name": "Normal",
"rate": 1.0,
"scale": 1.0,
"shape": 1.0,
"sigma": 100.0,
"upper": 1000000000000.0,
"upper_bound": 230000.0
}
nu_p
Default value: 0.3
Distribution:
Normal
Parameters:
{
"loc": 0.0,
"location": 0.0,
"lower": -1000000000000.0,
"lower_bound": -1000000000000.0,
"mean": 0.0,
"mode": 0.0,
"mu": 0.3,
"name": "Normal",
"rate": 1.0,
"scale": 1.0,
"shape": 1.0,
"sigma": 0.02,
"upper": 1000000000000.0,
"upper_bound": 1000000000000.0
}
And the measured quantities of interest
measured_inputs = ["width", "height", "imposed_dplt"]
measured_outputs = ["reaction_forces"]
Since reference data are referenced by batches, we can select a batch to perform the validation only regarding this batch:
batch = 1
Then we define the path to the reference data
csv_path = "reference_validation_bending_test_cantilever.csv"
and the nominal inputs
at which the validation point is performed.
The read_nominal_values function allows to read
the nominal values in the reference data, using averaging
over the repeats for a given master variable:
nominal_values = read_nominal_values(
"batch",
csv_path=csv_path,
master_value=batch,
additional_names=["nominal_length"],
name_remapping={"nominal_length": "length"},
output_type=NominalValuesOutputType.DICTIONARY,
)
And finally we set the nominal inputs from the material. Indeed, all material properties may not be stochastic (a distribution is not necessarily defined). As a result, we need to set the model default inputs to the deterministic property values. It is done through the nominal inputs:
nominal_values.update(material.get_values_as_dict())
The reference samples are then defined from the csv file containing the measured data. First, the data are filtered to retain only the considered batch:
measured_data = read_csv(
csv_path,
delimiter=SEP,
)
measured_data = measured_data[measured_data["batch"] == batch]
The filtered table is passed to the tool as it is. The measured inputs and
outputs are named through the input_names and output_names settings
below, so the columns carried along for reference, such as batch, need not
be dropped:
print("The measured data: ", measured_data)
Out:
The measured data: Unnamed: 0 width height ... reaction_forces nominal_length batch
0 0 30.052246 38.528564 ... -2286.645728 600.0 1
1 1 31.221924 38.574341 ... -2274.363156 600.0 1
2 2 30.408447 39.372192 ... -2469.781457 600.0 1
3 3 29.725220 39.985840 ... -2396.209442 600.0 1
4 4 30.032349 39.940186 ... -2435.575198 600.0 1
5 5 29.370850 38.490967 ... -2102.876165 600.0 1
[6 rows x 8 columns]
The uncertainties coming from unmeasured inputs are then taken into account
via the argument uncertain_input_space, to which we pass a parameter
space defined from the material.
The stochastic validation point can now be created and executed.
The model output uncertainty is estimated by sampling the input space
with n_samples points.
validation_point_tool = StochasticValidationPoint(
working_directory=Path(f"{model_name}_{load_case}")
/ f"batch_{batch}_{nominal_values['length']}",
)
validation_point_tool.execute(
inputs=StochasticValidationPointInputs(
model=model,
measured_data=measured_data,
uncertain_input_space=material.to_parameter_space(),
),
settings=StochasticValidationPointSettings(
input_names=measured_inputs,
output_names=measured_outputs,
metric_names=[
"AreaMetric",
"RelativeAreaMetric",
"RelativeMeanToMean",
"AbsoluteRelativeErrorP90",
],
nominal_data=nominal_values,
n_samples=4,
),
)
Out:
C:\Users\sebastien.bocquet\Dev\vd017\.tox\doc\Lib\site-packages\pydantic\main.py:253: DeprecationWarning:
Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
INFO - 09:44:14: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\06_validation_point\BendingTestAnalytical_Cantilever\batch_1_[600.]
INFO - 09:44:14: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\06_validation_point\BendingTestAnalytical_Cantilever\batch_1_[600.]\DOETool
INFO - 09:44:14: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\06_validation_point\BendingTestAnalytical_Cantilever\batch_1_[600.]\StatisticsTool
INFO - 09:44:14: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\06_validation_point\BendingTestAnalytical_Cantilever\batch_1_[600.]\StatisticsTool
INFO - 09:44:15: | Set goodness-of-fit criterion: Kolmogorov.
INFO - 09:44:15: | Set significance level of hypothesis test: 0.05.
INFO - 09:44:15: Fit different distributions (Uniform, Normal, LogNormal, Exponential, WeibullMin) per variable and compute the goodness-of-fit criterion.
INFO - 09:44:15: | Fit different distributions for height.
INFO - 09:44:15: | Fit different distributions for imposed_dplt.
INFO - 09:44:15: | Fit different distributions for width.
INFO - 09:44:15: Select the best distribution for each variable.
INFO - 09:44:15: | The best distribution for height[0] is Normal(39.148681640625, 0.7105309088760217).
INFO - 09:44:15: | The best distribution for imposed_dplt[0] is WeibullMin(295026.46353371575, 3363635.8953734795, -295031.44804829767).
INFO - 09:44:15: | The best distribution for width[0] is Normal(30.135172526041664, 0.6364601858416962).
INFO - 09:44:15: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\06_validation_point\BendingTestAnalytical_Cantilever\batch_1_[600.]\DOETool
INFO - 09:44:15: *** Start DOE_BendingTestAnalytical_Cantilever_OT_OPT_LHS_4 execution ***
INFO - 09:44:15: DOE_BendingTestAnalytical_Cantilever_OT_OPT_LHS_4
INFO - 09:44:15: Disciplines: Model BendingTestAnalytical: An analytical model for the bending of a parallelepipedic beam
INFO - 09:44:15:
INFO - 09:44:15: Load case:
INFO - 09:44:15: Load case Cantilever: A cantilever load case.
INFO - 09:44:15: Domain: Beam
INFO - 09:44:15:
INFO - 09:44:15: Boundary condition variables: imposed_dplt, relative_dplt_location
INFO - 09:44:15:
INFO - 09:44:15: Default values:
INFO - 09:44:15:
INFO - 09:44:15: Default geometrical variables:
INFO - 09:44:15: height = [39.14868164062504]
INFO - 09:44:15: length = [600.0]
INFO - 09:44:15: width = [30.13517252604173]
INFO - 09:44:15:
INFO - 09:44:15: Default boundary conditions variables:
INFO - 09:44:15: imposed_dplt = [0.0]
INFO - 09:44:15: relative_dplt_location = [1.0]
INFO - 09:44:15:
INFO - 09:44:15: Default material variables:
INFO - 09:44:15: nu_p = [0.30000000000000054]
INFO - 09:44:15: young_modulus = [209999.99999999357]
INFO - 09:44:15:
INFO - 09:44:15: Model inputs: height, imposed_dplt, length, nu_p, relative_dplt_location, width, young_modulus
INFO - 09:44:15: Model outputs: cpu_time, date, description, directory_archive_job, directory_archive_root, directory_scratch_job, directory_scratch_root, dplt, dplt_at_force_location, dplt_grid, error_code, job_name, load_case, location_max_dplt, machine, maximum_dplt, model, moment, moment_grid, n_cpus, persistent_result_files, reaction_forces, user, vims_git_version
INFO - 09:44:15: MDO formulation: DisciplinaryOpt
INFO - 09:44:15: Optimization problem:
INFO - 09:44:15: minimize reaction_forces(young_modulus, nu_p, height, imposed_dplt, width)
INFO - 09:44:15: with respect to height, imposed_dplt, nu_p, width, young_modulus
INFO - 09:44:15: over the design space:
INFO - 09:44:15: +---------------+-------------------------------------------------------------------------+--------------------+
INFO - 09:44:15: | Name | Initial distribution | Transformation(x)= |
INFO - 09:44:15: +---------------+-------------------------------------------------------------------------+--------------------+
INFO - 09:44:15: | young_modulus | Normal(mu=210000.0, sigma=100.0) | Trunc(x) |
INFO - 09:44:15: | nu_p | Normal(mu=0.3, sigma=0.02) | Trunc(x) |
INFO - 09:44:15: | height | Normal(39.148681640625, 0.7105309088760217) | Trunc(x) |
INFO - 09:44:15: | imposed_dplt | WeibullMin(295026.46353371575, 3363635.8953734795, -295031.44804829767) | Trunc(x) |
INFO - 09:44:15: | width | Normal(30.135172526041664, 0.6364601858416962) | Trunc(x) |
INFO - 09:44:15: +---------------+-------------------------------------------------------------------------+--------------------+
INFO - 09:44:15: Solving optimization problem with algorithm OT_OPT_LHS:
INFO - 09:44:15: Current archive directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\validation_point\BendingTestAnalytical\Cantilever\1.
INFO - 09:44:15: 25%|██▌ | 1/4 [00:00<00:00, 12.37 it/sec, feas=True, obj=-2.11e+3]
INFO - 09:44:15: Current archive directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\validation_point\BendingTestAnalytical\Cantilever\2.
INFO - 09:44:15: 50%|█████ | 2/4 [00:00<00:00, 18.00 it/sec, feas=True, obj=-2.26e+3]
INFO - 09:44:15: Current archive directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\validation_point\BendingTestAnalytical\Cantilever\3.
INFO - 09:44:15: 75%|███████▌ | 3/4 [00:00<00:00, 21.07 it/sec, feas=True, obj=-2.42e+3]
INFO - 09:44:15: Current archive directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\validation_point\BendingTestAnalytical\Cantilever\4.
INFO - 09:44:15: 100%|██████████| 4/4 [00:00<00:00, 21.11 it/sec, feas=True, obj=-2.12e+3]
INFO - 09:44:15: Optimization result:
INFO - 09:44:15: Optimizer info:
INFO - 09:44:15: Status: None
INFO - 09:44:15: Message: None
INFO - 09:44:15: Solution:
INFO - 09:44:15: Objective: -2422.7339458695087
INFO - 09:44:15: Design space:
INFO - 09:44:15: +---------------+-------------------------------------------------------------------------+--------------------+
INFO - 09:44:15: | Name | Initial distribution | Transformation(x)= |
INFO - 09:44:15: +---------------+-------------------------------------------------------------------------+--------------------+
INFO - 09:44:15: | young_modulus | Normal(mu=210000.0, sigma=100.0) | Trunc(x) |
INFO - 09:44:15: | nu_p | Normal(mu=0.3, sigma=0.02) | Trunc(x) |
INFO - 09:44:15: | height | Normal(39.148681640625, 0.7105309088760217) | Trunc(x) |
INFO - 09:44:15: | imposed_dplt | WeibullMin(295026.46353371575, 3363635.8953734795, -295031.44804829767) | Trunc(x) |
INFO - 09:44:15: | width | Normal(30.135172526041664, 0.6364601858416962) | Trunc(x) |
INFO - 09:44:15: +---------------+-------------------------------------------------------------------------+--------------------+
INFO - 09:44:15: *** End DOE_BendingTestAnalytical_Cantilever_OT_OPT_LHS_4 execution ***
ValidationPointResult(metadata=ToolResultMetadata(generic={'datetime': '28-10-2026_09-44-14', 'version': '0.1.8.dev0+g5ba602a7e.d20261028'}, misc={}, settings={'variable_names': [], 'fitting_criterion': 'Kolmogorov', 'selection_criterion': 'best', 'level': 0.05, 'tested_distributions': ['Uniform', 'Normal', 'LogNormal', 'Exponential', 'WeibullMin'], 'coverage': 0.05, 'confidence': 0.95, 'output_names': ['reaction_forces'], 'n_samples': 4, 'algo': 'OT_OPT_LHS', 'metric_names': ['AreaMetric', 'RelativeAreaMetric', 'RelativeMeanToMean', 'AbsoluteRelativeErrorP90'], 'simulated_uncertainties': {}, 'input_names': ['width', 'height', 'imposed_dplt'], 'nominal_data': {'batch': array([1]), 'length': array([600.]), 'young_modulus': 210000.0, 'nu_p': 0.3}, 'typeb_uncertainties': {}}, report={'title': 'Validation of BendingTestAnalytical Cantilever', 'simulated_uncertainties': {}, 'typeb_uncertainties': {}, 'measured_output_names': ['reaction_forces'], 'measured_data_statistics': "StatisticsResult(metadata=ToolResultMetadata(generic={'datetime': '28-10-2026_09-44-14', 'version': '0.1.8.dev0+g5ba602a7e.d20261028'}, misc={}, settings={'variable_names': ['height', 'imposed_dplt', 'width'], 'fitting_criterion': 'Kolmogorov', 'selection_criterion': 'best', 'level': 0.05, 'tested_distributions': ['Uniform', 'Normal', 'LogNormal', 'Exponential', 'WeibullMin'], 'coverage': 0.05, 'confidence': 0.95}, report={}, model=None), analysis=StatisticsTool\n n_samples: 6\n n_variables: 3\n variables: height, imposed_dplt, width, best_fitting_distributions={'height': 'Normal', 'imposed_dplt': 'WeibullMin', 'width': 'Normal'}, statistics=OrderedDict({'maximum': {'height': array([inf]), 'imposed_dplt': array([inf]), 'width': array([inf])}, 'minimum': {'height': array([-inf]), 'imposed_dplt': array([-295031.4480483]), 'width': array([-inf])}, 'range': {'height': array([inf]), 'imposed_dplt': array([inf]), 'width': array([inf])}, 'mean': {'height': array([39.14868164]), 'imposed_dplt': array([-5.03514248]), 'width': array([30.13517253])}, 'median': {'height': array([39.14868164]), 'imposed_dplt': array([-5.01666164]), 'width': array([30.13517253])}, 'compute_standard_deviation': {'height': array([0.71053091]), 'imposed_dplt': array([0.11255568]), 'width': array([0.63646019])}, 'variance': {'height': array([0.50485417]), 'imposed_dplt': array([0.01266878]), 'width': array([0.40508157])}, 'percentile_5': {'height': array([37.9799623]), 'imposed_dplt': array([-5.24503202]), 'width': array([29.08828868])}, 'percentile_10': {'height': array([38.23809964]), 'imposed_dplt': array([-5.18189554]), 'width': array([29.31951598])}, 'percentile_25': {'height': array([38.66943583]), 'imposed_dplt': array([-5.09379312]), 'width': array([29.70588665])}, 'percentile_50': {'height': array([39.14868164]), 'imposed_dplt': array([-5.01666164]), 'width': array([30.13517253])}, 'percentile_75': {'height': array([39.62792746]), 'imposed_dplt': array([-4.9558653]), 'width': array([30.5644584])}, 'percentile_90': {'height': array([40.05926364]), 'imposed_dplt': array([-4.9113611]), 'width': array([30.95082907])}, 'percentile_95': {'height': array([40.31740098]), 'imposed_dplt': array([-4.88827951]), 'width': array([31.18205637])}, 'tolerance_interval': {'height': [Bounds(lower=array([39.04804181]), upper=array([39.24932147]))], 'imposed_dplt': [Bounds(lower=array([-5.12757488]), upper=array([-4.91203855]))], 'width': [Bounds(lower=array([30.0450241]), upper=array([30.22532096]))]}, 'a_value': {'height': array([[36.91122839]]), 'imposed_dplt': array([[-5.50554726]]), 'width': array([[28.13096708]])}, 'b_value': {'height': array([[37.65358846]]), 'imposed_dplt': array([[-5.27977553]]), 'width': array([[28.79593834]])}}))"}, model=ModelDescription(name='BendingTestAnalytical', summary=' An analytical model for the bending of a parallelepipedic beam', load_case=Beam_Cantilever(name='Cantilever', domain='Beam', summary='A cantilever load case.', bc_variable_names=['imposed_dplt', 'relative_dplt_location'], load=Load(direction='', sign='', type='')), dataflow={'model_inputs': ['length', 'width', 'height', 'imposed_dplt', 'relative_dplt_location', 'young_modulus', 'nu_p'], 'model_outputs': ['reaction_forces', 'moment', 'moment_grid', 'dplt', 'dplt_grid', 'maximum_dplt', 'location_max_dplt', 'dplt_at_force_location', 'model', 'load_case', 'error_code', 'description', 'job_name', 'persistent_result_files', 'n_cpus', 'date', 'cpu_time', 'user', 'machine', 'vims_git_version', 'directory_archive_root', 'directory_archive_job', 'directory_scratch_root', 'directory_scratch_job'], 'PreBendingTestAnalytical_Cantilever': {'inputs': ['length', 'width', 'height', 'imposed_dplt', 'relative_dplt_location', 'young_modulus', 'nu_p'], 'outputs': ['imposed_dplt_location', 'quadratic_moment', 'reaction_forces', 'moment', 'moment_grid', 'solver', 'boundary']}, 'RunBendingTestAnalytical': {'inputs': ['solver', 'boundary', 'moment', 'moment_grid', 'young_modulus', 'quadratic_moment', 'nu_p'], 'outputs': ['dplt', 'dplt_grid']}, 'PostBendingTestAnalytical_Cantilever': {'inputs': ['dplt', 'dplt_grid', 'moment', 'moment_grid', 'imposed_dplt_location', 'reaction_forces'], 'outputs': ['reaction_forces', 'maximum_dplt', 'dplt_grid', 'location_max_dplt', 'dplt', 'moment', 'moment_grid', 'dplt_at_force_location']}, 'subroutine_names': []}, default_inputs={<InputGroupNames.NUMERICAL_VARS: 'numerical variables'>: {}, <InputGroupNames.BC_VARS: 'boundary conditions variables'>: {'imposed_dplt': [-5.0], 'relative_dplt_location': [1.0]}, <InputGroupNames.GEOMETRICAL_VARS: 'geometrical variables'>: {'length': [600.0], 'width': [30.0], 'height': [40.0]}, <InputGroupNames.MATERIAL_VARS: 'material variables'>: {'young_modulus': [210000.0], 'nu_p': [0.3]}}, verbose=False)), nominal_data={'batch': array([1]), 'length': array([600.]), 'young_modulus': 210000.0, 'nu_p': 0.3}, measured_data=GROUP parameters inputs ... outputs parameters
VARIABLE Unnamed: 0 width height ... reaction_forces nominal_length batch
COMPONENT 0 0 0 ... 0 0 0
0 0 30.052246 38.528564 ... -2286.645728 600.0 1
1 1 31.221924 38.574341 ... -2274.363156 600.0 1
2 2 30.408447 39.372192 ... -2469.781457 600.0 1
3 3 29.725220 39.985840 ... -2396.209442 600.0 1
4 4 30.032349 39.940186 ... -2435.575198 600.0 1
5 5 29.370850 38.490967 ... -2102.876165 600.0 1
[6 rows x 8 columns], simulated_data=GROUP inputs ... outputs
VARIABLE young_modulus nu_p ... width reaction_forces
COMPONENT 0 0 ... 0 0
0 209814.147714 0.286485 ... 30.309006 -2112.998042
1 209956.568417 0.326577 ... 29.689029 -2262.327010
2 210002.916760 0.299659 ... 31.132341 -2422.733946
3 210183.347947 0.301963 ... 30.088279 -2120.181158
[4 rows x 6 columns], sample_to_sample_error=None, integrated_metrics={'AreaMetric': {'reaction_forces': np.float64(101.38911101194955)}, 'RelativeAreaMetric': {'reaction_forces': np.float64(0.043559972369570835)}, 'RelativeMeanToMean': {'reaction_forces': np.float64(0.04211041287337834)}, 'AbsoluteRelativeErrorP90': {'reaction_forces': np.float64(0.16704765769909247)}})
Validation results can be saved on disk
validation_point_tool.save_results(prefix=f"batch_{batch}")
Out:
INFO - 09:44:15: Saving result to C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\06_validation_point\BendingTestAnalytical_Cantilever\batch_1_[600.]\batch_1_StochasticValidationPoint_result.hdf5
INFO - 09:44:15: Saving result to C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\06_validation_point\BendingTestAnalytical_Cantilever\batch_1_[600.]\DOETool\batch_1_DOETool_result.hdf5
INFO - 09:44:15: Saving result to C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\06_validation_point\BendingTestAnalytical_Cantilever\batch_1_[600.]\StatisticsTool\batch_1_StatisticsTool_result.hdf5
INFO - 09:44:16: PICKLE fallback: key='analysis', type=<class 'gemseo.uncertainty.statistics.ot_parametric_statistics.OTParametricStatistics'>, value=StatisticsTool
INFO - 09:44:16: n_samples: 6
INFO - 09:44:16: n_variables: 3
INFO - 09:44:16: variables: height, imposed_dplt, width
The results can be plotted:
figures = validation_point_tool.plot_results(
validation_point_tool.result, "reaction_forces", show=True, save=True
)

Out:
INFO - 09:44:16: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\06_validation_point\BendingTestAnalytical_Cantilever\batch_1_[600.]
{'text/html': '<div> <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_SVG"></script><script type="text/javascript">if (window.MathJax && window.MathJax.Hub && window.MathJax.Hub.Config) {window.MathJax.Hub.Config({SVG: {font: "STIX-Web"}});}</script> <script type="text/javascript">window.PlotlyConfig = {MathJaxConfig: \'local\'};</script>\n <script charset="utf-8" src="https://cdn.plot.ly/plotly-2.35.0.min.js"></script> <div id="fedaf18e-46fa-48a0-829f-ce485e056f5a" class="plotly-graph-div" style="height:525px; width:100%;"></div> <script type="text/javascript"> window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById("fedaf18e-46fa-48a0-829f-ce485e056f5a")) { Plotly.newPlot( "fedaf18e-46fa-48a0-829f-ce485e056f5a", [{"autobinx":false,"histnorm":"probability density","legendgroup":"Reference","marker":{"color":"rgb(31, 119, 180)"},"name":"Reference","opacity":0.7,"x":[-2286.6457276438146,-2274.3631564499287,-2469.7814566685583,-2396.2094419471878,-2435.5751983484865,-2102.876165471976],"xaxis":"x","xbins":{"end":-2102.876165471976,"size":61.15088186609705,"start":-2469.7814566685583},"yaxis":"y","type":"histogram"},{"autobinx":false,"histnorm":"probability density","legendgroup":"Simulated","marker":{"color":"rgb(255, 127, 14)"},"name":"Simulated","opacity":0.7,"x":[-2112.998041636012,-2262.327009906824,-2422.7339458695087,-2120.1811577785397],"xaxis":"x","xbins":{"end":-2112.998041636012,"size":61.15088186609705,"start":-2422.7339458695087},"yaxis":"y","type":"histogram"}], {"barmode":"overlay","hovermode":"closest","legend":{"traceorder":"reversed"},"xaxis":{"anchor":"y2","domain":[0.0,1.0],"zeroline":false},"yaxis":{"anchor":"free","domain":[0.0,1],"position":0.0},"template":{"data":{"candlestick":[{"decreasing":{"line":{"color":"#000033"}},"increasing":{"line":{"color":"#000032"}},"type":"candlestick"}],"contourcarpet":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contourcarpet"}],"contour":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contour"}],"heatmap":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"heatmap"}],"histogram2d":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"histogram2d"}],"icicle":[{"textfont":{"color":"white"},"type":"icicle"}],"sankey":[{"textfont":{"color":"#000036"},"type":"sankey"}],"scatter":[{"marker":{"line":{"width":0}},"type":"scatter"}],"table":[{"cells":{"fill":{"color":"#000038"},"font":{"color":"#000037"},"line":{"color":"#000039"}},"header":{"fill":{"color":"#000040"},"font":{"color":"#000036"},"line":{"color":"#000039"}},"type":"table"}],"waterfall":[{"connector":{"line":{"color":"#000036","width":2}},"decreasing":{"marker":{"color":"#000033"}},"increasing":{"marker":{"color":"#000032"}},"totals":{"marker":{"color":"#000034"}},"type":"waterfall"}]},"layout":{"coloraxis":{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorscale":{"diverging":[[0.0,"#000021"],[0.1,"#000022"],[0.2,"#000023"],[0.3,"#000024"],[0.4,"#000025"],[0.5,"#000026"],[0.6,"#000027"],[0.7,"#000028"],[0.8,"#000029"],[0.9,"#000030"],[1.0,"#000031"]],"sequential":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"sequentialminus":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorway":["#000001","#000002","#000003","#000004","#000005","#000006","#000007","#000008","#000009","#000010"]}},"showlegend":true,"title":{"text":"Empirical CDF of reference and simulated reaction_forces"}}, {"responsive": true} ) }; </script> </div>'}
INFO - 09:44:16: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\06_validation_point\BendingTestAnalytical_Cantilever\batch_1_[600.]
{'text/html': '<div> <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_SVG"></script><script type="text/javascript">if (window.MathJax && window.MathJax.Hub && window.MathJax.Hub.Config) {window.MathJax.Hub.Config({SVG: {font: "STIX-Web"}});}</script> <script type="text/javascript">window.PlotlyConfig = {MathJaxConfig: \'local\'};</script>\n <script charset="utf-8" src="https://cdn.plot.ly/plotly-2.35.0.min.js"></script> <div id="24af798d-4caa-4863-8e03-c364c7419274" class="plotly-graph-div" style="height:525px; width:100%;"></div> <script type="text/javascript"> window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById("24af798d-4caa-4863-8e03-c364c7419274")) { Plotly.newPlot( "24af798d-4caa-4863-8e03-c364c7419274", [{"line":{"color":"dodgerblue","shape":"hv"},"mode":"lines","name":"Reference","x":[-2469.7814566685583,-2435.5751983484865,-2396.2094419471878,-2286.6457276438146,-2274.3631564499287,-2102.876165471976],"y":[0.16666666666666666,0.33333333333333337,0.5,0.6666666666666666,0.8333333333333334,1.0],"type":"scatter"},{"line":{"color":"red","shape":"hv"},"mode":"lines","name":"Simulated","x":[-2422.7339458695087,-2262.327009906824,-2120.1811577785397,-2112.998041636012],"y":[0.25,0.5,0.75,1.0],"type":"scatter"}], {"template":{"data":{"candlestick":[{"decreasing":{"line":{"color":"#000033"}},"increasing":{"line":{"color":"#000032"}},"type":"candlestick"}],"contourcarpet":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contourcarpet"}],"contour":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contour"}],"heatmap":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"heatmap"}],"histogram2d":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"histogram2d"}],"icicle":[{"textfont":{"color":"white"},"type":"icicle"}],"sankey":[{"textfont":{"color":"#000036"},"type":"sankey"}],"scatter":[{"marker":{"line":{"width":0}},"type":"scatter"}],"table":[{"cells":{"fill":{"color":"#000038"},"font":{"color":"#000037"},"line":{"color":"#000039"}},"header":{"fill":{"color":"#000040"},"font":{"color":"#000036"},"line":{"color":"#000039"}},"type":"table"}],"waterfall":[{"connector":{"line":{"color":"#000036","width":2}},"decreasing":{"marker":{"color":"#000033"}},"increasing":{"marker":{"color":"#000032"}},"totals":{"marker":{"color":"#000034"}},"type":"waterfall"}]},"layout":{"coloraxis":{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorscale":{"diverging":[[0.0,"#000021"],[0.1,"#000022"],[0.2,"#000023"],[0.3,"#000024"],[0.4,"#000025"],[0.5,"#000026"],[0.6,"#000027"],[0.7,"#000028"],[0.8,"#000029"],[0.9,"#000030"],[1.0,"#000031"]],"sequential":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"sequentialminus":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorway":["#000001","#000002","#000003","#000004","#000005","#000006","#000007","#000008","#000009","#000010"]}},"showlegend":true,"title":{"text":"Empirical CDF of reference and simulated reaction_forces"}}, {"responsive": true} ) }; </script> </div>'}
C:\Users\sebastien.bocquet\Dev\vd017\src\vimseo\tools\validation\validation_point.py:334: UserWarning:
FigureCanvasAgg is non-interactive, and thus cannot be shown
The Q-Q plot of the measured and simulated distributions:
figures["qq_plot"]
Out:
<Figure size 640x480 with 1 Axes>
The comparison of the measured and simulated PDF:
figures["PDF_comparison"]
The comparison of the measured and simulated CDF:
figures["CDF_comparison"]
The saved result can be visualised in a dashboard by typing in a terminal
where the vims_composites Python environment is activated:
dashboard_validation_point_viewer
The simulated input space can be exported to disk, to be visualized with
dashboard_space.
In pickle format:
space_tool_result = SpaceToolResult(
parameter_space=validation_point_tool.simulated_input_space
)
space_tool_result.to_pickle("simulated_input_space")
Or in json format:
SpaceToolFileIO().write(space_tool_result, file_base_name="simulated_input_space")
Out:
'{\n "parameter_space": {\n "young_modulus": {\n "mu": 210000.0,\n "sigma": 100.0,\n "name": "Normal",\n "lower_bound": 190000.0,\n "upper_bound": 230000.0,\n "size": 1\n },\n "nu_p": {\n "mu": 0.3,\n "sigma": 0.02,\n "name": "Normal",\n "lower_bound": -1000000000000.0,\n "upper_bound": 1000000000000.0,\n "size": 1\n },\n "height": {\n "name": "Normal",\n "parameters": [\n 39.148681640625,\n 0.7105309088760217\n ],\n "lower_bound": 0.0,\n "upper_bound": Infinity,\n "size": 1\n },\n "imposed_dplt": {\n "name": "WeibullMin",\n "parameters": [\n 295026.46353371575,\n 3363635.8953734795,\n -295031.44804829767\n ],\n "lower_bound": -295031.44804829767,\n "upper_bound": Infinity,\n "size": 1\n },\n "width": {\n "name": "Normal",\n "parameters": [\n 30.135172526041664,\n 0.6364601858416962\n ],\n "lower_bound": 0.0,\n "upper_bound": Infinity,\n "size": 1\n }\n },\n "metadata": {\n "generic": {\n "datetime": "28-10-2026_09-44-16",\n "version": "0.1.8.dev0+g5ba602a7e.d20261028"\n },\n "misc": {},\n "settings": {},\n "report": {},\n "model": null\n }\n}'
Total running time of the script: ( 0 minutes 3.386 seconds)
Download Python source code: plot_stochastic_validation_straightbeam.py
Download Jupyter notebook: plot_stochastic_validation_straightbeam.ipynb