Model construction method and device, electronic equipment and storage medium

By releasing and enabling constraints of model elements in the model construction method, a non-standard product model that meets customization needs is generated, the problems of low design efficiency and high cost in the non-standard product design process are solved, and more efficient design and lower costs are achieved.

CN120181950APending Publication Date: 2025-06-20HANGZHOU QUNHE INFORMATION TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510228033.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-27
Publication Date
2025-06-20

AI Technical Summary

Technical Problem

The prior art is difficult to effectively solve the problems of low design efficiency and high cost in the non-standard product design process, especially when it is necessary to meet the personalized needs of users.

Method used

By responding to the constraint release instruction in the model construction method, the model structure information of the constraint to be released is determined, the material number information and parameter values ​​input by the user are received, and the constraint conditions of the model elements are released and enabled based on this information, thereby generating a non-standard product model that meets the customization needs.

Benefits of technology

It improves design efficiency and reduces costs, maintains the linkage of unsolved parameter elements through an asymptotic design method, and allows flexible changes in the resolved parameter elements to meet users' diverse design needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120181950A_ABST
    Figure CN120181950A_ABST
Patent Text Reader

Abstract

The invention provides a model construction method and device, electronic equipment and a storage medium. The method comprises the following steps: in response to a detected constraint condition removal instruction, determining structure information of a first model of which a constraint condition is to be removed; when the structure information is a nested structure, receiving material number information input by a user; based on the material number information, determining constraint conditions allowing to remove each element in the first model; receiving a first parameter value input by a user for a first element in the first model in response to a constraint condition allowing to remove each element of the first model; if the first parameter value does not meet the first constraint condition related to the first element, releasing the first constraint condition, modifying the parameter value of the first element from the second parameter value to the first parameter value, and keeping other constraint conditions in the first model; and obtaining a second model based on the current parameter value of each element in the first model. According to the scheme, diversified design requirements of users can be met, and the design efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a model building method, device, electronic device and storage medium. Background Art

[0002] In commodity production and sales, standard products refer to products with relatively fixed specifications in terms of shape, size, weight, etc. In order to meet the personalized needs of users, there are also non-standard products in actual applications, such as customized products. Non-standard products usually need to be personalized according to the specific needs of users. Currently, the model of standard products can be established through parametric modeling. In parametric modeling, multiple parameters can be set for the parametric model to provide linkage, reference, or calculation of the data model. Modeling technology can be used to perform virtual design and testing before the actual production of the product to optimize the product design. Non-standard products need to meet specific needs, so the design process is more complicated, and there are problems such as low design efficiency and high cost. Summary of the invention

[0003] The present disclosure provides a model building method, device, electronic device and storage medium to solve or alleviate one or more technical problems in the prior art.

[0004] In a first aspect, the present disclosure provides a model building method, comprising:

[0005] In response to detecting a constraint release instruction, determining structural information of a first model of a constraint to be released;

[0006] When the structure information is a nested structure, receive the material number information input by the user;

[0007] Based on the material number information, determining a constraint condition that allows each element in the first model to be released;

[0008] In response to allowing the constraint conditions of each element of the first model to be released, receiving a first parameter value for a first element in the first model input by a user;

[0009] If the first parameter value does not satisfy a first constraint condition associated with the first element, the first constraint condition is released, and the parameter value of the first element is modified from the second parameter value to the first parameter value, while maintaining other constraints in the first model;

[0010] Based on the current parameter values ​​of each element in the first model, a second model is obtained.

[0011] In a second aspect, the present disclosure provides a model building device, comprising:

[0012] A structure determination module, configured to determine the structure information of the first model of the constraint to be released in response to detecting the constraint release instruction;

[0013] The part number receiving module is configured to receive the part number information input by the user when the structure information is a nested structure;

[0014] The first permission release module is configured to determine, based on the part number information, the constraint conditions for allowing the release of each element in the first model;

[0015] The parameter receiving module is configured to, in response to the constraint conditions for allowing the release of each element in the first model, receive the first parameter value input by the user for the first element in the first model;

[0016] The first constraint release module is configured to, if the first parameter value does not satisfy the first constraint condition related to the first element, release the first constraint condition, modify the parameter value of the first element from the second parameter value to the first parameter value, and maintain other constraint conditions in the first model;

[0017] The model determination module is configured to obtain a second model based on the current parameter values of each element in the first model.

[0018] In a third aspect, an electronic device is provided, including:

[0019] At least one processor; and

[0020] A memory communicatively connected to the at least one processor; wherein,

[0021] The memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor is enabled to execute any method in the embodiments of the present disclosure.

[0022] In a fourth aspect, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute any method in the embodiments of the present disclosure.

[0023] In a fifth aspect, a computer program product is provided, including a computer program which, when executed by a processor, implements any method in the embodiments of the present disclosure.

[0024] The beneficial effects of the technical solution provided by the present disclosure at least include:

[0025] By releasing and enabling the constraint conditions of each element in the first model, a non-standard product modeling process that can meet customization requirements is provided, which is beneficial to improving design efficiency and reducing costs. Moreover, the release of the constraint conditions is not all recorded at the beginning when the constraint condition release instruction is detected. Instead, the constraint conditions of each element are first allowed to be released, and then the first constraint condition related to the first element is actually released. Through this asymptotic design, not only the elements without parameter solution maintain linkage, but also the first element with parameter solution can be flexibly changed, which is beneficial to adapting to the diverse design requirements of users and further improving design efficiency.

[0026] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In the drawings, unless otherwise specified, the same reference numerals throughout the several views denote the same or similar components or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments provided in accordance with the present disclosure and should not be regarded as limiting the scope of the present disclosure.

[0028] Figure 1 is a schematic diagram of a model construction method provided by an embodiment of the present disclosure;

[0029] Figure 2 is a schematic diagram of an application example of an embodiment of the present disclosure;

[0030] Figure 3 is a schematic block diagram of a model construction device provided by an embodiment of the present disclosure;

[0031] Figure 4 is a schematic block diagram of a model construction device provided by another embodiment of the present disclosure;

[0032] Figure 5 is a block diagram of an electronic device for implementing the model construction method of the embodiments of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0033] The present disclosure will be described in further detail below with reference to the accompanying drawings. The same reference numerals in the drawings denote components or elements with the same or similar functions. Although various aspects of the embodiments are shown in the drawings, the drawings do not necessarily need to be drawn to scale unless otherwise specified.

[0034] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the main purpose of the present disclosure.

[0035] In order to facilitate understanding of the model building method provided by the embodiment of the present disclosure, the background technology of the embodiment of the present disclosure is explained below. The following related technologies can be arbitrarily combined with the technical solution of the embodiment of the present disclosure as optional solutions, and they all belong to the protection scope of the embodiment of the present disclosure.

[0036] In parametric modeling, different parameters can be set for parametric models to provide linkage, reference, or calculation of data models. In modeling, there can be two types of values: formula values ​​and fixed values. Formula values ​​can be calculated through other reference parameters, and fixed values ​​can be directly determined during modeling. When a model is created using the above parameters, it is a standard product. When it is necessary to break through the constraints of the above parameters, it is a customized product, also known as a non-standard product. However, currently, functions related to customized products are not supported.

[0037] The disclosed embodiment provides a model building method, which provides a non-standard product modeling process that can meet customization needs by releasing and enabling the constraints of each element in the first model, which is conducive to improving design efficiency and reducing costs. In addition, the release of constraints is not all recorded when the start of the constraint release instruction is detected, but first allows the constraints of each element to be released, and then actually releases the first constraint related to the first element. Through this asymptotic design, the unresolved elements are kept in linkage, and the first element of the resolved parameters can be flexibly changed, which is conducive to adapting to the diverse design needs of users and further improving design efficiency.

