CN118411254A - Resource allocation method and device, electronic equipment and computer readable storage medium - Google Patents
Resource allocation method and device, electronic equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN118411254A CN118411254A CN202410538348.XA CN202410538348A CN118411254A CN 118411254 A CN118411254 A CN 118411254A CN 202410538348 A CN202410538348 A CN 202410538348A CN 118411254 A CN118411254 A CN 118411254A
- Authority
- CN
- China
- Prior art keywords
- resource
- sub
- usage information
- units
- resource usage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/06—Asset management; Financial planning or analysis
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Finance (AREA)
- Accounting & Taxation (AREA)
- Development Economics (AREA)
- Operations Research (AREA)
- Game Theory and Decision Science (AREA)
- Human Resources & Organizations (AREA)
- Entrepreneurship & Innovation (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present disclosure provides a resource allocation method and apparatus, an electronic device, and a computer-readable storage medium, which can be applied to the fields of computer technology, information processing technology, and financial science and technology. The resource allocation method comprises the following steps: in response to receiving the resource allocation request, acquiring first resource usage information and second resource usage information according to a resource mapping identifier indicated by the resource allocation request; according to the first resource use information and the resource allocation weights of the M units, determining updated first sub-resource use information of the M units, wherein M is a positive integer; determining updated second sub-resource usage information of each of the M units according to the second resource usage information and the updated first sub-resource usage information of each of the M units; and determining a resource allocation result according to the updated first sub-resource usage information and the updated second sub-resource usage information of each of the M units.
Description
Technical Field
The present disclosure relates to the fields of computer technology, information processing technology, and financial science and technology, and more particularly, to a resource allocation method and apparatus, an electronic device, a computer-readable storage medium, and a computer program product.
Background
With the development of computer technology, account management services for resources may be implemented based on computer technology. The account management service for the resource can refer to that an account manager accepts the delegation of a resource plan delegate to record and process relevant information of the resource allocation service.
In one example, account management services may include account management, which includes the processing of various types of specific services, and information services, which include providing relevant information to customers and authorities based on the processing of the services. For example, the account management service may include a resource configuration service. Resource allocation may refer to the process of converting and configuring historical stock resources between different combinations of resources.
In the process of implementing the disclosed concept, the inventor finds that at least the following problems exist in the related art: the adaptability of the resource allocation mode is low, and the accuracy of the resource allocation is difficult to be effectively ensured.
Disclosure of Invention
In view of this, the present disclosure provides a resource allocation method and apparatus, an electronic device, a computer-readable storage medium, and a computer program product.
According to one aspect of the present disclosure, there is provided a resource allocation method including: in response to receiving a resource allocation request, acquiring first resource usage information and second resource usage information according to a resource mapping identifier indicated by the resource allocation request; determining updated first sub-resource usage information of each of the M units according to the first resource usage information and the resource allocation weight of each of the M units, wherein M is a positive integer; determining updated second sub-resource usage information of each of the M units according to the second resource usage information and the updated first sub-resource usage information of each of the M units; and determining a resource allocation result according to the updated first sub-resource usage information and the updated second sub-resource usage information of each of the M units.
According to an embodiment of the present disclosure, the determining the updated first sub-resource usage information of each of the M units according to the first resource usage information and the resource allocation weight of each of the M units includes: determining first sub-resource usage information of each of the M units according to the first resource usage information and the resource allocation weight of each of the M units; and determining updated first sub-resource usage information for each of the M units according to the first resource usage information and the first sub-resource usage information for each of the M units.
According to an embodiment of the present disclosure, the determining the updated first sub-resource usage information of each of the M units according to the first resource usage information and the first sub-resource usage information of each of the M units includes: accumulating the first sub-resource usage information of each of the M units to obtain first resource configuration information; determining a first difference value according to the first resource usage information and the first resource configuration information; in response to the first difference not meeting a first predetermined condition, arranging the M units according to the M pieces of first sub-resource usage information to obtain a first unit sequence, wherein the first unit sequence comprises M units arranged from large to small according to the first sub-resource usage information; and determining updated first sub-resource usage information of each of the M units according to the first difference and the first unit sequence.
According to an embodiment of the present disclosure, the determining the updated second sub-resource usage information of each of the M units according to the second resource usage information and the updated first sub-resource usage information of each of the M units includes: determining second sub-resource usage information of each of the M units according to the second resource usage information and the updated first sub-resource usage information of each of the M units; and determining updated second sub-resource usage information for each of the M units based on the second resource usage information and the second sub-resource usage information for each of the M units.
According to an embodiment of the present disclosure, the determining the updated second sub-resource usage information of each of the M units according to the second resource usage information and the second sub-resource usage information of each of the M units includes: accumulating the second sub-resource usage information of each of the M units to obtain second resource configuration information; determining a second difference value according to the second resource usage information and the second resource configuration information; and determining the second sub-resource usage information of each of the M units as updated second sub-resource usage information of each of the M units, when the second difference satisfies a second predetermined condition.
According to an embodiment of the present disclosure, in a case where the second difference value does not satisfy the second predetermined condition, the method further includes repeatedly performing the following operation until the second difference value satisfies the second predetermined condition: arranging the M units according to the M pieces of second sub-resource use information to obtain a second unit sequence, wherein the second unit sequence comprises M units arranged from large to small according to the second sub-resource use information; determining intermediate second sub-resource usage information of each of the M units according to the second difference and the second unit sequence; and re-determining the second difference value according to the second resource usage information and the intermediate second sub-resource usage information of each of the M units.
According to an embodiment of the present disclosure, determining the resource allocation result according to the updated first sub-resource usage information and the updated second sub-resource usage information of each of the M units includes: determining the source object share of each of the M units according to the first reference resource information and the updated first sub-resource usage information of each of the M units; determining target object shares of each of the M units according to second reference resource information and updated second sub-resource usage information of each of the M units; and determining a resource configuration result according to the source object share and the target object share of each of the M units.
According to an embodiment of the present disclosure, before the obtaining the first resource usage information and the second resource usage information according to the resource mapping identifier indicated by the resource configuration request in response to receiving the resource configuration request, the method further includes: responding to a received resource mapping construction request, and constructing candidate resource mapping according to a candidate source object identifier and a candidate target object identifier indicated by the resource mapping construction request; and storing the candidate resource mapping and the candidate resource mapping identification corresponding to the candidate resource mapping in a data source in an associated manner.
According to an embodiment of the present disclosure, the obtaining, in response to receiving a resource configuration request, first resource usage information and second resource usage information according to a resource mapping identifier indicated by the resource configuration request includes: in response to receiving the resource allocation request, determining a resource mapping according to the resource mapping identifier and at least one candidate resource mapping identifier, wherein the resource mapping comprises a source object identifier and a target object identifier; and acquiring the first resource usage information corresponding to the source object identifier and the second resource usage information corresponding to the target object identifier.
According to another aspect of the present disclosure, there is provided a resource allocation apparatus including: the acquisition module is used for responding to the received resource configuration request and acquiring first resource use information and second resource use information according to the resource mapping identification indicated by the resource configuration request; a first determining module, configured to determine updated first sub-resource usage information of each of the M units according to the first resource usage information and a resource allocation weight of each of the M units, where M is a positive integer; a second determining module, configured to determine updated second sub-resource usage information of each of the M units according to the second resource usage information and the updated first sub-resource usage information of each of the M units; and a third determining module, configured to determine a resource configuration result according to the updated first sub-resource usage information and the updated second sub-resource usage information of each of the M units.
According to another aspect of the present disclosure, there is provided an electronic device including: one or more processors; and a memory for storing one or more instructions that, when executed by the one or more processors, cause the one or more processors to implement a method as described in the present disclosure.
According to another aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to implement a method as described in the present disclosure.
According to another aspect of the present disclosure, there is provided a computer program product comprising computer executable instructions which, when executed, are adapted to carry out the method as described in the present disclosure.
According to the embodiment of the disclosure, the resource use information of different objects is obtained according to the resource mapping identification indicated by the resource allocation request, so that a data basis is provided for subsequent resource allocation. Because the updated first sub-resource usage information is determined according to the first resource usage information and the resource allocation weight, the updated second sub-resource usage information is determined according to the second resource usage information and the updated first sub-resource usage information, thereby comprehensively considering the association relationship among different resources and providing more comprehensive consideration for subsequent resource allocation. On the basis, the resource allocation result is determined according to the updated first sub-resource use information and the updated second sub-resource use information of each unit, so that the dynamic allocation of the resources is realized, the technical problems that the adaptability of the resource allocation mode in the related technology is low, the accuracy of the resource allocation is difficult to ensure effectively are at least partially overcome, the reasonable allocation and utilization of the resources are ensured, and the efficiency and the accuracy of the resource allocation are improved.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments thereof with reference to the accompanying drawings in which:
FIG. 1 schematically illustrates a system architecture in which a resource allocation method may be applied according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a resource allocation method according to an embodiment of the disclosure;
fig. 3 schematically illustrates an example schematic diagram of a process of obtaining updated first sub-resource usage information for each of M units according to an embodiment of the present disclosure;
fig. 4 schematically illustrates an example schematic diagram of a process of obtaining updated second sub-resource usage information for each of M units according to an embodiment of the present disclosure;
FIG. 5 schematically illustrates an example schematic diagram of a process of obtaining resource configuration results, according to an embodiment of the disclosure;
FIG. 6 schematically illustrates an example schematic diagram of a resource allocation process according to an embodiment of the disclosure;
FIG. 7 schematically illustrates a block diagram of a resource allocation apparatus according to an embodiment of the disclosure; and
Fig. 8 schematically illustrates a block diagram of an electronic device adapted to implement a resource allocation method according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a convention should be interpreted in accordance with the meaning of one of skill in the art having generally understood the convention (e.g., "a system having at least one of A, B and C" would include, but not be limited to, systems having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
In the technical scheme of the invention, the related user information (including but not limited to user personal information, user image information, user equipment information, such as position information and the like) and data (including but not limited to data for analysis, stored data, displayed data and the like) are information and data authorized by a user or fully authorized by all parties, and the related data are collected, stored, used, processed, transmitted, provided, disclosed, applied and the like, all comply with related laws and regulations and standards, necessary security measures are adopted, no prejudice to the public order is provided, and corresponding operation entries are provided for the user to select authorization or rejection.
In the scenario of using personal information to make an automated decision, the method, the device and the system provided by the embodiment of the invention provide corresponding operation inlets for users, so that the users can choose to agree or reject the automated decision result; if the user selects refusal, the expert decision flow is entered. The expression "automated decision" here refers to an activity of automatically analyzing, assessing the behavioral habits, hobbies or economic, health, credit status of an individual, etc. by means of a computer program, and making a decision. The expression "expert decision" here refers to an activity of making a decision by a person who is specializing in a certain field of work, has specialized experience, knowledge and skills and reaches a certain level of expertise.
The resource may refer to an enterprise annuity. The account management business aiming at the resource is that an account manager receives the delegation of a resource plan delegate and records and processes the relevant information of the resource allocation business. The account management service comprises account management and information service, wherein the account management comprises the processing of various specific services, and the information service comprises the step of providing relevant information for clients and management institutions on the basis of service processing.
In one example, the resource allocation generally only supports a scaled-up scenario, but due to special requirements of some enterprises, the resource allocation manner in the related art has difficulty in ensuring the adaptability and accuracy of the resource allocation more effectively.
In order to at least partially solve the technical problems existing in the related art, the present disclosure provides a resource allocation method including: in response to receiving the resource allocation request, acquiring first resource usage information and second resource usage information according to a resource mapping identifier indicated by the resource allocation request; according to the first resource use information and the resource allocation weights of the M units, determining updated first sub-resource use information of the M units, wherein M is a positive integer; determining updated second sub-resource usage information of each of the M units according to the second resource usage information and the updated first sub-resource usage information of each of the M units; and determining a resource allocation result according to the updated first sub-resource usage information and the updated second sub-resource usage information of each of the M units. The disclosure also provides a resource allocation apparatus, an electronic device and a computer readable storage medium.
It should be noted that, the resource allocation method and the device provided by the embodiments of the present disclosure may be used in the field of computer technology, for example, in the field of information processing technology. The resource allocation method and the resource allocation device provided by the embodiment of the disclosure can be applied to any field except the fields of computer technology and information processing technology, for example, the field of financial science and technology. The application fields of the resource allocation method and the device provided by the embodiment of the disclosure are not limited.
Fig. 1 schematically illustrates a system architecture to which a resource allocation method may be applied according to an embodiment of the present disclosure. It should be noted that fig. 1 is only an example of a system architecture to which embodiments of the present disclosure may be applied to assist those skilled in the art in understanding the technical content of the present disclosure, but does not mean that embodiments of the present disclosure may not be used in other devices, systems, environments, or scenarios.
As shown in fig. 1, a system architecture 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is a medium used to provide a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 through the network 104 using at least one of the first terminal device 101, the second terminal device 102, the third terminal device 103, to receive or send messages, etc. Various communication client applications, such as a shopping class application, a web browser application, a search class application, an instant messaging tool, a mailbox client, social platform software, etc. (by way of example only) may be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103.
The first terminal device 101, the second terminal device 102, the third terminal device 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (by way of example only) providing support for websites browsed by the user using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process the received data such as the user request, and feed back the processing result (e.g., the web page, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that, the resource allocation method provided by the embodiments of the present disclosure may be generally performed by the server 105. Accordingly, the resource allocation apparatus provided by the embodiments of the present disclosure may be generally disposed in the server 105. The resource allocation method provided by the embodiments of the present disclosure may also be performed by a server or a server cluster that is different from the server 105 and is capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and/or the server 105. Accordingly, the resource allocation apparatus provided by the embodiments of the present disclosure may also be provided in a server or a server cluster that is different from the server 105 and is capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103 and/or the server 105.
Alternatively, the resource allocation method provided by the embodiment of the present disclosure may also be performed by the first terminal device 101, the second terminal device 102, or the third terminal device 103, or may also be performed by other terminal devices different from the first terminal device 101, the second terminal device 102, or the third terminal device 103. Accordingly, the resource allocation apparatus provided by the embodiments of the present disclosure may also be provided in the first terminal device 101, the second terminal device 102, or the third terminal device 103, or in other terminal devices different from the first terminal device 101, the second terminal device 102, or the third terminal device 103.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
It should be noted that the sequence numbers of the respective operations in the following methods are merely representative of the operations for the purpose of description, and should not be construed as representing the order of execution of the respective operations. The method need not be performed in the exact order shown unless explicitly stated.
Fig. 2 schematically illustrates a flow chart of a resource allocation method according to an embodiment of the present disclosure.
As shown in fig. 2, the resource allocation method 200 includes operations S210 to S240.
In response to receiving the resource allocation request, first resource usage information and second resource usage information are acquired according to a resource mapping identity indicated by the resource allocation request in operation S210.
In operation S220, updated first sub-resource usage information of each of the M units is determined according to the first resource usage information and the resource allocation weight of each of the M units, where M is a positive integer.
In operation S230, updated second sub-resource usage information of each of the M units is determined according to the second resource usage information and the updated first sub-resource usage information of each of the M units.
In operation S240, a resource allocation result is determined according to the updated first sub-resource usage information and the updated second sub-resource usage information of each of the M units.
According to the embodiment of the disclosure, a code for generating a resource configuration request can be written in a first script in advance, and in response to detecting a resource mapping identifier given by a user through an input operation or a clicking operation, a client can run the first script and generate a resource configuration request message according to the resource mapping identifier. The client can send the resource allocation request message to the server so that the server can acquire corresponding resource use information according to the resource mapping identification in the resource allocation request message.
According to embodiments of the present disclosure, a data source may store at least one candidate resource map identification. The candidate resource map identification may be used to uniquely identify the resource map. Each resource map may be used to characterize a conversion relationship between at least one candidate source object identification and at least one candidate target object identification. Candidate source object identifications may be used to uniquely identify source objects. Candidate target object identification may be used to uniquely identify a target object. The source object and the target object may refer to portfolios, where the source object may refer to a sold portfolio and the target object may refer to a purchased portfolio.
For example, the resource map may include a source object identification a, a target object identification B, and a target object identification C, and the conversion relationship between the source object and the target object may be 100:60:40, the resource map may characterize the sale of 100 parts of portfolio a, 60 parts of portfolio B and 40 parts of portfolio C.
According to embodiments of the present disclosure, after receiving the resource configuration request, a resource mapping may be determined in at least one candidate resource mapping identity based on the resource mapping identity in the resource configuration request. On this basis, the first resource usage information may be obtained based on the source object identification in the resource map, and the second resource usage information may be obtained based on the target object identification in the resource map. The resource may refer to a transaction amount. The first resource usage information may refer to a total amount of sales of the source object. The second resource usage information may refer to a total amount of purchases of the target object.
According to an embodiment of the present disclosure, after the first resource usage information is obtained, the respective first sub-resource usage information of each unit may be determined based on the first resource usage information and the respective resource configuration weights of the M units. The resource allocation weights may refer to the quota that different units hold for the source object. An entity may refer to at least one of each person and each subject, each person may refer to a different investor in a portfolio, each subject may refer to a different asset class or investment project in the portfolio, for example, subjects may include stocks, bonds, cash, and the like. The first sub-resource usage information may refer to a sell-out credit for the source object corresponding to the unit.
According to the embodiment of the disclosure, after the first sub-resource usage information is obtained, error sharing processing may be further performed on the first sub-resource usage information, so as to obtain updated first sub-resource usage information, that is, the updated first sub-resource usage information may refer to the selling credit corresponding to the unit and to the source object after error sharing processing.
According to an embodiment of the present disclosure, after obtaining the respective updated first sub-resource usage information of each unit, the respective second sub-resource usage information of each unit may be determined based on the second resource usage information and the respective updated first sub-resource usage information of the M units. The second sub-resource usage information may refer to a purchase amount for the target object corresponding to the unit. On the basis, error sharing processing can be further performed on the second sub-resource usage information, so as to obtain updated second sub-resource usage information, namely the updated second sub-resource usage information can refer to the buying amount of the target object corresponding to the unit after error sharing processing.
According to an embodiment of the present disclosure, after obtaining respective updated first sub-resource usage information for each unit, a source object share for the unit may be determined for each unit based on a unit net value corresponding to the source object and the updated first sub-resource usage information. After obtaining the respective updated second sub-resource usage information for each unit, a target object share for that unit may be determined based on the unit net value corresponding to the target object and the updated second sub-resource usage information. On this basis, for each unit, a resource allocation result may be determined further based on the source object share and the target object share corresponding to the unit.
According to the embodiment of the disclosure, the resource use information of different objects is obtained according to the resource mapping identification indicated by the resource allocation request, so that a data basis is provided for subsequent resource allocation. Because the updated first sub-resource usage information is determined according to the first resource usage information and the resource allocation weight, the updated second sub-resource usage information is determined according to the second resource usage information and the updated first sub-resource usage information, thereby comprehensively considering the association relationship among different resources and providing more comprehensive consideration for subsequent resource allocation. On the basis, the resource allocation result is determined according to the updated first sub-resource use information and the updated second sub-resource use information of each unit, so that the dynamic allocation of the resources is realized, the technical problems that the adaptability of the resource allocation mode in the related technology is low, the accuracy of the resource allocation is difficult to ensure effectively are at least partially overcome, the reasonable allocation and utilization of the resources are ensured, and the efficiency and the accuracy of the resource allocation are improved.
A resource allocation method 200 according to an embodiment of the present invention is further described below with reference to fig. 3-6.
According to an embodiment of the present disclosure, the resource allocation method 200 may further include the following operations.
And in response to receiving the resource mapping construction request, constructing a candidate resource mapping according to the candidate source object identifier and the candidate target object identifier indicated by the resource mapping construction request. The candidate resource map and the candidate resource map identity associations corresponding to the candidate resource map are stored to the data source.
According to the embodiment of the disclosure, the code for generating the resource mapping construction request may be written in the second script in advance, and in response to detecting the candidate source object identifier and the candidate target object identifier given by the user through the input operation or the click operation, the client may run the second script, and generate the resource mapping construction request message according to the candidate source object identifier and the candidate target object identifier. The client can send the resource mapping construction request message to the server so that the server can construct candidate resource mapping according to the candidate source object identifier and the candidate target object identifier in the resource mapping construction request message.
According to an embodiment of the present disclosure, operation S210 may include the following operations.
In response to receiving the resource configuration request, a resource map is determined from the resource map identification and the at least one candidate resource map identification, wherein the resource map includes a source object identification and a target object identification. First resource usage information corresponding to the source object identification and second resource usage information corresponding to the target object identification are obtained.
According to embodiments of the present disclosure, after receiving the resource configuration request, a resource mapping may be determined in at least one candidate resource mapping identity based on the resource mapping identity in the resource configuration request. On this basis, the first resource usage information corresponding to the source object identifier may be acquired based on the source object identifier in the resource map, and the second resource usage information corresponding to the target object identifier may be acquired based on the target object identifier in the resource map.
According to the embodiment of the disclosure, the candidate resource mapping is constructed according to the candidate source object identifier and the candidate target object identifier indicated by the resource mapping construction request, so that the resource mapping scheme meeting the user requirement can be generated according to the user requirement. By storing the candidate resource mapping and the candidate resource mapping identification in association to the data source, different resource mapping schemes can be effectively managed, and a reference is provided for the determination of the subsequent resource mapping. On the basis, the first resource use information corresponding to the source object identifier and the second resource use information corresponding to the target object identifier are acquired according to the resource mapping, so that the accuracy of acquiring the resource use information is ensured.
According to an embodiment of the present disclosure, operation S220 may include the following operations.
And determining the first sub-resource use information of each of the M units according to the first resource use information and the resource allocation weight of each of the M units. And determining the updated first sub-resource usage information of each of the M units according to the first resource usage information and the first sub-resource usage information of each of the M units.
According to an embodiment of the present disclosure, the first resource usage information may refer to a total sales amount of the source object. The resource allocation weights may refer to the quota that different units hold for the source object. The first sub-resource usage information may refer to a sell-out credit for the source object corresponding to the unit. The updated first sub-resource usage information may refer to a selling credit for the source object corresponding to the unit after error sharing processing.
In one example, for each unit, the selling amount for the source object corresponding to each unit may be calculated according to the amount ratio held by each person or each subject, respectively, based on the selling total amount of the source object. For example, for each unit, based on the first resource usage information and the resource allocation weight of the unit, intermediate first sub-resource usage information may be determined, where the intermediate first sub-resource usage information may refer to a directly calculated selling credit for the source object corresponding to the unit. On the basis, 2-bit decimal can be reserved for the intermediate first sub-resource use information, and the first sub-resource use information is obtained.
According to the embodiment of the disclosure, since the first sub-resource usage information of each unit is determined according to the first resource usage information and the resource configuration weight of the unit, the resource usage of each unit for the source object can be reasonably determined according to the actual situation. On the basis, the updated first sub-resource use information is determined according to the first resource use information and the first sub-resource use information of each unit, so that the sub-resource use information of each unit for the source object can be comprehensively considered and timely updated, and the follow-up resource allocation can be guaranteed more efficiently and accurately.
According to an embodiment of the present disclosure, determining the updated first sub-resource usage information for each of the M units according to the first resource usage information and the first sub-resource usage information for each of the M units may include the following operations.
And accumulating the first sub-resource use information of each of the M units to obtain first resource configuration information. And determining a first difference value according to the first resource use information and the first resource configuration information. And in response to the first difference value not meeting the first preset condition, arranging M units according to the M pieces of first sub-resource use information to obtain a first unit sequence, wherein the first unit sequence comprises M units arranged from large to small according to the first sub-resource use information. And determining updated first sub-resource use information of each of the M units according to the first difference value and the first unit sequence.
According to the embodiment of the disclosure, after the first sub-resource usage information is obtained, error sharing processing may be performed on the first sub-resource usage information to obtain updated first sub-resource usage information. The specific manner of error sharing processing may be configured according to actual service requirements, which is not limited herein. For example, the way the error averaging process may include at least one of: maximum unit uniform spreading, random unit uniform spreading and sequential unit uniform spreading.
In one example, maximum unit amortization may refer to the amortization of all errors by the unit with the largest selling credit value for the source object. Random unit sharing may refer to randomly selecting one unit among M units to share all errors. Sequential unit sharing may refer to error sharing using M units by ordering the respective sales amounts of each unit and based on the ordering.
According to the embodiment of the disclosure, after the first sub-resource usage information corresponding to each unit is obtained, accumulation processing may be performed on the M first sub-resource usage information to obtain first resource configuration information. The first resource configuration information may refer to a sum of sales amounts for the source object after error sharing processing for each person or each unit. On this basis, a first difference between the first resource usage information and the first resource configuration information may be determined, which may be used to characterize the error of the sell-through credit for the source object.
According to the embodiment of the present disclosure, the first predetermined condition may be configured according to an actual service requirement, which is not limited herein. For example, the first predetermined condition may be that the first difference is equal to a first preset threshold, which may be 0. Under the condition that the first difference value is equal to a first preset threshold value, it can be determined that no error exists between the first resource use information and the first resource configuration information, and error sharing is not needed for the first sub-resource use information, so that the first sub-resource use information can be directly determined to be updated first sub-resource use information.
Alternatively, if the first difference value is not equal to the first preset threshold, the M units may be ordered according to the from large to small of the M first sub-resource usage information values, to obtain the first unit sequence. On the basis, error sharing can be completed based on the first difference value and M units which are arranged from large to small according to the first sub-resource use information in the first unit sequence, and updated first sub-resource use information of each unit is obtained. For example, each subject can share up to 1 minute per person, and error sharing can be completed through one round of processing.
According to the embodiment of the disclosure, after obtaining the M updated first sub-resource usage information, a first resource usage accumulated value may be determined according to the updated first sub-resource usage information, and whether the first resource usage accumulated value is equal to the first resource usage information may be determined, so as to verify whether the obtained updated first sub-resource usage information is correct, and thus intercept before the result is finally validated, and ensure accuracy of the resource configuration result.
According to the embodiment of the disclosure, since the first difference value is determined according to the first resource usage information and the first resource configuration information, the first resource configuration information is obtained by performing the accumulation processing on the first sub-resource usage information of different units, and thus the first difference value can reflect the difference between the actual resource usage situation and the expected resource configuration situation of the source object. On the basis, whether the first difference value meets the first preset condition is judged, under the condition that the first difference value does not meet the first preset condition, units are ordered according to the resource use condition of each unit, and errors of the first difference values related to the source object are averaged based on the sequence of each unit in the obtained first unit sequence, so that updated first sub-resource use information of each unit is obtained, the error distribution aiming at the source object is more uniform, the number of circulation times is less, dynamic adjustment and optimization of resource allocation are facilitated, and the accuracy of a subsequent resource allocation result is guaranteed.
Fig. 3 schematically illustrates an example schematic diagram of a process of obtaining updated first sub-resource usage information for each of M units according to an embodiment of the present disclosure.
As shown in fig. 3, in 300, first sub-resource usage information 303 for each of M units may be determined according to first resource usage information 301 and resource allocation weights 302 for each of M units. The first sub-resource usage information 303 of each of the M units is accumulated to obtain first resource allocation information 304. A first difference 305 is determined from the first resource usage information 301 and the first resource configuration information 304.
After the first difference 305 is obtained, operation S310 may be performed. In operation S310, it is determined whether the first difference satisfies a first predetermined condition?
If so, the first sub-resource usage information 303 of each of the M units may be directly determined as updated first sub-resource usage information 307 of each of the M units. If not, the M units may be arranged according to the M first sub-resource usage information 303, to obtain a first unit sequence 306. From the first difference 305 and the first sequence of units 306, updated first sub-resource usage information 307 for each of the M units is determined.
According to an embodiment of the present disclosure, operation S230 may include the following operations.
And determining the second sub-resource use information of each of the M units according to the second resource use information and the updated first sub-resource use information of each of the M units. And determining updated second sub-resource usage information of each of the M units according to the second resource usage information and the second sub-resource usage information of each of the M units.
According to an embodiment of the present disclosure, the second resource usage information may refer to a total amount purchased by the target object. The updated first sub-resource usage information may refer to a selling credit for the source object corresponding to the unit after error sharing processing. The second sub-resource usage information may refer to a purchase amount for the target object corresponding to the unit. The updated second sub-resource usage information may refer to the buying amount for the target object corresponding to the unit after the error sharing process.
In one example, for each unit, the bid amount for the target object corresponding to each unit may be calculated according to the bid amount for the source object corresponding to the unit based on the bid amount for the target object. For example, for each unit, intermediate second sub-resource usage information may be determined based on the second resource usage information and updated first sub-resource usage information of the unit, where the intermediate second sub-resource usage information may refer to a directly calculated purchase amount for the target object corresponding to the unit. On the basis, 2-bit decimal can be reserved for the intermediate second sub-resource use information, and the second sub-resource use information is obtained.
According to the embodiment of the disclosure, since the second sub-resource usage information of each unit is determined according to the second resource usage information and the updated first sub-resource usage information of the unit, the resource usage condition of each unit for the target object can be reasonably determined according to the actual condition. On the basis, the updated second sub-resource use information is determined according to the second resource use information and the second sub-resource use information of each unit, so that the sub-resource use information of each unit aiming at the target object can be comprehensively considered and timely updated, and the follow-up resource allocation can be guaranteed more efficiently and accurately.
According to an embodiment of the present disclosure, determining the updated second sub-resource usage information for each of the M units according to the second resource usage information and the second sub-resource usage information for each of the M units may include the following operations.
And accumulating the second sub-resource use information of each of the M units to obtain second resource configuration information. And determining a second difference value according to the second resource use information and the second resource configuration information. And determining the second sub-resource usage information of each of the M units as updated second sub-resource usage information of each of the M units, if the second difference satisfies a second predetermined condition.
According to the embodiment of the disclosure, after the second sub-resource usage information is obtained, error sharing processing may be performed on the second sub-resource usage information to obtain updated second sub-resource usage information. The specific manner of error sharing processing may be configured according to actual service requirements, which is not limited herein. For example, the way the error averaging process may include at least one of: maximum unit uniform spreading, random unit uniform spreading and sequential unit uniform spreading.
According to the embodiment of the disclosure, after the second sub-resource usage information corresponding to each unit is obtained, accumulation processing may be performed on the M second sub-resource usage information to obtain second resource configuration information. The second resource allocation information may refer to the sum of the buying limits for the target object after error sharing processing of each person or each unit. On the basis of this, a second difference between the second resource usage information and the second resource configuration information may be determined, which may be used to characterize the error of the purchase amount for the target object.
According to the embodiment of the present disclosure, the second predetermined condition may be configured according to an actual service requirement, which is not limited herein. For example, the second predetermined condition may be that the second difference is equal to a second preset threshold, which may be 0. And under the condition that the first difference value is equal to a second preset threshold value, determining that no error exists between the first resource use information and the first resource configuration information, and directly determining the second sub-resource use information as updated second sub-resource use information without error sharing on the second sub-resource use information.
According to an embodiment of the present disclosure, in case the second difference value does not satisfy the second predetermined condition, the method may further include repeatedly performing the following operation until the second difference value satisfies the second predetermined condition.
And according to the M pieces of second sub-resource use information, arranging the M units to obtain a second unit sequence, wherein the second unit sequence comprises M units which are arranged from large to small according to the second sub-resource use information. And determining the intermediate second sub-resource use information of each of the M units according to the second difference value and the second unit sequence. And re-determining a second difference value according to the second resource usage information and the intermediate second sub-resource usage information of each of the M units.
According to the embodiment of the disclosure, if the second difference value is not equal to the second preset threshold value, the M units may be ordered according to the from large to small of the M second sub-resource usage information values, so as to obtain the second unit sequence. On the basis, the error of the current round can be averaged based on the second difference value and M units which are arranged from large to small according to the second sub-resource use information in the second unit sequence, so as to obtain the respective intermediate second sub-resource use information of each unit. On this basis, it is possible to re-determine the second difference value based on the second resource usage information and the respective intermediate second sub-resource usage information of each unit and re-determine whether the second difference value satisfies the second predetermined condition.
According to an embodiment of the disclosure, the above-mentioned process may be repeatedly performed until the second difference value satisfies a second predetermined condition, and error sharing is determined to be completed, so as to obtain updated second sub-resource usage information of each unit. In this case, since error accumulation of errors increases with the number of the buying combinations, the process of error sharing is a cyclic combination, units with errors are processed, sharing is performed from large to small according to the buying amount, each subject is divided into 1 at most, each subject is checked after sharing is completed, whether errors still exist is judged, if yes, processing can be continued, and the number of rounds of sharing is at most the number of buying combinations.
In another example, the ending method may also be used to derive the second sub-resource usage information for each unit when determining the second sub-resource usage information for each unit. On the basis, error sources can be timely obtained, and error allocation is carried out according to the buying combination limit from large to small, and the number of circulation times of the error allocation is the number of buying combinations.
According to the embodiment of the disclosure, after obtaining the M updated second sub-resource usage information, a second resource usage accumulated value may be determined according to the updated second sub-resource usage information, and whether the second resource usage accumulated value is equal to the second resource usage information may be determined, so as to verify whether the obtained updated second sub-resource usage information is correct, and thus intercept before the result is finally validated, and ensure accuracy of the resource configuration result.
According to the embodiment of the disclosure, since the second difference value is determined according to the second resource usage information and the second resource configuration information, the second resource configuration information is obtained by performing the accumulation processing on the second sub-resource usage information of different units, and thus the second difference value can reflect the difference between the actual resource usage situation and the expected resource configuration situation of the target object. On the basis, whether the second difference value meets a second preset condition or not is judged, and under the condition that the second difference value does not meet the second preset condition, units are ordered according to the resource use condition of each unit aiming at the target object, and error sharing is carried out on the second difference value based on the sequence of each unit in the obtained second unit sequence, so that updated first sub-resource use information of each unit aiming at the target object is obtained, the error distribution of the target object is more uniform, the number of circulation times is less, dynamic adjustment and optimization of resource allocation are facilitated, and the accuracy of a subsequent resource allocation result is guaranteed.
Fig. 4 schematically illustrates an example schematic diagram of a process of obtaining updated second sub-resource usage information for each of M units according to an embodiment of the present disclosure.
As shown in fig. 4, in 400, second sub-resource usage information 403 for each of M units is determined based on second resource usage information 401 and updated first sub-resource usage information 402 for each of M units. And accumulating the second sub-resource use information 403 of each of the M units to obtain second resource configuration information 404. A second difference 405 is determined based on the second resource usage information 401 and the second resource configuration information 404.
After the second difference 405 is obtained, operation S410 may be performed. In operation S410, it is determined whether the second difference 405 satisfies a second predetermined condition?
If so, the second sub-resource usage information 403 for each of the M units may be determined as updated second sub-resource usage information 407 for each of the M units.
If not, the following operations may be repeatedly performed until the second difference satisfies the second predetermined condition: the M units are arranged according to the M second sub-resource usage information 403, resulting in a second unit sequence 406. Based on the second difference 405 and the second sequence of units 406, intermediate second sub-resource usage information 408 for each of the M units is determined. The second difference 405 is redetermined based on the second resource usage information 402 and the intermediate second sub-resource usage information 408 of each of the M units.
According to an embodiment of the present disclosure, operation S240 may include the following operations.
And determining the source object share of each of the M units according to the first reference resource information and the updated first sub-resource use information of each of the M units. And determining the target object share of each of the M units according to the second reference resource information and the updated second sub-resource use information of each of the M units. And determining a resource configuration result according to the source object share and the target object share of each of the M units.
According to an embodiment of the present disclosure, the source object share may refer to a selling credit for the source object corresponding to each unit after error sharing processing, and a ratio of the selling credit in a unit net value for the source object. For example, for each unit, a first ratio between the updated first sub-resource usage information and the first reference resource information may be determined. On this basis, 6-bit decimal may be reserved for the first ratio, resulting in a source object share.
According to an embodiment of the disclosure, the target object share may refer to a selling amount of each unit corresponding to the unit after error sharing processing, and a ratio of the selling amount of each unit to the target object is calculated. For example, for each unit, a second ratio between the updated second sub-resource usage information and the second reference resource information may be determined. On this basis, 6-bit decimal may be reserved for the second ratio, resulting in a target object share.
According to the embodiment of the disclosure, the source object resources can be allocated more fairly by determining the source object share according to the first reference resource information and the updated first sub-resource usage information of each unit, respectively. The target object resources can be allocated more fairly by determining the target object share based on the second reference resource information and the updated second sub-resource usage information of each unit, respectively. On the basis, the resource allocation result is determined according to the respective source object share and target object share of each unit, so that reasonable allocation and utilization of source object resources and target object resources can be realized, and the accuracy of resource allocation is improved.
Fig. 5 schematically illustrates an example schematic diagram of a process of obtaining resource configuration results according to an embodiment of the disclosure.
As shown in fig. 5, in 500, a source object share 503 of each of M units may be determined according to the first reference resource information 501 and the updated first sub-resource usage information 502 of each of M units. A target object share 506 for each of the M units is determined based on the second reference resource information 504 and the updated second sub-resource usage information 505 for each of the M units. On this basis, the resource allocation result 507 may be determined according to the source object share 503 and the target object share 505 of each of the M units.
Fig. 6 schematically illustrates an example schematic diagram of a resource allocation process according to an embodiment of the disclosure.
As shown in fig. 6, in 600, the resource allocation procedure may include operations S601 to S610.
In operation S601, first sub-resource usage information of each of M units is determined according to the first resource usage information and resource allocation weights of each of M units.
In operation S602, a first difference value is determined according to the first resource usage information and the first sub-resource usage information of each of the M units.
In operation S603, it is determined whether the first difference satisfies a first predetermined condition? If not, operation S604 may be executed, and if yes, operation S605 may be executed.
In operation S604, updated first sub-resource usage information of each of the M units is determined according to the first resource usage information and the first sub-resource usage information of each of the M units.
In operation S605, a source object share of each of M units is determined according to the first reference resource information and the updated first sub-resource usage information of each of M units.
In operation S606, second sub-resource usage information of each of the M units is determined according to the second resource usage information and the updated first sub-resource usage information of each of the M units.
In operation S607, a second difference value is determined according to the second resource usage information and the second sub-resource usage information of each of the M units.
In operation S608, it is determined whether the second difference satisfies a second predetermined condition? If not, operation S609 may be performed. If so, operation S610 may be performed.
In operation S609, updated second sub-resource usage information of each of the M units is determined according to the second resource usage information and the second sub-resource usage information of each of the M units.
In operation S610, a target object share of each of the M units is determined according to the second reference resource information and the updated second sub-resource usage information of each of the M units.
The above is only an exemplary embodiment, but is not limited thereto, and other resource allocation methods known in the art may be included as long as efficiency and accuracy of resource allocation can be achieved.
Fig. 7 schematically illustrates a block diagram of a resource allocation apparatus according to an embodiment of the disclosure.
As shown in fig. 7, the resource configuration apparatus 700 may include an acquisition module 710, a first determination module 720, a second determination module 730, and a third determination module 740.
An obtaining module 710, configured to obtain, in response to receiving the resource configuration request, the first resource usage information and the second resource usage information according to the resource mapping identifier indicated by the resource configuration request.
The first determining module 720 is configured to determine, according to the first resource usage information and the resource configuration weights of the M units, updated first sub-resource usage information of the M units, where M is a positive integer.
A second determining module 730, configured to determine updated second sub-resource usage information of each of the M units according to the second resource usage information and the updated first sub-resource usage information of each of the M units.
A third determining module 740, configured to determine a resource configuration result according to the updated first sub-resource usage information and the updated second sub-resource usage information of each of the M units.
According to an embodiment of the present disclosure, the first determination module 720 may include a first determination sub-module and a second determination sub-module.
The first determining submodule is used for determining the first sub-resource use information of each of the M units according to the first resource use information and the resource allocation weight of each of the M units.
And the second determining submodule is used for determining the updated first sub-resource use information of each of the M units according to the first resource use information and the first sub-resource use information of each of the M units.
According to an embodiment of the present disclosure, the second determination submodule may include a first accumulation processing unit, a first determination unit, a first arrangement unit, and a second determination unit.
The first accumulation processing unit is used for accumulating the first sub-resource use information of each of the M units to obtain first resource configuration information.
And the first determining unit is used for determining a first difference value according to the first resource use information and the first resource configuration information.
And the first arrangement unit is used for arranging the M units according to the M pieces of first sub-resource use information to obtain a first unit sequence in response to the first difference value not meeting a first preset condition, wherein the first unit sequence comprises M units arranged from large to small according to the first sub-resource use information.
And the second determining unit is used for determining the updated first sub-resource use information of each of the M units according to the first difference value and the first unit sequence.
According to an embodiment of the present disclosure, the second determination module 730 may include a third determination sub-module and a fourth determination sub-module.
And the third determining submodule is used for determining the second sub-resource use information of each M units according to the second resource use information and the updated first sub-resource use information of each M units.
And a fourth determining sub-module, configured to determine updated second sub-resource usage information of each of the M units according to the second resource usage information and the second sub-resource usage information of each of the M units.
According to an embodiment of the present disclosure, the fourth determination sub-module may include a second accumulation processing unit, a third determination unit, and a fourth determination unit.
And the second accumulation processing unit is used for accumulating the second sub-resource use information of each of the M units to obtain second resource configuration information.
And a third determining unit, configured to determine a second difference value according to the second resource usage information and the second resource configuration information.
A fourth determining unit configured to determine, when the second difference value satisfies a second predetermined condition, the second sub-resource usage information of each of the M units as updated second sub-resource usage information of each of the M units.
According to an embodiment of the present disclosure, the fourth determination sub-module may further include a second arrangement unit, a fifth determination unit, and a sixth determination unit in a case where the second difference value does not satisfy the second predetermined condition.
And the second arrangement unit is used for arranging the M units according to the M pieces of second sub-resource use information to obtain a second unit sequence, wherein the second unit sequence comprises M units which are arranged from large to small according to the second sub-resource use information.
And a fifth determining unit, configured to determine intermediate second sub-resource usage information of each of the M units according to the second difference value and the second unit sequence.
A sixth determining unit, configured to re-determine the second difference value according to the second resource usage information and the intermediate second sub-resource usage information of each of the M units.
According to an embodiment of the present disclosure, the third determination module 740 may include a fifth determination sub-module, a sixth determination sub-module, and a seventh determination sub-module.
And a fifth determining sub-module, configured to determine the source object shares of each of the M units according to the first reference resource information and the updated first sub-resource usage information of each of the M units.
And a sixth determining sub-module, configured to determine, according to the second reference resource information and the updated second sub-resource usage information of each of the M units, a target object share of each of the M units.
And a seventh determining submodule, configured to determine a resource configuration result according to the source object share and the target object share of each of the M units.
According to an embodiment of the present disclosure, the resource configuration device 700 may further include a build module and an associated storage module.
And the construction module is used for responding to the received resource mapping construction request and constructing candidate resource mapping according to the candidate source object identification and the candidate target object identification indicated by the resource mapping construction request.
And the association storage module is used for storing the candidate resource mapping and the candidate resource mapping identification association corresponding to the candidate resource mapping to the data source.
According to an embodiment of the present disclosure, the acquisition module 710 may include an eighth determination sub-module and an acquisition sub-module.
An eighth determination submodule is configured to determine a resource mapping according to the resource mapping identifier and the at least one candidate resource mapping identifier in response to receiving the resource configuration request, wherein the resource mapping includes a source object identifier and a target object identifier.
And the acquisition sub-module is used for acquiring the first resource use information corresponding to the source object identifier and the second resource use information corresponding to the target object identifier.
Any number of modules, sub-modules, units, sub-units, or at least some of the functionality of any number of the sub-units according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented as split into multiple modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system-on-chip, a system-on-substrate, a system-on-package, an Application Specific Integrated Circuit (ASIC), or in any other reasonable manner of hardware or firmware that integrates or encapsulates the circuit, or in any one of or a suitable combination of three of software, hardware, and firmware. Or one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be at least partially implemented as computer program modules, which, when executed, may perform the corresponding functions.
For example, any of the acquisition module 710, the first determination module 720, the second determination module 730, and the third determination module 740 may be combined in one module/unit/sub-unit, or any of the modules/units/sub-units may be split into a plurality of modules/units/sub-units. Or at least some of the functionality of one or more of these modules/units/sub-units may be combined with at least some of the functionality of other modules/units/sub-units and implemented in one module/unit/sub-unit. According to embodiments of the present disclosure, at least one of the acquisition module 710, the first determination module 720, the second determination module 730, and the third determination module 740 may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or as hardware or firmware in any other reasonable manner of integrating or packaging the circuitry, or as any one of or a suitable combination of any of the three. Or at least one of the acquisition module 710, the first determination module 720, the second determination module 730, and the third determination module 740 may be at least partially implemented as computer program modules which, when executed, may perform the respective functions.
It should be noted that, in the embodiment of the present disclosure, the resource allocation device portion corresponds to the resource allocation method portion in the embodiment of the present disclosure, and the description of the resource allocation device portion specifically refers to the resource allocation method portion, which is not described herein.
Fig. 8 schematically illustrates a block diagram of an electronic device adapted to implement a resource allocation method according to an embodiment of the disclosure. The electronic device shown in fig. 8 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 8, a computer electronic device 800 according to an embodiment of the present disclosure includes a processor 801 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 802 or a program loaded from a storage section 809 into a Random Access Memory (RAM) 803. The processor 801 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. The processor 801 may also include on-board memory for caching purposes. The processor 801 may include a single processing unit or multiple processing units for performing the different actions of the method flows according to embodiments of the disclosure.
In the RAM 803, various programs and data required for the operation of the electronic device 800 are stored. The processor 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. The processor 801 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 802 and/or the RAM 803. Note that the program may be stored in one or more memories other than the ROM 802 and the RAM 803. The processor 801 may also perform various operations of the method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the present disclosure, the electronic device 800 may also include an input/output (I/O) interface 805, the input/output (I/O) interface 805 also being connected to the bus 804. The electronic device 800 may also include one or more of the following components connected to an input/output (I/O) interface 805: an input portion 806 including a keyboard, mouse, etc.; an output portion 807 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage section 808 including a hard disk or the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. The drive 810 is also connected to an input/output (I/O) interface 805 as needed. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as needed so that a computer program read out therefrom is mounted into the storage section 808 as needed.
According to embodiments of the present disclosure, the method flow according to embodiments of the present disclosure may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via the communication section 809, and/or installed from the removable media 811. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 801. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
The present disclosure also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs which, when executed, implement methods in accordance with embodiments of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. Examples may include, but are not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
For example, according to embodiments of the present disclosure, the computer-readable storage medium may include ROM 802 and/or RAM 803 and/or one or more memories other than ROM 802 and RAM 803 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program comprising program code for performing the methods provided by the embodiments of the present disclosure, the program code for causing an electronic device to implement the resource allocation methods provided by the embodiments of the present disclosure when the computer program product is run on the electronic device.
The above-described functions defined in the system/apparatus of the embodiments of the present disclosure are performed when the computer program is executed by the processor 801. The systems, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed, and downloaded and installed in the form of a signal on a network medium, and/or from a removable medium 811 via a communication portion 809. The computer program may include program code that may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
According to embodiments of the present disclosure, program code for performing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, such computer programs may be implemented in high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. Programming languages include, but are not limited to, such as Java, c++, python, "C" or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be combined in various combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. These examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.
Claims (12)
1. A resource allocation method, comprising:
In response to receiving a resource allocation request, acquiring first resource use information and second resource use information according to a resource mapping identifier indicated by the resource allocation request;
According to the first resource usage information and the resource allocation weights of the M units, determining updated first sub-resource usage information of the M units, wherein M is a positive integer;
determining updated second sub-resource usage information of each of the M units according to the second resource usage information and the updated first sub-resource usage information of each of the M units; and
And determining a resource allocation result according to the updated first sub-resource use information and the updated second sub-resource use information of each of the M units.
2. The method of claim 1, wherein the determining the updated first sub-resource usage information for each of the M units according to the first resource usage information and the resource configuration weights for each of the M units comprises:
Determining first sub-resource usage information of each of the M units according to the first resource usage information and the resource allocation weight of each of the M units; and
And determining updated first sub-resource usage information of each of the M units according to the first resource usage information and the first sub-resource usage information of each of the M units.
3. The method of claim 2, wherein the determining the updated first sub-resource usage information for each of the M units from the first resource usage information and the first sub-resource usage information for each of the M units comprises:
Accumulating the first sub-resource usage information of each of the M units to obtain first resource configuration information;
determining a first difference value according to the first resource use information and the first resource configuration information;
In response to the first difference value not meeting a first preset condition, arranging the M units according to M pieces of first sub-resource use information to obtain a first unit sequence, wherein the first unit sequence comprises M units arranged from large to small according to the first sub-resource use information; and
And determining updated first sub-resource use information of each of the M units according to the first difference value and the first unit sequence.
4. A method according to any one of claims 1 to 3, wherein said determining updated second sub-resource usage information for each of said M units from said second resource usage information and updated first sub-resource usage information for each of said M units comprises:
Determining the second sub-resource usage information of each of the M units according to the second resource usage information and the updated first sub-resource usage information of each of the M units; and
And determining updated second sub-resource usage information of each of the M units according to the second resource usage information and the second sub-resource usage information of each of the M units.
5. The method of claim 4, wherein the determining updated second sub-resource usage information for each of the M units from the second resource usage information and the second sub-resource usage information for each of the M units comprises:
Accumulating the second sub-resource usage information of each of the M units to obtain second resource configuration information;
determining a second difference value according to the second resource usage information and the second resource configuration information; and
And determining the second sub-resource usage information of each of the M units as updated second sub-resource usage information of each of the M units, if the second difference satisfies a second predetermined condition.
6. The method of claim 5, further comprising, in the event that the second difference does not meet the second predetermined condition, repeating the following until the second difference meets the second predetermined condition:
according to the M pieces of second sub-resource use information, arranging the M units to obtain a second unit sequence, wherein the second unit sequence comprises M units which are arranged from large to small according to the second sub-resource use information;
Determining intermediate second sub-resource usage information of each of the M units according to the second difference and the second unit sequence; and
And re-determining the second difference value according to the second resource usage information and the middle second sub-resource usage information of each of the M units.
7. A method according to any one of claims 1 to 3, wherein said determining a resource configuration result from the updated first sub-resource usage information and the updated second sub-resource usage information of each of the M units comprises:
Determining the source object share of each of the M units according to the first reference resource information and the updated first sub-resource use information of each of the M units;
Determining respective target object shares of the M units according to the second reference resource information and the updated second sub-resource usage information of the M units; and
And determining a resource configuration result according to the source object share and the target object share of each of the M units.
8. The method of claim 1, further comprising, prior to the obtaining the first resource usage information and the second resource usage information according to the resource mapping identity indicated by the resource configuration request in response to receiving the resource configuration request:
Responding to a received resource mapping construction request, and constructing candidate resource mapping according to a candidate source object identifier and a candidate target object identifier indicated by the resource mapping construction request; and
Storing the candidate resource mapping and a candidate resource mapping identification association corresponding to the candidate resource mapping to a data source;
The responding to the received resource allocation request, according to the resource mapping identifier indicated by the resource allocation request, the obtaining the first resource usage information and the second resource usage information includes:
Responsive to receiving the resource configuration request, determining a resource map according to the resource map identification and at least one of the candidate resource map identifications, wherein the resource map includes a source object identification and a target object identification; and
And acquiring the first resource use information corresponding to the source object identification and the second resource use information corresponding to the target object identification.
9. A resource allocation apparatus, comprising:
The acquisition module is used for responding to the received resource configuration request and acquiring first resource use information and second resource use information according to the resource mapping identification indicated by the resource configuration request;
A first determining module, configured to determine updated first sub-resource usage information of each of M units according to the first resource usage information and resource allocation weights of each of the M units, where M is a positive integer;
A second determining module, configured to determine updated second sub-resource usage information of each of the M units according to the second resource usage information and the updated first sub-resource usage information of each of the M units; and
And the third determining module is used for determining a resource configuration result according to the updated first sub-resource use information and the updated second sub-resource use information of each of the M units.
10. An electronic device, comprising:
one or more processors;
A memory for storing one or more computer programs,
Characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1-8.
11. A computer-readable storage medium, on which a computer program or instructions is stored, characterized in that the computer program or instructions, when executed by a processor, implement the steps of the method according to any one of claims 1-8.
12. A computer program product comprising a computer program or instructions which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 8.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410538348.XA CN118411254A (en) | 2024-04-30 | 2024-04-30 | Resource allocation method and device, electronic equipment and computer readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410538348.XA CN118411254A (en) | 2024-04-30 | 2024-04-30 | Resource allocation method and device, electronic equipment and computer readable storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN118411254A true CN118411254A (en) | 2024-07-30 |
Family
ID=91982657
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202410538348.XA Pending CN118411254A (en) | 2024-04-30 | 2024-04-30 | Resource allocation method and device, electronic equipment and computer readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN118411254A (en) |
-
2024
- 2024-04-30 CN CN202410538348.XA patent/CN118411254A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20200134493A1 (en) | Automatic correction of indirect bias in machine learning models | |
| US10374919B2 (en) | Resource manager | |
| US10235676B2 (en) | Systems and methods for accessing computational resources in an open environment | |
| US10511453B2 (en) | Information processing system and charge calculation apparatus | |
| US20140129389A1 (en) | Cloud solutions for organizations | |
| US20140278807A1 (en) | Cloud service optimization for cost, performance and configuration | |
| CN108763389B (en) | Data integration method and device, storage medium and terminal | |
| US12093353B2 (en) | Systems and methods for user authentication | |
| CN110602215B (en) | Resource processing method based on alliance block chain and alliance block chain system | |
| US12271831B2 (en) | Routing a data processing transaction based on machine learning | |
| US10614402B2 (en) | Human steering dashboard to analyze 360-degree market view for merchants based on financial transactions | |
| CN116128607A (en) | Product recommendation method, device, equipment and storage medium | |
| US20250168203A1 (en) | Multi-cloud assessment framework for dynamic cloud workloads | |
| CN118365437A (en) | Method, device, equipment and medium for generating card recommendation information for bank card | |
| KR20190112975A (en) | System for providing consulting service for communication products and method thereof | |
| CN117176576A (en) | Network resource changing method, device, equipment and storage medium | |
| CN114140091B (en) | Operation record display method, device, equipment and medium | |
| CN118411254A (en) | Resource allocation method and device, electronic equipment and computer readable storage medium | |
| CN116797024A (en) | Service processing method, device, electronic equipment and storage medium | |
| CN112785197B (en) | Information recommendation method, apparatus, computing device, medium and program product | |
| CN116451938A (en) | Task processing method and device, electronic equipment and storage medium | |
| CN113919914B (en) | Resource management method, platform, electronic device, storage medium and program product | |
| KR20060086619A (en) | ERP system-based audit information system, method of operating audit information using the same, and recording media recording the program | |
| US9741059B1 (en) | System and method for managing website scripts | |
| CN118350938A (en) | Transaction processing method, apparatus, device, storage medium, and program product |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |