A method and system for generating a minimum distinguishable verification task group for a CAE plug-in
By constructing a capability dependency graph and generating a set of verification obligations, selecting an anchoring model and generating basic tasks, the problem of difficulty in distinguishing capability support in CAE plugin verification is solved, and efficient and reliable plugin authentication is achieved.
Patent Information
- Application Number
- CN202611322283.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-28
- Publication Date
- 2026-11-27
AI Technical Summary
Existing CAE plugin verification methods cannot effectively distinguish whether a plugin truly supports a capability. They suffer from problems such as difficulty in determining the specific capability when a task fails, failure to differentiate the importance of parameter combinations, invalid randomly generated models, and high authentication costs.
By obtaining the recompilable capability objects of the plugins, a capability dependency graph is constructed, a set of verification obligations is generated, an anchoring model is selected and basic tasks are generated, controlled physical transformations are determined, evaluation metrics are calculated, and the smallest discriminable verification task group is selected.
It significantly reduces the number of verification tasks and execution costs, improves verification efficiency and the reliability of conclusions, and can distinguish between true support, parameter ignoring, result reuse and silent degradation states.
Smart Images

Figure CN123179801A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer-aided engineering technology, and in particular to a method and system for generating a minimum discriminative verification task group for a CAE plugin. Background Technology
[0002] CAE plugins can support capabilities such as mesh generation, structural solving, fluid solving, thermal analysis, contact analysis, result analysis, and optimization algorithms. To verify whether a plugin truly supports its claimed capabilities, it is typically necessary to prepare multiple engineering models and parameter combinations and perform tests.
[0003] Traditional verification task generation mainly adopts the following methods: 1. Standard calculation examples are manually designed by engineers; 2. Maintain a fixed test model for each capability; 3. Generate parameter combinations through permutations and combinations, orthogonal experiments, or combined coverage; 4. Generate input from interface parameter types, default values, or boundary values; 5. Generate a large number of tasks using random parameters; 6. Use fixed reference results or single physical invariants to determine whether the task is successful; 7. Repeat all historical test tasks as a regression test set.
[0004] The above method has the following problems.
[0005] First, standard manual simulations typically aim to "run," without clearly defining which capability the task needs to prove, which prerequisite capabilities it depends on, and how to isolate the target capability. A structural statics case involves geometry, mesh, materials, loads, constraints, solutions, and analytical results simultaneously. It is difficult to determine the specific capability when the task fails; even if the task passes, it cannot prove that all capabilities have been truly realized.
[0006] Secondly, while combined coverage methods can reduce the number of common parameter combinations, they do not distinguish the importance of parameters to the target physical capabilities. For example, changing the model name, file path, and material elastic modulus can all be considered parameter changes, but only the latter can prove whether the material parameter mapping is effective. Simply using pairwise combinations or orthogonal coverage cannot guarantee that the task has physical discriminability.
[0007] Furthermore, randomly generating a large number of inputs may result in invalid models, unsolvable models, models exceeding the declared capabilities, or models that do not meet the applicable physical criteria. Even if the task is successfully executed, there may be a lack of clear expected relationships between tasks, making it impossible to distinguish between true support and erroneous results.
[0008] Fixed single-task tasks are also prone to the following problems: 1. The plugin can still return seemingly reasonable results even after ignoring parameters; 2. When a plugin incorrectly reuses old results, this cannot be detected in a single task; 3. Silent deletion or downgrading of capabilities is not supported; 4. Fixed standard cases are specifically adapted; 5. A task covers multiple capabilities, but there are no observations to independently determine the target capability; 6. Blindly increasing tasks to improve coverage leads to excessively high certification costs. Summary of the Invention
[0009] In view of the above problems, the present invention is proposed to provide a method for generating a minimum discriminative verification task group for a CAE plugin and a corresponding system for generating such a task group, which overcomes or at least partially solves the above problems.
[0010] This invention discloses a method for generating a minimum discriminative verification task group for a CAE plugin, the method comprising: Obtain the decompilable capability object of the CAE plugin to be verified; the decompilable capability object is obtained by converting the capability declaration list of the plugin to be verified. A capability dependency graph is constructed based on the recompilable capability object, and the capability dependency graph contains the capability dependencies between various capabilities; A set of verification obligations containing multiple verification obligations is generated based on the capability dependency graph; Based on the set of verification obligations, an anchoring model is selected from the parametric model template library, and a basic task is generated based on the anchoring model; Based on the basic task, a controlled physical transformation is determined, and a corresponding control task is generated according to the controlled physical transformation, resulting in a candidate verification task set including the basic task and the corresponding control task. Calculate the evaluation index for each task in the candidate task set; Based on the evaluation indicators, preset hard constraints, and optimization objectives of each task, the smallest discriminable verification task group is selected from the candidate verification task set.
[0011] Optionally, constructing a capability dependency graph based on the recompilable capability object includes: Iterate through each capability in the decompileable capability object and identify at least one of the following relationships among the capabilities: prerequisite dependency, compositional collaboration, mutual exclusion, output dependency, derived dependency, environment dependency, and substitution. Using each capability as a node, and the identified prerequisite dependencies, collaborative relationships, mutual exclusion relationships, output dependencies, derived dependencies, environmental dependencies, and substitution relationships as edges, a directed graph structure is constructed. The directed graph structure is topologically sorted and verified. If the verification passes, the directed graph structure is determined to be the capability dependency graph.
[0012] Optionally, a set of verification obligations containing multiple verification obligations is generated based on the capability dependency graph, including: Based on the target capabilities and the relationships between the capabilities in the capability dependency graph, at least one of the following is generated: positive existence obligation, parameter-sensitive obligation, boundary application obligation, reverse exclusion obligation, capability interaction obligation, and environment maintenance obligation, forming the verification obligation set.
[0013] Optionally, selecting an anchoring model from a parametric model template library based on the set of verification obligations includes: Based on the target capabilities in the set of verification obligations, candidate model templates that can activate the target capabilities, have observations sensitive to the target capabilities, and whose model complexity does not exceed a preset budget are selected from the parameterized model template library. Each candidate model template is comprehensively scored based on the observability of its target capability, the strength of its available physical relationships, and the status of its prerequisite capabilities. The candidate model template with the highest overall score is selected as the anchor model.
[0014] Optionally, determining the controlled physical transformation based on the basic task includes: Based on the type of the basic task and the semantics of the target capability, the appropriate transformation operator is matched from the preset transformation operator library; Verify whether the matched transformation operator meets the applicable conditions, which include the transformed target variable being within the legal parameter domain, the transformation satisfying the physical assumptions of the anchoring model, and the expected change in the observed quantity being greater than the numerical noise tolerance. If the verification passes, the transformation operator is determined as the controlled physical transformation.
[0015] Optionally, generating a reference task corresponding to the basic task based on the controlled physical transformation includes: The standardized description of the basic task is copied as the initial reference task description; The controlled physical transformation is used to transform the target variables related to the target capability in the initial control task description, and the non-target variables are marked as frozen variables; A field-level difference comparison is performed between the transformed initial control task description and the normalized description of the basic task. If the frozen variables in the transformed initial control task description are consistent with the non-target variables in the normalized description of the basic task, then the transformed initial control task description is determined as the control task.
[0016] Optionally, the evaluation metrics for each task in the candidate task set are calculated, including: For each candidate verification task, determine whether the target capability is activated, whether an observation is generated, whether there are applicable physical criteria, and whether the required evidence is obtained. Calculate the task coverage based on the determination results. The target capability isolation degree is calculated based on the pre-capability verification ratio of the target capability, the sensitivity of the target capability variables to the observations, and the completeness of the frozen variable set. The physical discriminability score is calculated based on the ratio of the expected change in the observed value caused by the change in the target variable to the numerical noise tolerance, the number of distinguishable failure modes, and the completeness of evidence. The task coverage, the target capability isolation, and the physical discriminability score are used as the evaluation indicators.
[0017] Optionally, based on the evaluation metrics of each task, preset hard constraints, and optimization objectives, the smallest discriminable verification task group is selected from the candidate verification task set, including: The hard constraints are set, including that each objective capability is covered by at least one verification task corresponding to a positive existence obligation, each key parameter is covered by at least one verification task corresponding to a parameter-sensitive obligation, each unsupported capability is covered by at least one verification task corresponding to a negative exclusion obligation, and the total execution cost does not exceed a preset resource budget. Under the premise of satisfying the hard constraints, and based on the evaluation index, a subset of tasks is selected from the candidate verification task set with the optimization objectives of minimizing the number of verification tasks and minimizing the total execution cost; Redundant tasks covering the same verification obligation are eliminated from the task subset to obtain the minimum discriminable verification task group.
[0018] This invention also discloses a CAE plugin minimum discriminative verification task group generation system, the system comprising: The capability object acquisition module is used to acquire the decompilable capability objects of the CAE plugin to be verified; the decompilable capability objects are obtained by converting the capability declaration list of the plugin to be verified. A capability dependency graph construction module is used to construct a capability dependency graph based on the decompilable capability object, wherein the capability dependency graph contains the capability dependency relationships between various capabilities; The verification obligation generation module is used to generate a set of verification obligations containing multiple verification obligations based on the capability dependency graph; An anchoring model selection module is used to select an anchoring model from the parameterized model template library according to the set of verification obligations, and generate a basic task based on the anchoring model; The candidate verification task generation module is used to determine the controlled physical transformation based on the basic task, generate a reference task corresponding to the basic task according to the controlled physical transformation, and obtain a set of candidate verification tasks including the basic task and the corresponding reference task. The task evaluation index calculation module is used to calculate the evaluation index of each task in the candidate task set. The minimum discriminant verification task group selection module is used to select the minimum discriminant verification task group from the candidate verification task set based on the evaluation indicators of each task, the preset hard constraints and optimization objectives.
[0019] This invention has the following advantages: This invention transforms the capability declaration list of the plugin to be verified into a reverse-compilable capability object. Based on this, a capability dependency graph expressing the dependencies between various capabilities is constructed. A set of verification obligations containing multiple verification duties is generated based on this graph. Anchor models are selected from a parametric model template library to generate basic tasks. Controlled physical transformations are determined for the basic tasks, and corresponding control tasks are generated to obtain a candidate verification task set. Evaluation metrics such as task coverage, target capability isolation, and physical discriminability score are then calculated for each task. Under hard constraints and optimization objectives, the minimum discriminable verification task group is selected. This invention can effectively distinguish between states such as true support, parameter ignoring, result reuse, silent degradation, and explicit lack of support. While meeting certification requirements, it significantly reduces the number of verification tasks and execution costs, improving verification efficiency and the reliability of conclusions. Attached Figure Description
[0020] Figure 1 This is a flowchart of the steps of a method for generating a minimum discriminative verification task group for a CAE plugin, provided in an embodiment of the present invention. Detailed Implementation
[0021] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0022] Reference Figure 1This embodiment provides a method for generating a minimum discriminative verification task group for a CAE plugin. First, the reverse-compileable capability object of the CAE plugin to be verified is obtained. Then, a capability dependency graph is constructed based on the capability object. Based on the capability dependency graph, a set of verification obligations containing multiple verification obligations is generated. Next, an anchoring model is selected from a parametric model template library and a basic task is generated. Then, a controlled physical transformation is determined based on the basic task and a control task is generated to form a candidate verification task set. After that, the evaluation index of each task in the candidate task set is calculated. Finally, under the constraints of hard constraints and optimization objectives, the minimum discriminative verification task group is selected from the candidate verification task set.
[0023] The final output of this method includes a set of verification tasks that can include: executable basic tasks, controlled parameter variation tasks, orientation / symmetry / scale / unit transformation tasks, boundary tasks, unsupported capability injection tasks, and environmental change tasks, as well as transformation variables, frozen variables, expected observations, physical relationships, numerical noise tolerance, and evidence requirements for each task. This method can distinguish between true support, parameter ignoring, result reuse, silent degradation, and explicit lack of support, significantly reducing the number of tasks and computational cost while meeting certification requirements.
[0024] The following section will detail the optional implementation methods for each step of the above method: 1. Obtain the decompilable capability object of the CAE plugin to be verified. First, obtain the capability declaration list of the CAE plugin to be verified, and then transform the capability declaration list to obtain a reverse-compilable capability object.
[0025] Specifically, the capability declaration list of a plugin to be verified is a description of the plugin's claimed functions, usually in the form of documents, configuration files, interface definitions, or user manuals. This capability declaration list records information such as the types of analysis, material models, boundary conditions, load types, output results, and environmental requirements that the plugin claims to support.
[0026] The process of transforming a capability declaration list involves parsing unstructured or semi-structured capability declaration information into standardized structured data objects, i.e., decompiling capability objects. These decompileable capability objects must contain at least the following fields: (1) Capability semantic identifier: A unique identifier for each specific capability supported by the plugin declaration, such as structural static solution, isotropic elastic material, fixed constraint, surface pressure load, tetrahedral mesh generation, etc. (2) Prerequisite capabilities: Other capabilities that must be available before each capability can be executed. For example, structural static solutions depend on mesh generation, material definition, load application, and constraint settings. (3) Parameter domain: The range of legal parameters involved in each capability, including parameter name, parameter type, legal value range, unit, etc.; (4) Output: The type of results that each analysis capability promises to produce, such as displacement field, stress field, reaction force, temperature field, contact pressure, etc.; (5) Physical assumptions: The physical preconditions on which each capability depends, such as the small deformation assumption, linear elasticity assumption, steady state assumption, isotropic assumption, etc. (6) Boundaries: The upper and lower limits of the parameter domain and the definition of out-of-bounds behavior; (7) Environment domain: Information about the runtime environment on which the capability depends, such as operating system version, number of threads, GPU device, license type, etc.; (8) Not supported declaration: The plugin explicitly declares the capabilities that are not supported, such as not supporting plastic materials, not supporting transient analysis, not supporting frictional contact, etc.
[0027] The transformed, recompilable capability object serves as the structured input foundation for all subsequent steps. Through this object, subsequent steps can precisely determine the dependencies, parameter sensitivities, scope of physical assumptions, and verification requirements for each capability.
[0028] 2. Construct a capability dependency graph A capability dependency graph is constructed based on recompilable capability objects. A capability dependency graph is a directed graph structure used to express the logical relationships and dependency constraints between capabilities. For multi-physics capabilities, multi-layer capability dependency graphs can be constructed to verify single-physics capabilities and coupled capabilities separately. Each layer of the capability dependency graph independently generates verification obligations and tasks. Capability dependency graphs can be automatically generated through plugin declarations, or through manual knowledge base configuration, historical execution record mining, or automatic reasoning. Multiple methods can be combined. The specific construction process is as follows: (1) Traverse the decompilable capability objects and identify the relationships between capabilities. Iterate through the capabilities in the decompilable capability object and identify the following relationships between the capabilities: ① Prerequisite dependencies: These indicate that another capability must be available before the target capability can be executed. For example, structural statics solutions depend on mesh generation, material definition, load application, and constraint settings. In other words, the prerequisites for structural statics capability include a volume mesh, elastic material, fixed constraints, and surface pressure.
[0029] ② Combinatorial and synergistic relationship: This indicates that multiple capabilities need to work together in the same task. For example, contact analysis requires both the definition of contact pairs and the nonlinear solution to be involved simultaneously.
[0030] ③ Mutually exclusive relationship: This indicates that the target capability explicitly does not support another capability, and the two cannot appear simultaneously in the same verification task. For example, linear elastic analysis and plastic materials are mutually exclusive; steady-state heat conduction and transient analysis are mutually exclusive.
[0031] ④ Output Dependencies: These indicate the analysis capability's commitment to producing specific results. For example, structural statics solutions produce displacement, stress, and reaction force outputs.
[0032] ⑤ Derivation dependency: This indicates that an observation can be calculated from another output. For example, von Mises stress is derived from the stress tensor; equivalent strain is derived from the strain tensor.
[0033] ⑥ Environment dependency: This indicates that the capability depends on a specific runtime environment. For example, GPU solving depends on the GPU device and its corresponding driver; multithreaded solving depends on the operating system's thread support.
[0034] ⑦ Substitution Relationship: This indicates that any one of the prerequisite capabilities is sufficient to meet the requirements. For example, mesh generation supports tetrahedral or hexahedral meshes, and the two can be used interchangeably.
[0035] (2) Constructing a directed graph structure Using each capability as a node, and the identified prerequisite dependencies, collaborative relationships, mutual exclusion relationships, output dependencies, derived dependencies, environmental dependencies, and substitution relationships as edges, a directed graph structure is constructed. Wherein: The preceding edge points from the dependent capability to the target capability, indicating the execution order; Composite edges connect nodes that require collaborative capabilities. Exclusive edges are represented by special symbols to indicate mutual exclusion constraints; The output edge points from the analytical capability to the result node it promises; Derived edges point from the source output to the derived output; An environmental edge refers to the ability that depends on the environmental condition; Alternate edges connect nodes that can be substituted for each other.
[0036] (3) Topological sorting verification The constructed directed graph structure is topologically sorted and validated to check for cycles. If the validation passes (i.e., no cycles exist), the directed graph structure is determined to be a capability dependency graph. If cycles exist, the causes of conflicts need to be analyzed backtracking, and the capability relationship definitions need to be revised.
[0037] (4) Determine the verification order and minimum preceding subgraph The system determines the verification order based on the preceding edges in the capability dependency graph. For a target capability, the system extracts its smallest preceding subgraph and follows the priority principle: Prioritize the use of pre-built, verified assets on the platform to meet pre-requisite capabilities; If the prerequisite capability already has a valid certificate, then its output is reused as a verified prerequisite. If the prerequisite capability is not verified but participation is required, then a combined obligation is generated and the isolation score of the task is reduced. If the mandatory preconditions cannot be met, no independent verification task will be generated.
[0038] When selecting a verification path, priority should be given to verification paths with fewer prerequisite capabilities, a high proportion of already verified capabilities, and where the target capability has a significant impact on the observations and the non-target capability has a relatively low impact.
[0039] 3. Generate a set of verification obligations A set of verification obligations is generated based on the capability dependency graph, containing multiple verification obligations. A verification obligation is a clearly defined "what the task needs to prove or disprove." Each verification obligation includes information such as obligation type, target capability, target failure mode, required evidence, and priority. The specific generation process is as follows: (1) Positive Existence Obligation Based on the target capabilities and the relationships between them in the capability dependency graph, a positive existence obligation is generated for each core supporting capability. The positive existence obligation requires that, under valid input, the plugin can accept input, the native input includes the target settings, execution is completed, the promised output exists, and the basic physical invariants are satisfied.
[0040] Specifically, the positive existence obligation verifies the following: the plugin does not reject valid input; the plugin's native input file (not just the interface layer) contains the setting information of the target capability; the plugin execution process completes normally without abnormal interruption; the plugin output contains the promised output fields; and the output satisfies basic physical invariants, such as force balance, energy conservation, symmetry, etc.
[0041] (2) Parameter-sensitive obligation For each key variable parameter, a parameter-sensitive obligation is generated. A transformation p'=μ(p) is applied to the key parameter p, requiring at least one observation to undergo the expected change.
[0042] The selection priority of key parameters is determined based on the following factors: the directness of the parameter to the target capability (whether the parameter directly participates in the calculation of the target capability), the sensitivity of the result (the magnitude of the change in the observed quantity caused by the change in the parameter), the clarity of the relationship (whether the physical relationship between the change in the parameter and the change in the observed quantity is clear), the failure discrimination capability (whether it can distinguish whether the parameter is actually effective and whether the parameter is ignored), and the stability of the legal domain (the stability of the system behavior when the parameter changes within the legal domain).
[0043] The target failure modes for parameter-sensitive obligations include: the target parameter is not written to the native input, the parameter is overridden by a fixed default value, and the parameter is incorrectly mapped to an irrelevant field.
[0044] (3) Obligations to apply the boundary Obligations to apply to the boundary generation of the parameter range [a,b] include: Internal value validation: The function works correctly when the parameter takes a value inside a valid field. Validation of valid values near the lower boundary: The function works normally when the parameter takes a value that is close to the lower boundary but is still valid; Validation of valid values near the upper boundary: The function works normally when the parameter takes a value that is close to the upper boundary but is still valid; Out-of-bounds invalid value validation: When a parameter exceeds the valid range, the plugin should correctly reject or report an error, rather than silently correct it.
[0045] Boundary application obligations are used to verify parameter validation mechanisms, numerical stability, and correct rejection behavior.
[0046] (4) Reverse exclusion obligation Generate a reverse exclusion obligation for unsupported or exclusionary edges in the capability dependency graph. The reverse exclusion obligation requires that the task only adds unsupported capabilities, with other conditions remaining unchanged, and the expected plugin explicitly rejects the task.
[0047] The target failure modes for the reverse exclusion obligation include: the plugin returning success after ignoring unsupported parameters, unsupported capabilities being silently deleted or downgraded to a subset of supported capabilities, and the plugin returning a result that appears reasonable but is physically incorrect.
[0048] (5) Competency Interaction Obligation Generate capability interaction obligations for composite capabilities (i.e., capabilities that require multiple capabilities to work together). Select the combination of capabilities that need to be jointly verified based on dependency strength, historical defect records, common inputs and outputs, physical relationships, and computational costs.
[0049] The capability interaction obligation verifies that when multiple capabilities work together in the same task, the interface data transmission between the capabilities is correct, the physical coupling relationship is established, and there is no mutual interference or conflict between the capabilities.
[0050] (6) Environmental conservation obligations Declare an environment maintenance obligation for multiple versions, multiple threads, multiple devices, or multiple operating systems. The environment maintenance obligation requires that when performing the same physical problem under different environmental conditions, the output fields are complete and the physical conclusions are consistent within the tolerance; when the environment does not meet the requirements, the plugin should correctly report the environment incompatibility, rather than silently generating incorrect results.
[0051] 4. Select the anchoring model and generate the basic task. Based on the set of verification obligations, an anchoring model is selected from the parametric model template library, and a basic task is generated based on the anchoring model.
[0052] (1) Parametric model template library The parametric model template library stores multiple parametric model templates. Parametric models can be generated from CAD scripts, mesh templates, finite element input templates, or solver native scripts. Each model template must describe at least the following: ① Geometry Generator: Defines the parametric generation rules for the model's geometry, including geometry type (beam, plate, shell, solid, etc.) and geometry parameters (length, width, height, radius, etc.). ② Mesh requirements: Define mesh type, mesh size, mesh quality requirements, etc.; ③ Parameter set: includes geometric parameters, material parameters, load parameters, mesh parameters, etc., and each parameter has a legal value range; ④ Activate Capability Tags: Indicate which capabilities this template can activate; ⑤ Prerequisite requirements: Specify the prerequisite capabilities that must be met before this template can be executed; ⑥ Observable quantities: Define the physical quantities that can be observed under this template, such as displacement, stress, reaction force, temperature, heat flow, etc. ⑦ Physical Relationships: Define the physical relationships that hold true under this template, such as static equilibrium, load ratio relationships, inverse elastic modulus relationships, and thermal conservation. ⑧ Cost Model: Estimate the execution cost of the template, including expected runtime, memory requirements, license requirements, etc.
[0053] Taking a cantilever beam formwork as an example, this formwork activates linear static solution, isotropic elastic material, fixed constraints, and surface pressure capability; the prerequisite is a volume mesh; geometric parameters include length, width, and height; material parameters include elastic modulus and Poisson's ratio; load parameters include pressure magnitude and direction; mesh parameters include mesh size; observables include end displacement, reaction force, stress field, and strain energy; physical relationships include static equilibrium, load ratio, load direction reversal, and elastic modulus inversely proportional displacement relationship; the cost level is low.
[0054] (2) Screening candidate model templates Based on the target capabilities in the set of verification obligations, candidate model templates are selected from the parametric model template library. Candidate templates must simultaneously meet the following conditions: ① Able to activate target capabilities: The template's activation capability tag contains the target capability; ② Mandatory prerequisite capabilities are available: The prerequisite capabilities required by the template can be met through verified assets or the current verification process; ③ There exists at least one observable that is sensitive to the target capability: a change in the parameters of the target capability can cause a expected change in at least one observable physical quantity; ④ There exists at least one applicable physical criterion or rejection criterion: There exists a physical relationship or rejection condition under the template that can be used to determine the task result; ⑤ The model complexity does not exceed the preset budget: the computational cost of the template is within the resource budget; ⑥ Do not introduce irrelevant high-risk capabilities: The template will not introduce complex couplings or high numerical risks that are unrelated to the target capabilities.
[0055] (3) Overall score The shortlisted candidate model templates are then comprehensively scored. The scoring formula is as follows:
[0056] in: This indicates the observability of the target capability, that is, the degree to which changes in the target capability affect the observables; This indicates the strength of available physical relationships, i.e., the number and reliability of physical relationships in the template that can be used for judgment; This indicates the proportion of verified prerequisite capabilities; This indicates the number of unverified prerequisite capabilities; Indicates the calculation cost; This indicates the risk of numerical instability; to These are the weighting coefficients for each factor.
[0057] (4) Determine the anchoring model The candidate model template with the highest overall score is selected as the anchor model. As the model foundation for the basic task, the quality of the anchor model directly affects the isolation and discriminability of subsequent validation tasks.
[0058] (5) Generate basic tasks A basic task is generated based on the selected anchoring model. The basic task is an executable verification task formed after setting valid parameter values on the anchoring model. The standardized description of the basic task includes complete information such as model geometry definition, mesh definition, material definition, load definition, boundary condition definition, solver settings, result request, and runtime environment.
[0059] The baseline task serves as the benchmark for generating subsequent control tasks. All control tasks are copied from the baseline task and only the target variable is transformed.
[0060] 5. Identify controlled physical transformations and generate control tasks. Based on the basic task, a controlled physical transformation is determined, and a corresponding control task is generated according to the controlled physical transformation, resulting in a candidate verification task set including the basic task and the corresponding control task.
[0061] (1) Selection of controlled physical transformation The controlled physics transformation library stores a variety of transformation operators, which can be provided by predefined rules, automatic generation through symbol derivation, retrieval from engineering knowledge graphs, or manual configuration. Each transformation operator records the target variable, operation type, scaling or mapping rule, applicable conditions, and expected physical relationship.
[0062] Controlled physical transformations must satisfy the following conditions: The target variable is directly related to the target capability; The transformation still satisfies the physical assumptions, or clearly enters the boundary task or the reverse task; Non-target variables remain frozen; The expected output relationship can be calculated; The change magnitude is greater than the numerical noise but does not exceed the legal domain.
[0063] Transformation types include, but are not limited to: ① Scale transformation: When load, heat flux, and source terms are changed by a factor, the expected output changes proportionally or monotonically. For example, if the pressure is multiplied by 2, the expected displacement and stress are also multiplied by 2.
[0064] ② Direction change: Reversing the direction of force, pressure, velocity or heat flow, and the expected vector result direction or sign changes.
[0065] ③ Material parameter transformation: For changes in elastic modulus, thermal conductivity, viscosity, etc., the expected displacement, temperature gradient or resistance should satisfy a scalar or monotonic relationship.
[0066] ④ Geometric symmetry transformation: Mirror the geometry and boundary, and the expected result is that the mirror relationship is satisfied.
[0067] ⑤ Boundary exchange transformation: The boundary conditions at symmetrical positions are interchanged, and the expected output positions are exchanged accordingly.
[0068] ⑥ Unit transformation: Perform unit equivalence transformation on the input, and it is expected that the result will be the same after unifying the units.
[0069] ⑦ Mesh perturbation: By making small changes to the mesh size, the expected conserved quantities remain stable and the convergence trend of the results is reasonable.
[0070] ⑧ Time step transformation: The time step is reduced, and the transient result error or stability is expected to meet expectations.
[0071] ⑨ Environment Changes: Changes to the number of threads, devices, and versions are made, and the expected physical results are consistent within the tolerance.
[0072] ⑩ Capability Injection: Add unsupported material, contact, or analysis types, expecting the plugin to explicitly reject them.
[0073] Parameter out of bounds: The parameter is outside the declared range, and a validation error or boundary error is expected to be returned.
[0074] Each transformation operator records its applicable conditions. For example, the load scaling transformation is only applicable when the linear elasticity, small deformation, geometric mesh, and boundaries are invariant; the thermal conductivity transformation is only applicable under steady-state, isotropic conditions.
[0075] (2) Matching applicable transformation operators Based on the type of the basic task and the semantics of the target capability, suitable transformation operators are matched from a pre-defined transformation operator library. The matching process considers the following factors: What variable parameters are involved in the target capability? Does the physical assumption of the current anchoring model allow for this transformation? Whether the expected physical relationship after the transformation is clear and calculable; Whether the transformed parameters are still within the valid range.
[0076] (3) Verify the applicability conditions of the transformation operator Verify whether the matched transformation operators meet the applicable conditions, which include: ① The transformed target variable is within the valid parameter domain: ensure that the transformation does not cause the parameter to go out of bounds (except for boundary tasks and reverse tasks); ② The transformation satisfies the physical assumptions of the anchoring model: for example, scale transformation requires the model to still be in the linear elastic small deformation range, and material parameter transformation requires the material to still satisfy the isotropic assumption; ③Expected changes in observations are greater than the numerical noise tolerance: Ensure that the changes in observations caused by the transformation are significant enough to be distinguished from numerical computation noise.
[0077] If the verification passes, the transformation operator is determined as a controlled physical transformation. If the verification fails, it is necessary to select another transformation operator or adjust the transformation parameters.
[0078] (4) Generate a control task The following steps are taken to generate a corresponding task based on the controlled physical transformation: ① Copy the normalized description of the basic task. Make a complete copy of the normalized description of the basic task as the initial reference task description. This description contains all field information of the model.
[0079] ② Implement controlled transformations and label frozen variables. Controlled physical transformations were applied to the target variables related to the target capabilities in the initial control task description, and non-target variables were labeled as frozen variables.
[0080] For the basic task and the control task, the variable set is represented as follows: X = ∪ ∪
[0081] in: The target variable is the variable affected by the controlled physical transformation; These are variables that must remain constant, including non-target geometry, mesh, material, load, boundary, solver settings, and runtime environment variables; Fields that are automatically derived from changes in the target variable, such as the total resultant force of external loads, input hash, etc.
[0082] For example, in a load doubling task, the magnitude of the pressure is the objective variable; geometry, mesh, material, constraint region, solver settings, result request, and runtime environment are all frozen; the total resultant force of external loads and the input hash are derived fields.
[0083] ③ Field-level difference comparison. A field-level difference comparison is performed between the transformed initial control task description and the normalized description of the base task. The comparison rule is: if, in the transformed initial control task description, all frozen variables (except the target variable and allowed derived fields) are completely consistent with their corresponding fields in the normalized description of the base task, then the control task meets the controlled difference requirement and can be identified as a control task. If additional changes are found (i.e., unexpected changes occur in the frozen variables), then the task does not meet the controlled difference requirement and cannot be used as a witness for target capability isolation; a new transformation or model needs to be selected.
[0084] (5) Form a set of candidate verification tasks Through the above process, the system generates the following types of candidate verification tasks: ①Basic positive task: Set valid parameters on the anchored model to verify the basic existence of capability; ② Parameter-sensitive task: Implement controlled transformations on key parameters to verify their actual effectiveness; ③ Boundary valid and illegal tasks: Take boundary values or out-of-bounds values for parameters to verify parameter validation and numerical stability; ④ Reverse capability injection task: Inject unsupported capabilities and verify the correct rejection behavior; ⑤ Key capability interaction task: Jointly verify composite capabilities; ⑥ Environmental Change Task: Change the operating environment and verify environmental retention.
[0085] All candidate tasks share the same anchored model and frozen variable set as a basis, with controlled differences only in the target variable.
[0086] 6. Calculate the evaluation index for each task in the candidate task set. Calculate the evaluation metrics for each task in the candidate verification task set. The evaluation metrics include task coverage, target capability isolation, and physical discriminability score.
[0087] (1) Task coverage For each candidate verification task, determine whether the following four conditions are met: ① Whether the target capability is activated: Whether the task model and parameter configuration actually trigger the execution of the target capability; ② Whether observable quantities are generated: Whether observable physical quantities related to the target capability are generated after the task is executed; ③ Whether there are applicable physical criteria: Whether there are physical relationships or rejection conditions in the task that can be used to determine the result; ④ Whether the required evidence is obtained: After the task is executed, whether the original evidence required by the verification obligation can be collected (such as original input hash, original result hash, solution log, etc.).
[0088] Task coverage is calculated based on the above four criteria. Simply executing the relevant capabilities is not considered coverage. A task must simultaneously meet four conditions to be considered to have covered the corresponding verification obligation: activating the target capability, generating observations, having applicable criteria, and obtaining the required primary evidence.
[0089] Task coverage is represented by a coverage matrix, where rows correspond to candidate tasks, columns correspond to verification obligations, and matrix elements indicate whether the task can provide all the evidence required to satisfy the corresponding obligation.
[0090] (2) Target capability isolation The target capability isolation degree evaluates whether the task result can be attributed to the target capability, rather than to the interference of prior capabilities or non-target factors. Isolation degree is composed of the following factors: ① Proportion of Verified Pre-Capabilities: The proportion of pre-capabilities of the target capability that have been verified. The higher the proportion of verified pre-capabilities, the lower the possibility of interference introduced in the pre-capability stage, and the higher the degree of isolation.
[0091] ② Sensitivity of the target capability variable to the observed quantity: The magnitude of the change in the observed quantity caused by the change in the target variable. The higher the sensitivity, the more the change in the observed quantity is contributed by the target capability, and the higher the isolation.
[0092] ③ Completeness of the frozen variable set: Are there any unexpected changes in the frozen variables? The higher the completeness of the frozen variables, the less interference from non-target factors on the results, and the higher the isolation.
[0093] Furthermore, the number of unverified dependencies and the degree of coupling between complex capabilities negatively reduce isolation. The more unverified dependencies and the more complex coupling, the greater the uncertainty in attribution of results, and the lower the isolation.
[0094] Isolation can be calculated using rule scoring, statistical learning, or historical defect models. The formula for calculating isolation is:
[0095] in to These are the weighting coefficients.
[0096] (3) Physical discriminability score Can the physical discriminability assessment task distinguish the following failure modes? The target parameter was not written. The parameter is overridden by a fixed value; The resulting file was incorrectly reused; The output fields come from an old task; The ability to be silently deleted is not supported. The capability is only valid in certain parameter domains; The parsed field is incorrect.
[0097] The physical discriminability score is calculated based on the following factors: ① The ratio of the expected change in the observed quantity caused by the change in the target variable to the numerical noise tolerance: Suppose that the change in the target variable is expected to cause a change in the observed quantity. Numerical noise tolerance is Then the ratio The larger the value, the easier it is for the task to distinguish between parameters being effective and parameters being ignored.
[0098] ② Number of distinguishable failure modes: The more types of failure modes the task can distinguish, the higher its discriminability.
[0099] ③ Completeness of evidence: The more complete the original evidence that the task can collect, the more it can rule out deceptive behaviors such as result reuse, and the higher the discriminability.
[0100] Discriminability can be calculated using rule scoring, statistical learning, or historical defect models. The discriminability scoring formula is:
[0101] in to These are the weighting coefficients. For relationship sensitivity, To differentiate between failure modes, For the sake of completeness of evidence, For dynamic challenge intensity, This is due to numerical noise.
[0102] (4) Dependence on risk and execution cost In addition to the three core evaluation indicators mentioned above, the dependency risk and execution cost of each candidate task are also calculated as a reference for the selection of subsequent task groups.
[0103] Dependency risks include: the number of uncertified prerequisite capabilities, the number of non-target physical processes, nonlinear convergence risk, complex geometry and mesh dependencies, license dependencies, and the sensitivity of the criteria to discrete methods.
[0104] Execution costs are estimated based on the following factors: number of units, degrees of freedom, number of time steps, number of nonlinear iterations, CPU / GPU computation time, peak memory usage, license usage, data transfer volume, and result file size.
[0105] 7. Select the smallest discriminant verification task group Based on the evaluation indicators, preset hard constraints, and optimization objectives of each task, the smallest discriminable verification task group is selected from the candidate verification task set.
[0106] (1) Set hard constraints Hard constraints are the minimum requirements that the task group must meet, including: ① Each objective capability is covered by at least one verification task corresponding to a positive existence obligation: ensuring that there is evidence of existence for each core supporting capability; ② Each key parameter is covered by at least one verification task corresponding to a parameter sensitivity obligation: ensuring that the actual effectiveness of the key parameters is verified; ③ Each unsupported capability is covered by at least one verification task corresponding to a reverse exclusion obligation: ensuring that unsupported capabilities are not silently accepted; ④ Each commitment output is covered by at least one real task: ensure that the output comes from the current execution and is not reused; ⑤ Each composite capability has at least one interactive task: ensuring the correctness of capability collaboration; ⑥ At least one task collects complete native input / output and logs: to ensure a complete chain of evidence; ⑦ Core capabilities cannot rely solely on all unverified prerequisite capabilities: ensure the reliability of verification conclusions; ⑧ The total execution cost does not exceed the preset resource budget: control the certification cost within an acceptable range.
[0107] (2) Optimization solution Under the premise of satisfying hard constraints, based on the evaluation indicators, a subset of tasks is selected from the candidate verification task set with the optimization objectives of minimizing the number of verification tasks and the total execution cost.
[0108] The optimization objective can be expressed as:
[0109] in Let be the decision variable, representing whether the i-th candidate task is selected into the task group. And it satisfies:
[0110] In practice, methods such as integer programming, set covering, constrained programming, genetic algorithms, greedy algorithms, heuristic search, and multi-objective optimization can be used to solve the problem. For solvers with stochastic properties, the same task can be executed multiple times, and statistical distribution relationships are used as criteria, rather than a single deterministic relationship.
[0111] One greedy implementation is to define a task gain function:
[0112] Where S is the set of currently selected tasks. Indicates task Relative to the set of selected tasks The new coverage. In each round, the task with the highest gain that does not violate hard constraints is selected and added to the task group until all necessary obligations are covered.
[0113] (3) Elimination of redundant tasks Redundant tasks covering the same verification obligations are eliminated from the task subset. Specifically, if there are two or more tasks covering the exact same set of verification obligations in the task subset, the task with higher isolation or lower execution cost is retained, and the redundant task is deleted.
[0114] After redundancy elimination, the minimum discriminative verification task group is obtained. This task group has the fewest number of tasks and the lowest execution cost while satisfying all hard constraints. The execution of tasks can adopt a phased execution strategy: for high-cost plugins, low-cost screening tasks can be executed first, and then high-cost tasks can be gradually added based on the screening results to achieve incremental verification.
[0115] 8. Instantiation of dynamic challenge parameters After selecting the smallest discriminable verification task group, the system generates dynamic challenge parameters to prevent plugins from being specifically adapted for fixed cases.
[0116] The dynamic challenge parameters must meet the following constraints: Capability legality constraint: Parameter values must be within the legal range of the capability declaration; Template constructibility constraint: The combination of parameters must be able to generate valid model geometry; Mesh generation constraint: The combination of parameters must be able to generate a valid mesh; Problem non-singularity constraint: The combination of parameters cannot lead to singular problems (such as zero stiffness, zero load, etc.). Criterion applicability constraint: The combination of parameters must meet the applicable conditions of the physical criterion.
[0117] The baseline task and the control task share the same randomized baseline parameters, with only the target variable being transformed. Specifically, the system generates a random seed, samples the baseline parameters based on this seed, and then all control tasks are copied from the baseline task, with only their respective target variables changed.
[0118] For example, for static verification of cantilever beam structures, the system randomly samples the following parameters: The length L is sampled in the range [80, 120]. Width B is sampled within the range of [8, 15]. Height H is sampled in the range [8, 15]. The elastic modulus E was sampled in the range of [70 GPa, 210 GPa]. Poisson's ratio ν is sampled in the range [0.25, 0.35]. Pressure P was sampled within the range of [0.5MPa, 2MPa].
[0119] The load doubling control task uses the same challenge seed and only performs P'=λP, where λ∈[1.5, 2.5].
[0120] With dynamic challenge parameters, the model parameters are different for each verification execution, and the plugin cannot pass the verification by using preset fixed results.
[0121] 9. Description of executable witness tasks In the final output verification task group, each witness task is output in a structured description format, containing the following information: (1) Task Identifier: Unique identifier and task group number; (2) Target capabilities: A list of target capabilities to be verified in this task; (3) Coverage obligations: A list of verification obligations covered by this task; (4) Template information: The model template identifier and version used; (5) Basic task and related task: Mark the basic task number and the related reference task number of this task; (6) Transformation definition: including transformation variables, operators (multiplication, inversion, injection, etc.), multiplication or mapping rules; (7) Frozen Variables List: Lists all categories of variables that must remain unchanged; (8) List of Observations: The observable physical quantities that need to be collected for this task; (9) Expected relationship: including relationship type (proportional, reverse, mirror, conservation, etc.) and specific parameters (such as proportional factor); (10) Evidence requirements: including the original input hash, the original result hash, the solution log, and the extracted observations; (11) Challenge Seed: Random seed and batch information for dynamic challenge parameters.
[0122] The task group description also includes the task execution order, shared assets, a diagram of relationships between tasks, and a summary of evidence requirements.
[0123] The following are application examples of the method of the present invention in several specific scenarios: Example 1: Task group generation in the structural statics solver plugin (1) Acquisition of capability objects A certain CAE plugin claims to support the following capabilities: small deformation linear elastic static analysis, isotropic materials, fixed constraints and surface pressure loads, displacement / stress and reaction force output. It also states that it does not support plastic materials.
[0124] The system converts the declaration into a reverse-compilable capability object, extracting the parameter fields, physical assumptions, output commitments, and environmental requirements of each capability.
[0125] (2) Constructing a capability dependency graph Construct a capability dependency graph based on capability objects: It has been verified that the volume mesh points to the structural statics through the front edge; The elastic material points towards the structural statics through the front edge; Fixed constraints point to structural statics through the front edge; The surface pressure is directed towards the structural statics through the front edge; Structural statics are expressed through the output edges, pointing to displacement, stress, and reaction forces, respectively. Plastic materials are statically connected to the structure through repulsive edges, indicating that the two are mutually exclusive.
[0126] Extract the minimum preceding subgraph for the target capability "structural statics" and determine its preceding capabilities as volume mesh, elastic material, fixed constraints and surface pressure.
[0127] (3) Generate verification obligations The following verification obligations are generated based on the capability dependency graph: O1: The basic structural static capacity exists (positive existence obligation); O2: Pressure value is actually effective (parameter-sensitive obligation); O3: Pressure direction is truly effective (parameter-sensitive obligation); O4: Elastic modulus is actually effective (parameter-sensitive obligation). O5: Displacement, stress, and reaction are derived from this mission (authenticity obligation); O6: Plasticity is correctly rejected (reverse exclusion obligation); O7: Load and reaction force satisfy equilibrium (physical invariant obligation).
[0128] (4) Selecting the anchoring model The system selects a rectangular cantilever model as the anchoring model from the parametric model template library. The reasons for selection are: this model has few prerequisites (only volume mesh is required), can use verified meshes, has clear effects of pressure and material parameters, has physical relationships such as force balance and load ratio, and has low computational cost.
[0129] (5) Generate basic tasks and controlled transformations The basic task T0 is generated based on the anchoring model. Then, the following controlled physical transformations are determined: μ1: Pressure multiplied by 2 (scale transformation); μ2: Pressure direction reversed (direction change); μ3: Elastic modulus multiplied by 2 (material parameter transformation); μ4: Injection of plastic material (energy injection); μ5: The number of threads has been adjusted from 1 to 8 (environment change).
[0130] For each transformation, the applicable conditions are verified as follows: μ1 is applicable under linear elastic small deformation conditions, the pressure after transformation is still within the legal domain, and the expected displacement and stress are both multiplied by 2; μ2 is applicable under linear elastic conditions, and the expected displacement direction is reversed; μ3 is applicable under linear elastic conditions, and the expected displacement is halved; μ4 is a reverse task, and the expected plug-in is rejected; μ5 is an environmental transformation, and the expected physical results are consistent within the tolerance.
[0131] (6) Generate a control task Generate a corresponding control task for each transformation: T1 (Pressure Doubling): Copy T0, only change the pressure P to 2P, freeze geometry, mesh, materials, constraints, solver settings and environment; T2 (Reverse Pressure): Copy T0, only reverse the pressure direction, and freeze the rest of the variables; T3 (elastic modulus doubling): Copy T0, only change the elastic modulus E to 2E, and freeze the other variables; T4 (Plastic Injection): Copy T0, only change the material from elastic to plastic, and freeze the rest of the variables; T5 (Environmental Change): Copy T0, only change the number of threads from 1 to 8, and freeze the rest of the variables.
[0132] Perform field-level difference comparisons for each control task to confirm that there are no additional changes except for the target variable and derived fields.
[0133] (7) Calculate evaluation indicators
[0134] (8) Select the smallest task group When the certification level does not require a cross-thread environment, the hard constraints require that: the structural static capacity has at least one forward task coverage (satisfied by T0), the pressure parameter has at least one sensitive task coverage (satisfied by T1), the elastic modulus has at least one sensitive task coverage (satisfied by T3), and the plasticity does not support at least one reverse task coverage (satisfied by T4).
[0135] Therefore, the smallest discriminant verification task group is: T = {T0, T1, T3, T4}.
[0136] T2 is retained based on whether a separate authentication direction semantic is required, while T5 is added based on the scope of the certificate environment.
[0137] (9) Instantiation of dynamic challenge parameters The system randomly generates cantilever dimensions, elastic modulus, Poisson's ratio, and pressure values. T1, T3, and T4 are all copied from T0, with only the target variable changed, thus ensuring controlled variation. The parameters executed for each verification are different to prevent plugins from requiring specific adaptations.
[0138] Example 2: Generation of contact capability task groups (1) Ability target A certain plugin claims to support: structural static analysis, small-slip frictionless contact, contact pressure output, contact state output, normal load, and fixed constraints. However, it also states that it does not support frictional contact, large-slip contact, and thermal contact.
[0139] The system normalizes the declaration into a contact capability object and establishes a forward edge in the capability dependency graph that "depends on the static structure, contact pair definition, normal load and constraint capability of frictionless contact", while also establishing a rejection edge that "excludes the scope of frictionless contact certificate".
[0140] (2) Verification obligation
[0141] (3) Anchoring model The system selects two block contact models as anchoring models: the bottom surface of the lower block is fixed; the upper block presses down on the lower block under the action of vertical normal load; the contact surface is a nameable plane, which facilitates the collection of contact pressure and contact state; the material is a linear elastic material to avoid introducing plasticity; geometry, mesh, material and constraints are kept frozen between task pairs.
[0142] The model has limited pre-contact capabilities, but there is a clear monotonic relationship between the contact normal load and the contact pressure. The non-contact state can also be constructed by increasing the gap, thus it has high isolation and discriminability.
[0143] (4) Controlled transformation and candidate tasks
[0144] (5) Task evaluation and minimum task group
[0145] At the basic authentication level, the system selects: T = {T0, T1, T3, T4}.
[0146] T0 covers the contact capability existence and output fields, T1 covers normal load sensitivity, T3 covers contact state discriminability, and T4 covers the reverse exclusion obligation. If the plugin declares clearance control capability, then T2 is added.
[0147] Judgment rules: If the plugin in T4 returns success after deleting the friction coefficient, it is judged as silent degradation; if the contact pressure in T1 does not change with the increase of normal load, it is judged that the normal load or contact pressure output is not real.
[0148] Example 3: Steady-state heat conduction plugin task group generation (1) Ability target A certain plugin claims to support: steady-state heat conduction analysis, isotropic thermally conductive materials, isothermal boundaries, heat flux boundaries, temperature field output, boundary heat flux, or total heat output. It also claims to not support transient heat conduction, temperature-dependent thermal conductivity, or negative thermal conductivity.
[0149] The system establishes a combined relationship between steady-state thermal conductivity and material thermal conductivity, isothermal boundary, heat flux boundary and temperature output in the capability dependency graph, and regards transient analysis and nonlinear materials as excluded or unverified capabilities.
[0150] (2) Verification obligation
[0151] (3) Anchoring model The system selects a uniform cuboid as the anchoring model: a constant temperature boundary Tc is set on the left end face; a heat flow q or a high temperature boundary Th is applied to the right end face; the remaining outer surfaces are set with adiabatic conditions; the material is isotropic with a constant thermal conductivity k; and the output temperature field, boundary heat flow, and total heat are displayed.
[0152] The model exhibits a clear one-dimensional dominant heat transfer path. After applying controlled transformations to heat flux, thermal conductivity, and the hot and cold boundary conditions, temperature gradient, heat conservation, and mirror image relationships can all serve as discriminant criteria.
[0153] (4) Controlled transformation and candidate tasks
[0154] (5) Task evaluation and minimum task group
[0155] At the standard authentication level, the system selects: T = {T0, T1, T2, T4}.
[0156] T0 covers the existence of steady-state thermal conductivity, output fields, and heat conservation; T1 covers the sensitivity to heat flux parameters; T2 covers the sensitivity to thermal conductivity; and T4 covers the rejection of illegal material parameters. If it is necessary to verify boundary object binding relationships, add T3; if it is necessary to verify mesh perturbation stability, add T5.
[0157] Judgment rules: If the temperature gradient in T1 does not change with the increase of heat flux, the heat flux parameter is ignored or the result is reused; if the temperature gradient in T2 does not decrease with the increase of thermal conductivity, the thermal conductivity is not included in the original model; if T4 is silently replaced with the default positive thermal conductivity and the solution is successful, the illegal parameter is silently corrected.
[0158] Example 4: Generation of task groups for local size control of mesh plugins (1) Ability target A certain plugin claims to support: 3D solid tetrahedral mesh generation, global mesh size control, local mesh size control for specified faces, local mesh size control for specified regions, and mesh quality report output. It declares that it does not support hexahedral meshes, boundary layer meshes, or zero-size or negative-size input.
[0159] The system takes local size control capability as the target capability, and geometry import, entity recognition, tetrahedral mesh generation and global size control as prerequisite capabilities.
[0160] (2) Verification obligation
[0161] (3) Anchoring model The system selects a solid model containing small holes, rounded corners, and multiple regular surfaces as the anchor model: The geometric body has a target surface that can be stably named. Adjacent face and distal face ; The presence of small holes or narrow features nearby makes the local encryption effect observable; Mesh output retains the region mapping from faces to cells; Both global and local dimensions are within the valid parameter range; Except for the target local dimensions and control surface identifiers, all other geometry, material-independent fields, global dimensions, and runtime environment remain frozen.
[0162] The model can distinguish between three cases: only global dimensions are supported, the entire model is incorrectly encrypted, and local dimension control of specified faces is truly supported.
[0163] (4) Controlled transformation and candidate tasks
[0164] (5) Task evaluation and minimum task group The system calculates the average side length of the target region, the average side length of the non-target region, the number of cells, the proportion of cell types, quality indicators, and task cost for each candidate task. The discriminability of T2 comes from the significant reduction in cell scale near the target surface; the discriminability of T3 comes from the movement of the encrypted region along with the control surface marker; and the discriminability of T4 comes from the explicit rejection of illegal dimensions.
[0165]
[0166] When only local dimensional control is certified, the system selects: T = {T0, T2, T3, T4}.
[0167] T0 provides evidence of the basic mesh and quality report; T2 proves that the local dimensions of the target surface are effective; T3 proves that the local control is correctly bound to the specified surface; and T4 proves that illegal dimensions are rejected. If global dimensioning capability also needs to be certified, then T1 is added; if the certificate covers a multi-threaded environment, then T5 is added.
[0168] Judgment Rules: If only the total number of units increases in T2 while the average side length near the target surface does not decrease significantly, the local size control is deemed ineffective; if all areas in T2 are equally densified, the judgment plugin incorrectly interprets the local size as the global size; if the densified area in T3 remains at [missing information], the judgment is deemed ineffective. If the control object binding is incorrect, and T4 is replaced with the default size and continues to output the mesh, then the illegal parameter is silently corrected.
[0169] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.
[0170] The CAE plugin minimum discriminative verification task group generation system provided in this embodiment of the invention may specifically include: The capability object acquisition module is used to acquire the decompilable capability objects of the CAE plugin to be verified; the decompilable capability objects are obtained by converting the capability declaration list of the plugin to be verified. A capability dependency graph construction module is used to construct a capability dependency graph based on the decompilable capability object, wherein the capability dependency graph contains the capability dependency relationships between various capabilities; The verification obligation generation module is used to generate a set of verification obligations containing multiple verification obligations based on the capability dependency graph; An anchoring model selection module is used to select an anchoring model from the parameterized model template library according to the set of verification obligations, and generate a basic task based on the anchoring model; The candidate verification task generation module is used to determine the controlled physical transformation based on the basic task, generate a reference task corresponding to the basic task according to the controlled physical transformation, and obtain a set of candidate verification tasks including the basic task and the corresponding reference task. The task evaluation index calculation module is used to calculate the evaluation index of each task in the candidate task set. The minimum discriminant verification task group selection module is used to select the minimum discriminant verification task group from the candidate verification task set based on the evaluation indicators of each task, the preset hard constraints and optimization objectives.
[0171] In an optional embodiment of the present invention, the capability dependency graph construction module is used for: Iterate through each capability in the decompileable capability object and identify at least one of the following relationships among the capabilities: prerequisite dependency, compositional collaboration, mutual exclusion, output dependency, derived dependency, environment dependency, and substitution. Using each capability as a node, and the identified prerequisite dependencies, collaborative relationships, mutual exclusion relationships, output dependencies, derived dependencies, environmental dependencies, and substitution relationships as edges, a directed graph structure is constructed. The directed graph structure is topologically sorted and verified. If the verification passes, the directed graph structure is determined to be the capability dependency graph.
[0172] In an optional embodiment of the present invention, the verification obligation generation module is further configured to: Based on the target capabilities and the relationships between the capabilities in the capability dependency graph, at least one of the following is generated: positive existence obligation, parameter-sensitive obligation, boundary application obligation, reverse exclusion obligation, capability interaction obligation, and environment maintenance obligation, forming the verification obligation set.
[0173] In an optional embodiment of the present invention, the anchoring model selection module is further configured to: Based on the target capabilities in the set of verification obligations, candidate model templates that can activate the target capabilities, have observations sensitive to the target capabilities, and whose model complexity does not exceed a preset budget are selected from the parameterized model template library. Each candidate model template is comprehensively scored based on the observability of its target capability, the strength of its available physical relationships, and the status of its prerequisite capabilities. The candidate model template with the highest overall score is selected as the anchor model.
[0174] In an optional embodiment of the present invention, the candidate verification task generation module is further configured to: Based on the type of the basic task and the semantics of the target capability, the appropriate transformation operator is matched from the preset transformation operator library; Verify whether the matched transformation operator meets the applicable conditions, which include the transformed target variable being within the legal parameter domain, the transformation satisfying the physical assumptions of the anchoring model, and the expected change in the observed quantity being greater than the numerical noise tolerance. If the verification passes, the transformation operator is determined as the controlled physical transformation.
[0175] In an optional embodiment of the present invention, the candidate verification task generation module is further configured to: The standardized description of the basic task is copied as the initial reference task description; The controlled physical transformation is used to transform the target variables related to the target capability in the initial control task description, and the non-target variables are marked as frozen variables; A field-level difference comparison is performed between the transformed initial control task description and the normalized description of the basic task. If the frozen variables in the transformed initial control task description are consistent with the non-target variables in the normalized description of the basic task, then the transformed initial control task description is determined as the control task.
[0176] In an optional embodiment of the present invention, the task evaluation index calculation module is further configured to: For each candidate verification task, determine whether the target capability is activated, whether an observation is generated, whether there are applicable physical criteria, and whether the required evidence is obtained. Calculate the task coverage based on the determination results. The target capability isolation degree is calculated based on the pre-capability verification ratio of the target capability, the sensitivity of the target capability variables to the observations, and the completeness of the frozen variable set. The physical discriminability score is calculated based on the ratio of the expected change in the observed value caused by the change in the target variable to the numerical noise tolerance, the number of distinguishable failure modes, and the completeness of evidence. The task coverage, the target capability isolation, and the physical discriminability score are used as the evaluation indicators.
[0177] In an optional embodiment of the present invention, the minimum discriminable verification task group selection module is further configured to: The hard constraints are set, including that each objective capability is covered by at least one verification task corresponding to a positive existence obligation, each key parameter is covered by at least one verification task corresponding to a parameter-sensitive obligation, each unsupported capability is covered by at least one verification task corresponding to a negative exclusion obligation, and the total execution cost does not exceed a preset resource budget. Under the premise of satisfying the hard constraints, and based on the evaluation index, a subset of tasks is selected from the candidate verification task set with the optimization objectives of minimizing the number of verification tasks and minimizing the total execution cost; Redundant tasks covering the same verification obligation are eliminated from the task subset to obtain the minimum discriminable verification task group.
[0178] As the system implementation is basically similar to the method implementation, it is described in a relatively simple way. For relevant details, please refer to the description of the method implementation.
[0179] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0180] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0181] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention are included within the scope of protection of the present invention.
Claims
1. A method for generating a minimum discriminative verification task group for a CAE plugin, characterized in that, The method includes: Obtain the decompilable capability object of the CAE plugin to be verified; the decompilable capability object is obtained by converting the capability declaration list of the plugin to be verified. A capability dependency graph is constructed based on the recompilable capability object, and the capability dependency graph contains the capability dependencies between various capabilities; A set of verification obligations containing multiple verification obligations is generated based on the capability dependency graph; Based on the set of verification obligations, an anchoring model is selected from the parametric model template library, and a basic task is generated based on the anchoring model; Based on the basic task, a controlled physical transformation is determined, and a corresponding control task is generated according to the controlled physical transformation, resulting in a candidate verification task set including the basic task and the corresponding control task. Calculate the evaluation index for each task in the candidate task set; Based on the evaluation indicators, preset hard constraints, and optimization objectives of each task, the smallest discriminable verification task group is selected from the candidate verification task set.
2. The method according to claim 1, characterized in that, Constructing a capability dependency graph based on the recompilable capability object includes: Iterate through each capability in the decompileable capability object and identify at least one of the following relationships among the capabilities: prerequisite dependency, compositional collaboration, mutual exclusion, output dependency, derived dependency, environment dependency, and substitution. Using each capability as a node, and the identified prerequisite dependencies, collaborative relationships, mutual exclusion relationships, output dependencies, derived dependencies, environmental dependencies, and substitution relationships as edges, a directed graph structure is constructed. The directed graph structure is topologically sorted and verified. If the verification passes, the directed graph structure is determined to be the capability dependency graph.
3. The method according to claim 2, characterized in that, Based on the capability dependency graph, a set of verification obligations is generated, which includes multiple verification obligations, including: Based on the target capabilities and the relationships between the capabilities in the capability dependency graph, at least one of the following is generated: positive existence obligation, parameter-sensitive obligation, boundary application obligation, reverse exclusion obligation, capability interaction obligation, and environment maintenance obligation, forming the verification obligation set.
4. The method according to claim 3, characterized in that, Based on the set of verification obligations, anchor models are selected from the parametric model template library, including: Based on the target capabilities in the set of verification obligations, candidate model templates that can activate the target capabilities, have observations sensitive to the target capabilities, and whose model complexity does not exceed a preset budget are selected from the parameterized model template library. Each candidate model template is comprehensively scored based on the observability of its target capability, the strength of its available physical relationships, and the status of its prerequisite capabilities. The candidate model template with the highest overall score is selected as the anchor model.
5. The method according to claim 4, characterized in that, Based on the aforementioned fundamental task, controlled physical transformations are determined, including: Based on the type of the basic task and the semantics of the target capability, the appropriate transformation operator is matched from the preset transformation operator library; Verify whether the matched transformation operator meets the applicable conditions, which include the transformed target variable being within the legal parameter domain, the transformation satisfying the physical assumptions of the anchoring model, and the expected change in the observed quantity being greater than the numerical noise tolerance. If the verification passes, the transformation operator is determined as the controlled physical transformation.
6. The method according to claim 5, characterized in that, Generate a corresponding task based on the controlled physical transformation and the basic task, including: The standardized description of the basic task is copied as the initial reference task description; The controlled physical transformation is used to transform the target variables related to the target capability in the initial control task description, and the non-target variables are marked as frozen variables; A field-level difference comparison is performed between the transformed initial control task description and the normalized description of the basic task. If the frozen variables in the transformed initial control task description are consistent with the non-target variables in the normalized description of the basic task, then the transformed initial control task description is determined as the control task.
7. The method according to claim 6, characterized in that, Calculate the evaluation metrics for each task in the candidate task set, including: For each candidate verification task, determine whether the target capability is activated, whether an observation is generated, whether there are applicable physical criteria, and whether the required evidence is obtained. Calculate the task coverage based on the determination results. The target capability isolation degree is calculated based on the pre-capability verification ratio of the target capability, the sensitivity of the target capability variables to the observations, and the completeness of the frozen variable set. The physical discriminability score is calculated based on the ratio of the expected change in the observed value caused by the change in the target variable to the numerical noise tolerance, the number of distinguishable failure modes, and the completeness of evidence. The task coverage, the target capability isolation, and the physical discriminability score are used as the evaluation indicators.
8. The method according to claim 7, characterized in that, Based on the evaluation metrics, preset hard constraints, and optimization objectives for each task, the smallest discriminable verification task group is selected from the candidate verification task set, including: The hard constraints are set, including that each objective capability is covered by at least one verification task corresponding to a positive existence obligation, each key parameter is covered by at least one verification task corresponding to a parameter-sensitive obligation, each unsupported capability is covered by at least one verification task corresponding to a negative exclusion obligation, and the total execution cost does not exceed a preset resource budget. Under the premise of satisfying the hard constraints, and based on the evaluation index, a subset of tasks is selected from the candidate verification task set with the optimization objectives of minimizing the number of verification tasks and minimizing the total execution cost; Redundant tasks covering the same verification obligation are eliminated from the task subset to obtain the minimum discriminable verification task group.
9. A CAE plugin minimum discriminative verification task group generation system, characterized in that, The system includes: The capability object acquisition module is used to acquire the decompilable capability objects of the CAE plugin to be verified; the decompilable capability objects are obtained by converting the capability declaration list of the plugin to be verified. A capability dependency graph construction module is used to construct a capability dependency graph based on the decompilable capability object, wherein the capability dependency graph contains the capability dependency relationships between various capabilities; The verification obligation generation module is used to generate a set of verification obligations containing multiple verification obligations based on the capability dependency graph; An anchoring model selection module is used to select an anchoring model from the parameterized model template library according to the set of verification obligations, and generate a basic task based on the anchoring model; The candidate verification task generation module is used to determine the controlled physical transformation based on the basic task, generate a reference task corresponding to the basic task according to the controlled physical transformation, and obtain a set of candidate verification tasks including the basic task and the corresponding reference task. The task evaluation index calculation module is used to calculate the evaluation index of each task in the candidate task set. The minimum discriminant verification task group selection module is used to select the minimum discriminant verification task group from the candidate verification task set based on the evaluation indicators of each task, the preset hard constraints and optimization objectives.
10. The system according to claim 9, characterized in that, The capability dependency graph construction module is used for: Iterate through each capability in the decompileable capability object and identify at least one of the following relationships among the capabilities: prerequisite dependency, compositional collaboration, mutual exclusion, output dependency, derived dependency, environment dependency, and substitution. Using each capability as a node, and the identified prerequisite dependencies, collaborative relationships, mutual exclusion relationships, output dependencies, derived dependencies, environmental dependencies, and substitution relationships as edges, a directed graph structure is constructed. The directed graph structure is topologically sorted and verified. If the verification passes, the directed graph structure is determined to be the capability dependency graph.
