Disclosure of Invention
According to the problems in the prior art, the medicine inventory allocation system and method are provided, allocation requirements are classified, the acquired adjustable inventory information and the pre-stored allocation rule information are combined to be solved comprehensively, an optimal allocation scheme is obtained and output to a user, and therefore balance is found between allocation quantity maximization and allocation time minimization, inventory among all warehouses is balanced, and manpower and material resources consumed by allocation are saved.
The technical scheme specifically comprises the following steps:
a drug inventory allocation system comprising:
the system comprises an input module, a storage module and a transfer module, wherein the input module is used for inputting transfer demand information, and the transfer demand information comprises at least one identification information of a warehouse to be transferred, at least one identification information of a medicine to be transferred corresponding to the identification information of the warehouse to be transferred, and at least one quantity to be transferred corresponding to the identification information of the medicine to be transferred;
the classification module is connected with the input module and is used for classifying the allocation demand information according to the identification information of the to-be-allocated drugs to obtain classification information, wherein the classification information comprises the identification information of the to-be-allocated drugs, all identification information of warehouses to be allocated corresponding to the identification information of the to-be-allocated drugs and the to-be-allocated quantity corresponding to each identification information of the warehouses to be allocated;
the acquisition module is connected with the classification module and used for acquiring the current inventory of each medicine warehouse according to the classification information to generate adjustable inventory information, and the adjustable inventory information comprises adjustable warehouse identification information and corresponds to the adjustable quantity of the adjustable warehouse identification information;
the processing module is connected with the acquisition module and the classification module and is used for processing according to the classification information, the adjustable inventory information and preset allocation rule information among all warehouses to obtain an allocation scheme, and the allocation scheme comprises allocation direction information and a planned allocation amount corresponding to the allocation direction information;
and the output module is connected with the processing module and used for outputting the allocation scheme to a user.
Preferably, the transfer direction information includes transfer warehouse identification information and transfer warehouse identification information.
Preferably, the allocation rule information includes allocation direction constraint information and allocation time information required for allocation among the warehouses;
obtaining the following dialing direction matrix according to the dialing direction constraint information:
obtaining the following time matrix according to the allocation time information:
wherein,
is used for indicating whether the medicine warehouse i can allocate the medicine to the medicine warehouse j, when
If =1, it means that the medicine warehouse i can transfer the medicine to the medicine warehouse j, and when the medicine warehouse j is ready to transfer the medicine
When the value is not less than =0, the medicine warehouse i cannot transfer the medicine to the medicine warehouse j;
which represents the time it takes for the drug warehouse i to dial a drug to the drug warehouse j.
Preferably, the processing module processes the call plan according to the following algorithm model:
a first objective function:
;
a second objective function:
;
constraint conditions are as follows:
;
;
;
wherein,
for representing the callable quantity of a drug warehouse i;
for indicating the quantity to be called of the drug warehouse j;
the system is used for representing the planned allocation amount of the medicine warehouse i to the medicine warehouse j;
preferably, the processing module solves the algorithm model by a simplex iterative solution method to obtain an optimal solution of the first objective function and the second objective function, and outputs the optimal solution as the allocation scheme.
A method of drug inventory allocation, comprising:
step S1, inputting allocation demand information, wherein the allocation demand information comprises at least one to-be-called warehouse identification information, at least one to-be-called medicine identification information corresponding to the to-be-called warehouse identification information, and at least one to-be-called quantity corresponding to the to-be-called medicine identification information;
step S2, classifying the allocation demand information according to the identification information of the to-be-allocated drugs to obtain classification information, wherein the classification information comprises the identification information of the to-be-allocated drugs, all the identification information of the to-be-allocated warehouses corresponding to the identification information of the to-be-allocated drugs and the to-be-allocated quantity corresponding to each identification information of the to-be-allocated warehouses;
step S3, collecting the current stock of each medicine warehouse according to the classification information to generate adjustable stock information, wherein the adjustable stock information comprises adjustable warehouse identification information and corresponds to the adjustable quantity of the adjustable warehouse identification information;
and step S4, processing according to the classification information, the adjustable inventory information and preset allocation rule information among all warehouses to obtain and output an allocation scheme, wherein the allocation scheme comprises allocation direction information and a planned allocation amount corresponding to the allocation direction information.
Preferably, the transfer direction information includes transfer warehouse identification information and transfer warehouse identification information.
Preferably, the allocation rule information includes allocation direction constraint information and allocation time information required for allocation among the warehouses;
obtaining the following dialing direction matrix according to the dialing direction constraint information:
obtaining the following time matrix according to the allocation time information:
wherein,
is used for indicating whether the medicine warehouse i can allocate the medicine to the medicine warehouse j, when
If =1, it means that the medicine warehouse i can transfer the medicine to the medicine warehouse j, and when the medicine warehouse j is ready to transfer the medicine
When the value is not less than =0, the medicine warehouse i cannot transfer the medicine to the medicine warehouse j;
which represents the time it takes for the drug warehouse i to dial a drug to the drug warehouse j.
Preferably, in the step S4, the dialing scheme is obtained according to the following algorithm model processing:
a first objective function:
;
a second objective function:
;
constraint conditions are as follows:
;
;
;
wherein,
for representing the callable quantity of a drug warehouse i;
for indicating the quantity to be called of the drug warehouse j;
the system is used for representing the planned allocation amount of the medicine warehouse i to the medicine warehouse j;
preferably, in the step S4, the algorithm model is solved through a simplex iterative solution method, so as to obtain an optimal solution of the first objective function and the second objective function, and output the optimal solution as the allocation plan.
The beneficial effects of the above technical scheme are that:
the medicine inventory allocation system and method are provided, the allocation requirements are classified, the acquired adjustable inventory information and the pre-stored allocation rule information are combined to perform comprehensive solution, an optimal allocation scheme is obtained and output to a user, and therefore balance is found between allocation quantity maximization and allocation time minimization, inventory among all warehouses is balanced, and manpower and material resources consumed by allocation are saved.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
The invention is further described with reference to the following drawings and specific examples, which are not intended to be limiting.
A drug inventory allocation system, as shown in fig. 1, comprising:
the system comprises an input module 1, a storage module and a scheduling module, wherein the input module 1 is used for inputting scheduling demand information, and the scheduling demand information comprises at least one to-be-scheduled warehouse identification information, at least one to-be-scheduled medicine identification information corresponding to the to-be-scheduled warehouse identification information, and at least one to-be-scheduled quantity corresponding to the to-be-scheduled medicine identification information;
the classification module 2 is connected with the input module 1 and is used for classifying the dialing demand information according to the identification information of the to-be-called drugs to obtain classification information, wherein the classification information comprises the identification information of the to-be-called drugs, all the identification information of the to-be-called warehouses corresponding to the identification information of the to-be-called drugs and the to-be-called quantity corresponding to each identification information of the to-be-called warehouses;
the acquisition module 3 is connected with the classification module 2 and used for acquiring the current inventory of each medicine warehouse according to the classification information to generate adjustable inventory information, and the adjustable inventory information comprises adjustable warehouse identification information and corresponds to the adjustable quantity of the adjustable warehouse identification information;
the processing module 4 is connected with the acquisition module 3 and the classification module 2 and is used for processing according to the classification information, the adjustable inventory information and preset allocation rule information among all warehouses to obtain an allocation scheme, and the allocation scheme comprises allocation direction information and a planned allocation amount corresponding to the allocation direction information;
and the output module 5 is connected with the processing module 4 and is used for outputting the allocation scheme to the user.
As a preferred embodiment, the input module 1 of the drug inventory allocating system disclosed in the present invention is used for providing users with allocation information required for inputting, where the allocation information may be input by manual statistics, or may be set with a corresponding rule in advance, and when the stock of a certain drug in a certain warehouse is lower than a predetermined value, the corresponding allocation requirement information is automatically generated and sent to the input module 1. The allocation demand information comprises identification information of warehouses to be allocated, identification information of medicines to be allocated and the number of the warehouses to be allocated, in a specific embodiment of the invention, the identification information content of the warehouses to be allocated is the serial number of the warehouses to be allocated in the system, wherein each warehouse corresponds to a determined unique serial number which is used as the identity of the warehouse in the system; the identification information of the to-be-called medicine is information capable of uniquely identifying a certain medicine, and in this embodiment, the identification code of the medicine is used as the identification information of the to-be-called medicine; the number to be called is the total amount of the medicine, and in this embodiment, the specification is rounded by taking the box as a unit to be used as the final number to be called. In this embodiment, the allocation demand information may include a plurality of to-be-allocated warehouse identification information and a plurality of to-be-allocated medicine identification information at the same time, that is, different warehouses may need to allocate one or more medicines, and therefore, in the allocation demand information, it is necessary to clearly distinguish the number of warehouses that need the first kind of medicines and how many boxes the number of medicines need to be.
The
classification module 2 is used for counting and classifying all input allocation demand information, classifying the allocation demand information according to identification information of the medicines to be allocated, and counting all demand warehouses of each specific medicine to be allocated
And the number of demands corresponding to the demand warehouse
(ii) a Then the
acquisition module 3 identifies the identification information of the traditional Chinese medicine according to the classification informationCollecting information of each medicine warehouse in the system to obtain the inventory of the medicine in each medicine warehouse, calculating the adjustable quantity of each medicine warehouse aiming at the medicine type according to the inventory, and specifically selecting the total inventory (including in-transit goods) of the medicine in each adjustable warehouse
And existing adjustable inventory
Calculating the surplus inventory of each transfer bin for the medicine
,
Wherein
according to the number of turnover days corresponding to the existing stock and the warehouse
To calculate, i.e.
Wherein S is used for representing the current stock of each dispatch bin, and De is used for representing the average daily demand of each dispatch bin.
The adjustable number as described hereinbefore
Can be obtained by adopting the following formula:
in a preferred embodiment of the present invention, the allocation direction information includes an outbound warehouse identification information and an inbound warehouse identification information.
In a preferred embodiment of the invention, the allocation rule information comprises allocation direction constraint information and allocation time information required by allocation among all warehouses;
obtaining the following dialing direction matrix according to the dialing direction constraint information:
obtaining the following time matrix according to the dialing time information:
wherein,
is used for indicating whether the medicine warehouse i can allocate the medicine to the medicine warehouse j, when
If =1, it means that the medicine warehouse i can transfer the medicine to the medicine warehouse j, and when the medicine warehouse j is ready to transfer the medicine
When the value is not less than =0, the medicine warehouse i cannot transfer the medicine to the medicine warehouse j;
which represents the time it takes for the drug warehouse i to dial a drug to the drug warehouse j.
Specifically, in this embodiment, the matrix a is a rule matrix that determines whether a certain drug can be allocated between the bins, and the rule matrix is artificially created according to actual conditions, specifically considering whether the policy between the candidate outgoing bin and the demand bin allows allocation, whether logistics distribution allows allocation, whether the drug type is OTC drug, and other factors.
In the preferred embodiment of the present invention, the processing module 4 obtains the call scheme according to the following algorithm model processing:
a first objective function:
;
a second objective function:
;
constraint conditions are as follows:
;
;
;
wherein,
for indicating the callable amount of the drug warehouse i;
used for representing the to-be-called quantity of the medicine warehouse j;
the system is used for representing the planned allocation amount of the medicine warehouse i to the medicine warehouse j;
specifically, in this embodiment, a first objective function model and a second objective function model are established, corresponding constraint conditions are added according to actual situations, a simplex method is adopted to iteratively solve to obtain a transfer amount with a direction, the stock in transit is optimized and solved by the same method, and finally a planned transfer amount with a direction is obtained.
In the preferred embodiment of the present invention, the processing module 4 solves the algorithm model by a simplex iterative solution method to obtain an optimal solution of the first objective function and the second objective function, and outputs the optimal solution as a call plan.
A method for allocating drug inventory, as shown in FIG. 2, comprises
Step S1, inputting allocation demand information, wherein the allocation demand information comprises at least one to-be-called warehouse identification information, at least one to-be-called medicine identification information corresponding to the to-be-called warehouse identification information, and at least one to-be-called quantity corresponding to the to-be-called medicine identification information;
step S2, classifying the dialing demand information according to the identification information of the to-be-called medicines to obtain classification information, wherein the classification information comprises the identification information of the to-be-called medicines, all the identification information of the to-be-called warehouses corresponding to the identification information of the to-be-called medicines and the to-be-called quantity corresponding to each identification information of the to-be-called warehouses;
step S3, collecting the current stock of each medicine warehouse according to the classification information to generate adjustable stock information, wherein the adjustable stock information comprises adjustable warehouse identification information and corresponds to the adjustable quantity of the adjustable warehouse identification information;
and step S4, processing according to the classification information, the adjustable inventory information and preset allocation rule information among all warehouses to obtain and output an allocation scheme, wherein the allocation scheme comprises allocation direction information and a planned allocation amount corresponding to the allocation direction information.
In a preferred embodiment of the present invention, the allocation direction information includes an outbound warehouse identification information and an inbound warehouse identification information.
In a preferred embodiment of the invention, the allocation rule information comprises allocation direction constraint information and allocation time information required by allocation among all warehouses;
obtaining the following dialing direction matrix according to the dialing direction constraint information:
obtaining the following time matrix according to the dialing time information:
wherein,
is used for indicating whether the medicine warehouse i can allocate the medicine to the medicine warehouse j, when
If =1, it means that the medicine warehouse i can transfer the medicine to the medicine warehouse j, and when the medicine warehouse j is ready to transfer the medicine
When the value is not less than =0, the medicine warehouse i cannot transfer the medicine to the medicine warehouse j;
which represents the time it takes for the drug warehouse i to dial a drug to the drug warehouse j.
In the preferred embodiment of the present invention, in step S4, the dialing scheme is obtained according to the following algorithm model processing:
a first objective function:
;
a second objective function:
;
constraint conditions are as follows:
;
;
;
wherein,
for indicating the callable amount of the drug warehouse i;
used for representing the to-be-called quantity of the medicine warehouse j;
the system is used for representing the planned allocation amount of the medicine warehouse i to the medicine warehouse j;
in the preferred embodiment of the present invention, in step S4, the algorithm model is solved through a simplex iterative solution method, so as to obtain an optimal solution of the first objective function and the second objective function, and output the optimal solution as a call plan.
The beneficial effects of the above technical scheme are that:
the medicine inventory allocation system and method are provided, the allocation requirements are classified, the acquired adjustable inventory information and the pre-stored allocation rule information are combined to perform comprehensive solution, an optimal allocation scheme is obtained and output to a user, and therefore balance is found between allocation quantity maximization and allocation time minimization, inventory among all warehouses is balanced, and manpower and material resources consumed by allocation are saved.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention.