Model 4: 50-DOF Complex Hyperplane Assembly

otaf.example_models.models_3_D.model4.eval_credal_set_constraints(x_std, tol=0.21, capa=1.0, hPlate=30.0)[source]

Evaluate the normalized credal set boundary conditions.

Parameters:
  • x_std (np.ndarray) – A 1D array containing standard deviation vector values.

  • tol (float, default 0.21) – The baseline design tolerance.

  • capa (float, default 1.0) – The process capability standard multiplier.

  • hPlate (float, default 30.0) – The height parameter of the plate component.

Returns:

An array containing the evaluated constraint metrics.

Return type:

np.ndarray

otaf.example_models.models_3_D.model4.eval_scaled_credal_set_constraints(x_scaled, max_std_vect, tracker=None, experiment_key=None, tol=0.21, capa=1.0, hPlate=30.0)[source]

Map scaled deviations to real values and evaluate constraints.

Parameters:
  • x_scaled (np.ndarray) – The scaled standard deviation vector inputs.

  • max_std_vect (np.ndarray) – The upper-bound limits for standard deviation mapping.

  • tracker (Any, optional) – Data logging tracker instance. Default is None.

  • experiment_key (Any, optional) – Unique identifier key for tracking logs. Default is None.

  • tol (float, default 0.21) – The baseline design tolerance.

  • capa (float, default 1.0) – The process capability standard multiplier.

  • hPlate (float, default 30.0) – The height parameter of the plate component.

Returns:

The calculated constraint evaluation bounds array.

Return type:

np.ndarray

otaf.example_models.models_3_D.model4.get_distribution_params(tol=0.21, capa=1.0, hPlate=30.0, EH=50.0, LB=25.0, Dext=20.0, Dint=19.8)[source]

Compute defect distribution parameters and variance vectors.

Parameters:
  • tol (float, default 0.21) – Tolerance limit value used to compute standard deviations.

  • capa (float, default 1.0) – Process capability index factor.

  • hPlate (float, default 30.0) – The height parameter of the plate component.

  • EH (float, default 50.0) – Distance between the pin axes, along x and along y.

  • LB (float, default 25.0) – Distance from a pin axis to the plate edge.

  • Dext (float, default 20.0) – The nominal external component diameter.

  • Dint (float, default 19.8) – The nominal internal component diameter.

Returns:

  • RandDeviationVect (otaf.distribution.ComposedDistribution) – The joint normal defect distribution model.

  • mapped_defects (list of sympy.Symbol) – The descriptive tracking labels for standard deviations.

  • std_vect (np.ndarray) – A 1D array of calculated maximum standard deviations.

  • mu_vect (np.ndarray) – A 1D array of calculated mean parameter offsets.

Return type:

tuple[Any, list[Symbol], ndarray, ndarray]

otaf.example_models.models_3_D.model4.get_scaled_credal_set_constraints_function(max_std_vect, tracker=None, experiment_key=None, tol=0.21, capa=1.0, hPlate=30.0)[source]

Generate a wrapped lambda function for scaled constraints.

Parameters:
  • max_std_vect (np.ndarray) – The upper-bound limits for standard deviation mapping.

  • tracker (Any, optional) – Data logging tracker instance. Default is None.

  • experiment_key (Any, optional) – Unique identifier key for tracking logs. Default is None.

  • tol (float, default 0.21) – The baseline design tolerance.

  • capa (float, default 1.0) – The process capability standard multiplier.

  • hPlate (float, default 30.0) – The height parameter of the plate component.

Returns:

A single-argument function mapping x_scaled to its evaluated constraint array.

Return type:

Callable[[np.ndarray], np.ndarray]

otaf.example_models.models_3_D.model4.get_system_of_constraints_assembly_model(L=[50, 50, 30, 30], CIRCLE_RESOLUTION=64, strategy=LinearizationStrategy.CIRCUMSCRIBED)[source]

Construct the system of constraints assembly model.

Parameters:
  • L (array_like, optional) – An array containing geometric parameters l0, l1, l2, l3. The default is [50, 50, 30, 30].

  • CIRCLE_RESOLUTION (int, default 64) – The number of discretization points for linearization.

  • strategy (LinearizationStrategy, optional) – The linearization strategy applied to circular constraints. Default is LinearizationStrategy.CIRCUMSCRIBED.

Returns:

The initialized assembly model with embedded optimization variables.

Return type:

otaf.SystemOfConstraintsAssemblyModel

Raises:

AssertionError – If L does not contain exactly 4 elements.