[0038] Figure 1 A schematic diagram of a model building method provided by an embodiment of the present disclosure is shown. The method can be applied to a model building device, which can be deployed in an electronic device. The electronic device is, for example, a single or multi-machine terminal, server or other processing device. The terminal can be a user equipment (User Equipment, UE) such as a mobile device, a personal digital assistant (Personal Digital Assistant, PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the method can also be implemented by a processor calling computer-readable instructions stored in a memory. For example Figure 1 As shown, the method may include the following steps S110 to S160.

[0039] Step S110: In response to detecting a constraint release instruction, determining structural information of a first model of a constraint to be released.

[0040] Exemplarily, the disclosed embodiments may be applied to a tool platform for product design, in which multiple parameterized models may be displayed to a user, and the user may select a parameterized model as the first model whose constraints are to be released, or the user may upload a parameterized model as the first model whose constraints are to be released in the platform. The user may select to release parameter restrictions on the menu for the first model, or when modifying the parameter value of an element in the first model, the electronic device may detect a constraint release instruction.

[0041] Optionally, in parametric modeling, a parametric model can be obtained by nesting multiple sub-models, for example, a parametric model can be a parametric model of a product such as a screen or a table. Alternatively, a parametric model can be obtained by directly setting the parameter values ​​of each attribute, and the parametric model can be used as a part of the product.

[0042] Accordingly, when the electronic device detects a constraint release instruction, the structural information of the first model can be determined. The structural information of the first model may include a nested structure with multiple sub-models, or an independent structure for directly setting parameter values ​​of various attributes.

[0043] Step S120: When the structure information is a nested structure, receiving the material number information input by the user.

[0044] In an embodiment of the present disclosure, when the structural information of the first model is a nested structure, it can be determined that the first model includes multiple sub-models and is a parametric model of a complex product. Then a pop-up window for filling in material number information can be triggered, and the user can enter the material number information in the pop-up window, and the electronic device can receive the material number information entered by the user.

[0045] Among them, the material number information can also be called the reference material number, which is used to indicate the original standard product to which the non-standard product belongs. That is, when the constraints of the first model are released, the material number information of the first model needs to be recorded. The material number information can be used to accurately restore the first model later.

[0046] Step S130: Based on the material number information, determine the constraint conditions that allow each element in the first model to be released.

[0047] In the disclosed embodiment, after guiding the user to confirm the material number information, the constraints of each element in the first model may be allowed to be released, that is, the user may be allowed to modify the parameter values ​​of each element of the first model and release the constraints of each element of the first model.

[0048] Among them, the elements of the first model can include various sub-models and the attributes in each sub-model, so that the constraint conditions of each sub-model can be allowed to be lifted, and the constraint conditions of the attributes in each sub-model can also be allowed to be lifted. For example, it is possible to allow the lifting of the constraint conditions for attributes such as length and width in the sub-model.

[0049] Step S140: In response to allowing the constraint conditions of the elements of the first model to be lifted, receive the first parameter value input by the user for the first element in the first model.

[0050] Exemplarily, in the case of opening up to the user to modify the parameter values of the elements of the first model, the user can input a parameter value for any one element in the first model, that is, the first parameter value input by the user for the first element. Among them, the first element can be understood as the element for which the constraint conditions (i.e., the parameter restrictions) need to be lifted, and the first parameter value can be understood as the parameter value of the first element in the customized product.

[0051] In one example, the electronic device can display the parameter values of the elements in the first model, the user can input the first parameter value for the first element, and the electronic device can receive the first parameter value input by the user for the first element.

[0052] Step S150: If the first parameter value does not satisfy the first constraint condition related to the first element, then lift the first constraint condition, and modify the parameter value of the first element from the second parameter value to the first parameter value, while maintaining the other constraint conditions in the first model.

[0053] In the embodiments of the present disclosure, the first constraint condition related to the first element can be understood as the parameter restriction for the first element. For example, the first constraint condition can include the value range of the parameter value of the first element. For another example, it includes restricting that the parameter value of the first element needs to satisfy a formula value. In the case where the first parameter value is not a fixed value within the value range, or the first parameter value does not satisfy the formula value, it can be regarded that the first parameter value does not satisfy the first constraint condition related to the first element, the first constraint condition can be lifted, and the parameter value of the first element can be modified according to the first parameter value input by the user, that is, the parameter value of the first element is modified from the original second parameter value to the first parameter value input by the user.

[0054] Optionally, if the first parameter value does not satisfy the first constraint condition related to the first element, the front end can add a mark to the first model and record the information of the currently lifted parameter (i.e., the first parameter value) on the first model, and the above processing process of the front end can be displayed to the user. The specific fields are as follows:

[0055] customMade: The first model has the following parameters

[0056] customMade.cusomized: Whether the parameter restrictions are lifted

[0057] customMade.kadaReleaseFixParams: The parameters for lifting the parameter restrictions (i.e., the first parameter value) and the value at the time of lifting (i.e., the second parameter value); convenient for restoration when re-enabling the parameter restrictions.

[0058] In addition, in the backend construction data, in the modelParamAttr field, an override parameter description can be added. The following is an example:

[0060] {

[0061] "paramName" (i.e., the name of the first element): "W",

[0062] "attrName" (i.e., the type of the first element): "paramTypeId",

[0063] "attrVal" (i.e., the first parameter value): "6",

[0064] "setBizType" (i.e., the business scenario for lifting the parameter restrictions): "kadaReleaseLimit",

[0065] }

[0067] Meanwhile, in the param parameter, override: true can be specified to indicate the lifting of the first constraint condition.

[0068] Step S160: Obtain a second model based on the current parameter values of each element in the first model.

[0069] Exemplarily, the current parameter values of each element may include the first parameter value of the first element and the original parameter values of other elements, so that a customized product (i.e., the second model) can be obtained based on the current parameter values of the above elements.

[0070] According to the above method of the embodiments of the present disclosure, by lifting and enabling the constraint conditions of each element in the first model, a non-standard product modeling process that can meet customization requirements is provided, which is beneficial to improving design efficiency and reducing costs. And the lifting of the constraint conditions is not all recorded at the beginning when the constraint condition lifting instruction is detected. Instead, the constraint conditions of each element are first allowed to be lifted, and then the first constraint condition related to the first element is actually lifted. Through this progressive design, not only the elements without parameter solution maintain linkage, but also the first element with parameter solution can be flexibly changed, which is beneficial to adapting to the diverse design needs of users and further improving design efficiency. ​​

[0071] In some embodiments, the model building method may further include:

[0072] When the structure information is an independent structure, determining the constraint conditions that allow the release of the constraints on each element in the first model.

[0073] In the embodiments of the present disclosure, the structure information of the first model being an independent structure can be understood as that the first model does not include sub-models. A user can set fixed values and / or formula values for each attribute to establish a first model with an independent structure. The first model with an independent structure is not a complex product, such as not a commodity. Therefore, the first model with an independent structure does not have part number information, and the constraints on each element of the first model can be directly allowed to be released.

[0074] Correspondingly, the constraint conditions for each element in the first model may include fixed values and / or formula values for each attribute in the first model.

[0075] According to the above embodiments, the constraints on each element in the first model with an independent structure can be allowed to be released, improving the efficiency of releasing the constraints and further meeting the customization requirements of the model.

[0076] In some embodiments, if the first parameter value does not satisfy the first constraint condition related to the first element, releasing the first constraint condition includes:

[0077] Based on the first constraint condition related to the first element, determining the parameter value range of the first element;

[0078] When the first parameter value is not within the parameter value range of the first element, releasing the first constraint condition.

[0079] In the embodiments of the present disclosure, the parameter value range of the first element can be understood as the range of the fixed value of the first element by the user. When the first parameter value is not within the range of the fixed value of the first element, it can be considered that the design requirement of the user exceeds the limitation of the first constraint condition. Therefore, the first constraint condition can be released.

[0080] For example, if the first constraint condition is the parameter value range of the length of the product, and the range is 500 - 1500 pixels, and the original parameter value of the length of the first model is 1000 pixels, then when the first parameter value input by the user for the length is 2000 pixels, the first parameter value is not within the parameter value range of the first element, and the first constraint condition needs to be released, and the parameter value of the length is modified from 1000 pixels to 2000 pixels.

[0081] For another example, if the first constraint condition is that the sum of the length and the width does not exceed 3000 pixels, when the sum of the first parameter value input by the user for the length and the width exceeds 3000 pixels, it can be considered that the first constraint condition is released, and the parameter value of the length is modified from the original parameter value to the parameter value input by the user.

[0082] According to the above embodiments, when the first parameter value is not within the parameter value range of the first element, the first constraint condition can be lifted. Without the user having to understand each constraint condition and specify a constraint condition, a specific constraint condition can be lifted according to the user's needs, thereby improving the efficiency of lifting the constraint condition and further improving the design efficiency.

[0083] In some embodiments, other constraint conditions in the first model are maintained, including:

[0084] Based on the second constraint condition related to the first parameter value and the first element, calculate the third parameter value of the second element; wherein, the second constraint condition is used to characterize the relationship between the first element and the second element;

[0085] Modify the parameter value of the second element to the third parameter value.

[0086] Exemplarily, when the structure information of the first model is a nested structure, the first element can be a sub-model, and the second constraint condition related to the first element can include the relationship between this sub-model and other sub-models (i.e., the second element).

[0087] Exemplarily, when the structure information of the first model is a nested structure, the first element can also be an attribute in the sub-model, and the second constraint condition related to the first element can include the relationship between this attribute in the sub-model and other attributes (i.e., the second element).

[0088] Exemplarily, when the structure information of the first model is an independent structure, the first element can be an attribute in the first model, and the second constraint condition related to the first element can include the relationship between this attribute and other attributes (i.e., the second element).

[0089] Optionally, the number of second elements can be multiple, and the third parameter value of each second element can be calculated respectively based on the second constraint condition related to the first parameter value and the first element.

[0090] In one embodiment, if the third parameter value does not meet the third constraint condition related to the second element, then the third constraint condition is lifted, and the parameter value of the second element is modified to the third parameter value. Further, the parameter value range of the second element can be determined based on the third constraint condition related to the second element. When the third parameter value is not within the parameter value range of the second element, the third constraint condition is lifted, and the parameter value of the second element is modified to the third parameter value.

[0091] According to the above embodiments, through the second constraint condition related to the first parameter value and the first element, the parameter value of the second element can be adaptively modified, and the constraint condition of the second element can be released. Without the user having to understand each constraint condition and specify the constraint condition, the constraint condition of the second element can be released according to the user's needs, thereby improving the efficiency of releasing the constraint condition, further improving the design efficiency, and at the same time further meeting the customization requirements of the model.

[0092] In some embodiments, the model construction method may further include:

[0093] In response to receiving a fourth parameter value input by the user for the second element, release the second constraint condition and modify the parameter value of the second element to the fourth parameter value.

[0094] In the embodiments of the present disclosure, the user can input a fourth parameter value for the second element, and the electronic device can modify the parameter value of the second element to the fourth parameter value, releasing the constraint relationship between the first element and the second element.

[0095] Exemplarily, when the structure information of the first model is a nested structure, the constraint relationship between sub-models can be released, and the constraint relationship between attributes in the sub-model can also be released.

[0096] Exemplarily, when the structure information of the first model is an independent structure, the constraint relationship between attributes in the first model can be released.

[0097] In one embodiment, if the fourth parameter value does not meet the third constraint condition related to the second element, release the third constraint condition and modify the parameter value of the second element to the fourth parameter value. Further, based on the third constraint condition related to the second element, the parameter value range of the second element can be determined. When the fourth parameter value is not within the parameter value range of the second element, release the third constraint condition and modify the parameter value of the second element to the fourth parameter value.

[0098] According to the above embodiments, by modifying the parameter value of the second element to the fourth parameter value input by the user, the user is supported to customize and modify the parameter value of the second element, thereby releasing the constraint relationship between the first element and the second element, and further meeting the customization requirements of the model.

[0099] In some embodiments, the model construction method may further include:

[0100] When the first constraint condition is released, store the second parameter value of the first element;

[0101] In response to restoring the constraint conditions of each element in the first model, restore the first model based on the second parameter value of the first element.

[0102] In the embodiments of the present disclosure, when the first constraint condition is released, the second parameter value of the first element can be pre-stored, so that when it is necessary to restore the constraint conditions of each element in the first model subsequently, the first model can be restored based on the second parameter value of the first element.

[0103] Optionally, when the second constraint condition related to the first element is released, the second constraint condition related to the first element can be restored based on the second parameter value of the first element, so that the first model can be restored based on the second constraint condition related to the first element.

[0104] In one embodiment, when the constraint condition of the second element is released, the parameter value of the second element can be stored. In response to restoring the constraint conditions of each element in the first model, the first model can be restored based on the second parameter value of the first element and the parameter value of the second element.

[0105] According to the above embodiments, when the parameter limit is released, the state before the parameter release is recorded. When the parameter limit is restarted subsequently, the parameter values of each element in the first model can be restored, which can avoid the situation that the restored parameter values still remain in the over-limit state, and there is no need to rely on the collaborative activation of the parameter correction function, reducing the mental burden of the user.

[0106] To more clearly understand the technical solutions of the embodiments of the present disclosure, a specific application example is provided below. Figure 2 shows a schematic flowchart of a model construction method, as Figure 2 shown, the model construction method includes the following multiple processing procedures:

[0107] Step S210: For the standard product (i.e., the first model), the user selects a parametric model.

[0108] Step S220: Trigger the function of releasing the parameter limit; the user can directly select to release the parameter limit on the menu, or passively release the parameters when modifying the model parameters, that is, when a constraint condition release instruction is detected, trigger the function of releasing the parameter limit.

[0109] Step S230: Determine whether it is a commodity, that is, the commodity is the first model with a nested structure, otherwise the first model is a non-commodity. When the first model is a commodity, step S240 is executed, or when the first model is a non-commodity, step S250 is executed.

[0110] Step S240: Pop-up layer guidance, input part number information; that is, when the current first model is a commodity and there is business attribute part number information, a pop-up window for filling in the customized part number will be triggered, and the user must complete the filling of the part number before further releasing the parameter limit.

[0111] Step S260: Write the parameter restriction release flag in biz and record the parameter information for which the restriction is released. In this step, information for releasing the parameter restriction will be automatically added to the model, specifically including: the parameter restriction release flag field customMade and the specific parameter information for which the restriction is released.

[0112] Step S270: Update the parameter Param and force the foreground value to overwrite the calculated value.

[0113] Step S280: Complete parameter release; that is, release the parameter restriction to construct a model, obtain a second model, and store the data for subsequent processes to consume this data.

[0114] It can be seen that for the model construction method provided in the embodiments of the present disclosure, first, through the release and enabling of model constraint relationships, a non-standard product modeling process that can meet customization requirements is provided, which is beneficial to improving design efficiency and reducing costs. Second, when releasing the parameter restrictions, the state of the parameters before release is recorded, and when the parameter restrictions are restarted subsequently, the parameters can be restored, reducing the burden on users. Finally, the release of the constraint conditions is not all recorded at the beginning when a constraint condition release instruction is detected. Instead, the constraint conditions of each element are first allowed to be released, and then the first constraint condition related to the first element is actually released. Through this asymptotic design, not only the elements without parameter release maintain linkage, but also the first element with parameter release can be flexibly changed, which is beneficial to adapting to the diverse design requirements of users and further improving design efficiency.

[0115] According to the embodiments of the present disclosure, the present disclosure also provides a model construction device. Figure 3 The schematic block diagram of the model construction device provided by an embodiment of the present disclosure is shown, as Figure 3 shown, the model construction device includes:

[0116] A structure determination module 310, configured to determine the structure information of the first model for which the constraint condition is to be released in response to detecting a constraint condition release instruction.

[0117] A part number receiving module 320, configured to receive the part number information input by the user when the structure information is a nested structure.

[0118] A first allow release module 330, configured to determine that the constraint conditions of each element in the first model are allowed to be released based on the part number information.

[0119] A parameter receiving module 340, configured to receive the first parameter value for the first element in the first model input by the user in response to allowing the constraint conditions of each element in the first model to be released.

[0120] The first constraint release module 350 is configured to, if the first parameter value does not satisfy the first constraint condition related to the first element, release the first constraint condition, modify the parameter value of the first element from the second parameter value to the first parameter value, and maintain other constraint conditions in the first model;

[0121] The model determination module 360 is configured to obtain a second model based on the current parameter values of the respective elements in the first model.

[0122] In some embodiments, the first constraint release module 350 is specifically configured to:

[0123] Determine the parameter value range of the first element based on the first constraint condition related to the first element;

[0124] When the first parameter value is not within the parameter value range of the first element, release the first constraint condition.

[0125] In some embodiments, the first constraint release module 350 is specifically configured to:

[0126] Calculate a third parameter value of a second element based on the first parameter value and a second constraint condition related to the first element; wherein the second constraint condition is used to characterize the relationship between the first element and the second element;

[0127] Modify the parameter value of the second element to the third parameter value.

[0128] In some embodiments, as Figure 4 shown, the model construction device may further include a second constraint release module 410, and the second constraint release module 410 is configured to:

[0129] In response to receiving a fourth parameter value of the second element input by the user, release the second constraint condition and modify the parameter value of the second element to the fourth parameter value.

[0130] In some embodiments, as Figure 4 shown, the model construction device may further include a model restoration module 420, and the model restoration module 420 is configured to:

[0131] When the first constraint condition is released, store the second parameter value of the first element;

[0132] In response to restoring the constraint conditions of the respective elements in the first model, restore the first model based on the second parameter value of the first element.

[0133] In some embodiments, as Figure 4 shown, the model construction device may further include a second permission release module 430, and the second permission release module 430 is configured to:

[0134] When the structural information is an independent structure, determine the constraint conditions that allow the constraints of each element in the first model to be released.

[0135] For the specific functions and examples of each module and sub-module of the device according to the embodiments of the present disclosure, reference may be made to the relevant descriptions of the corresponding steps in the above method embodiments, which will not be elaborated here.

[0136] In the technical solution of the present disclosure, the acquisition, storage, and application of the user's personal information involved all comply with the provisions of relevant laws and regulations and do not violate public order and good customs.

[0137] Figure 5 It is a structural block diagram of an electronic device according to an embodiment of the present disclosure. As Figure 5 shown, the electronic device includes: a memory 510 and a processor 520. The memory 510 stores a computer program that can run on the processor 520. The number of the memory 510 and the processor 520 can be one or more. The memory 510 can store one or more computer programs. When the one or more computer programs are executed by the electronic device, the electronic device executes the method provided in the above method embodiments. The electronic device may further include: a communication interface 530, configured to communicate with external devices and perform data interaction and transmission.

[0138] If the memory 510, the processor 520, and the communication interface 530 are independently implemented, the memory 510, the processor 520, and the communication interface 530 can be interconnected through a bus and complete communication with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of simplicity of representation, Figure 5 only a thick line is shown in the figure, but it does not mean that there is only one bus or one type of bus.

[0139] Optionally, in a specific implementation, if the memory 510, the processor 520, and the communication interface 530 are integrated on a chip, the memory 510, the processor 520, and the communication interface 530 can complete communication with each other through an internal interface.

[0140] It should be understood that the above-mentioned processor can be a Central Processing Unit (CPU), or other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor, etc. It is worth noting that the processor can be a processor that supports the Advanced RISC Machines (ARM) architecture.

[0141] Furthermore, optionally, the above-mentioned memory can include a read-only memory and a random access memory, and can also include a non-volatile random access memory. The memory can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can include a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory can include a Random Access Memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Date SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct RAMBUS RAM (DR RAM).

[0142] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present disclosure are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center in a wired manner (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or a wireless manner (such as infrared, Bluetooth, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer, or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a Digital Versatile Disc (DVD)), or a semiconductor medium (such as a Solid State Disk (SSD)), etc. It should be noted that the computer-readable storage medium mentioned in the present disclosure can be a non-volatile storage medium, in other words, it can be a non-transitory storage medium.

[0143] Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, or can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable storage medium, and the storage medium mentioned above can be a read-only memory, a magnetic disk, an optical disc, etc.

[0144] In the description of the embodiments of the present disclosure, the descriptions referring to terms such as "one embodiment", "some embodiments", "example", "specific example", or "some examples" mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present disclosure. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples.

[0145] In the description of the embodiments of the present disclosure, unless otherwise specified, " / " means "or". For example, A / B may mean A or B. "And / or" herein is merely a description of the relationship between associated objects, indicating that there can be three relationships. For example, A and / or B may mean: A exists alone, A and B exist simultaneously, and B exists alone.

[0146] In the description of the embodiments of the present disclosure, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of the present disclosure, unless otherwise specified, "a plurality of" means two or more.

[0147] The above are only exemplary embodiments of the present disclosure and are not intended to limit the present disclosure. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present disclosure shall be included within the protection scope of the present disclosure.

Claims

1. A model building method, characterized in that: include: In response to detecting a constraint release instruction, determining structural information of a first model of a constraint to be released; When the structure information is a nested structure, receiving material number information input by a user; Based on the material number information, determining a constraint condition that allows each element in the first model to be released; In response to allowing the constraint conditions of each element of the first model to be released, receiving a first parameter value for a first element in the first model input by a user; If the first parameter value does not satisfy a first constraint condition related to the first element, the first constraint condition is released, and the parameter value of the first element is modified from a second parameter value to the first parameter value, while maintaining other constraints in the first model; A second model is obtained based on the current parameter values ​​of each element in the first model.

2. The method according to claim 1, characterized in that If the first parameter value does not satisfy a first constraint condition related to the first element, releasing the first constraint condition includes: Determining a parameter value range of the first element based on a first constraint condition related to the first element; When the first parameter value is not within the parameter value range of the first element, the first constraint condition is released.

3. The method according to claim 1, characterized in that The other constraints in the first model are maintained, including: Calculating a third parameter value of a second element based on the first parameter value and a second constraint condition related to the first element; wherein the second constraint condition is used to characterize the relationship between the first element and the second element; The parameter value of the second element is modified to the third parameter value.

4. The method according to claim 3, characterized in that Also includes: In response to receiving a fourth parameter value for the second element input by the user, the second constraint condition is released, and the parameter value of the second element is modified to the fourth parameter value.

5. The method according to any one of claims 1 to 4, characterized in that Also includes: When the first constraint condition is released, storing a second parameter value of the first element; In response to restoring the constraint conditions of each element in the first model, the first model is restored based on the second parameter value of the first element.

6. The method according to claim 1, characterized in that Also includes: When the structural information is an independent structure, determining a constraint condition that allows each element in the first model to be released.

7. A model building device, characterized in that: include: A structure determination module, configured to determine the structure information of the first model of the constraint to be released in response to detecting the constraint release instruction; A material number receiving module, used for receiving material number information input by a user when the structure information is a nested structure; A first release permission module, used for determining, based on the material number information, a constraint condition for allowing release of each element in the first model; a parameter receiving module, configured to receive a first parameter value for a first element in the first model input by a user in response to allowing the constraint conditions of each element in the first model to be released; a first constraint release module, configured to release a first constraint condition related to the first element if the first parameter value does not satisfy the first constraint condition, and modify the parameter value of the first element from the second parameter value to the first parameter value, while maintaining other constraints in the first model; The model determination module is used to obtain a second model based on the current parameter values ​​of each element in the first model.

8. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.

9. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-6.