CN107484429B - Cash-out control method and system of financial terminal and financial terminal - Google Patents

Cash-out control method and system of financial terminal and financial terminal Download PDF

Info

Publication number
CN107484429B
CN107484429B CN201780000226.3A CN201780000226A CN107484429B CN 107484429 B CN107484429 B CN 107484429B CN 201780000226 A CN201780000226 A CN 201780000226A CN 107484429 B CN107484429 B CN 107484429B
Authority
CN
China
Prior art keywords
money
cash
distribution
amount
loose
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.)
Active
Application number
CN201780000226.3A
Other languages
Chinese (zh)
Other versions
CN107484429A (en
Inventor
谢卫平
王庆华
谢兴锋
潘海韬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yihua Computer Co Ltd
Original Assignee
Shenzhen Yihua Computer Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Yihua Computer Co Ltd filed Critical Shenzhen Yihua Computer Co Ltd
Publication of CN107484429A publication Critical patent/CN107484429A/en
Application granted granted Critical
Publication of CN107484429B publication Critical patent/CN107484429B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F19/00Complete banking systems; Coded card-freed arrangements adapted for dispensing or receiving monies or the like and posting such transactions to existing accounts, e.g. automatic teller machines
    • G07F19/20Automatic teller machines [ATMs]
    • G07F19/203Dispensing operations within ATMs

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention provides a cash-out control method and system of a financial terminal and the financial terminal. The method comprises the following steps: acquiring the money drawing amount of a user, money bundling information and money scattering information of a current financial terminal; carrying out money distribution calculation according to the money drawing amount of the user, money bundling information and money scattering information to obtain a money distribution result; and calling the money distribution result, and respectively carrying out money outlet of the bundled money and money outlet of the scattered money. In the process of distributing the banknotes, the banknote bundling and distributing technology is combined with the banknote scattering technology, and then the banknotes are respectively bundled and scattered according to the banknote distributing result. Because the number of the bundled banknotes is generally larger, the requirement of a user for large-amount banknote dispensing can be met when the whole bundle of banknotes is dispensed, the banknote dispensing time is shortened, and the probability of banknote dispensing faults is reduced; the loose money can be dispensed in the amount required by the user, the range of the money dispensing amount of the user is increased, and the user experience is improved.

Description

Cash-out control method and system of financial terminal and financial terminal
Technical Field
The embodiment of the invention belongs to the technical field of financial equipment, and particularly relates to a cash-out control method and system of a financial terminal and the financial terminal.
Background
With the application and development of computer technology and communication technology in the financial industry, people rely on financial self-service terminals (such as Automatic Teller Machines (ATMs)) more and more strongly. At present, financial self-service terminals mostly dig out banknotes from a banknote box one by one during banknote output, then select and identify the banknotes, the qualified banknotes are stacked in a temporary storage device, the unqualified banknotes are recovered in a waste banknote box, the process is generally called banknote counting, the number of the banknotes needed by the service is counted, and then the banknotes stacked on the temporary storage device are sent to a banknote outlet to be taken by a user. At present, the currency counting performance of a cassette mechanism is generally 8 sheets per second, if the cash is withdrawn in large amount, the time for counting the currency is longer, in addition, the time for recovering the currency is possibly consumed, and if the quality of the currency in a currency box is poorer, the recovery rate of the currency is higher, the time for counting the currency is longer. Generally, 500 high quality banknotes are dispensed in at least one minute or more, and if the quality of the banknotes is low, two minutes or more may be required, and sometimes even a banknote jam occurs. Because the cash output amount is several times, even dozens of times, of the ordinary money withdrawing business when the large amount of cash is output, the probability of the cash clamping of the machine core is several times, dozens of times or even higher than that of the ordinary money withdrawing business, and the utilization rate of the machine core is not high in terms of actual working time; meanwhile, when large amount of money is withdrawn, the number of the dispensed money is large, the money is dispensed for a long time, and the cash rushing business is multiplied due to the increase of the failure rate of the money clamping, so that a lot of unnecessary expenses are brought to a bank system and a network.
Therefore, a new cash dispensing control method for a financial terminal is needed to solve the above technical problems.
Disclosure of Invention
The invention provides a financial terminal cash-out control method, a financial terminal cash-out control system and a financial terminal, and aims to solve the problem that cash cannot be quickly dispensed according to the cash-out quantity required by a user under the condition of large-amount cash-out in a cash-out method provided by the prior art.
In a first aspect of the present invention, a cash-out control method for a financial terminal is provided, where the cash-out control method for the financial terminal includes:
acquiring the money drawing amount of a user, money bundling information and money scattering information of a current financial terminal;
carrying out money distribution calculation according to the money drawing amount of the user, money bundling information and money scattering information to obtain a money distribution result;
and calling the money distribution result, and respectively carrying out money outlet of the bundled money and money outlet of the scattered money.
In a second aspect of the present invention, there is provided a cash discharge control system of a financial terminal, the cash discharge control system of the financial terminal including:
the information acquisition unit is used for acquiring the money drawing amount of a user, money bundling information and money scattering information of the current financial terminal;
the money distribution unit is used for carrying out money distribution calculation according to the money drawing amount of the user, the money bundling information and the money scattering information to obtain a money distribution result;
and the cash outlet unit is used for calling the cash distribution result and respectively carrying out cash outlet of the bundled cash and cash outlet of the scattered cash.
In a third aspect of the present invention, there is provided a financial terminal comprising:
the input equipment is used for acquiring the money drawing amount of the user;
the processor is used for binding the money information and the money scattering information of the current financial terminal, and carrying out money distribution calculation according to the money drawing amount of the user, the money binding information and the money scattering information to obtain a money distribution result;
and the output equipment is used for calling the money distribution result and respectively carrying out the money outlet of the bundled money and the money outlet of the scattered money.
After the invention obtains the withdrawal information of the user, firstly, the withdrawal amount of the user, and all the bundled note information and the loose note information of the current financial terminal are obtained; and (3) distributing the banknotes for the withdrawal task of the user according to the banknote bundling information and the banknote scattering information, combining the banknote bundling and distributing technology with the banknote scattering technology in the banknote distributing process, and then respectively distributing the bundled banknotes and the scattered banknotes according to the banknote distributing result. Because the number of the bundled banknotes is generally larger, the requirement of a user for large-amount banknote dispensing can be met when the whole bundle of banknotes is dispensed, the banknote dispensing time is shortened, and the probability of banknote dispensing faults is reduced; the loose money can be dispensed in the amount required by the user, the range of the money dispensing amount of the user is increased, and the user experience is improved.
Drawings
Fig. 1 is a flowchart illustrating a cash dispensing control method of a financial terminal according to a first embodiment of the present invention;
fig. 2 is a detailed flowchart of step S12 in fig. 1;
fig. 3 is a detailed flowchart of step S121 in fig. 2;
fig. 4 is a detailed flowchart of step S122 in fig. 2;
fig. 5 is a block diagram of a cash dispensing control system of a financial terminal according to a second embodiment of the present invention;
fig. 6 is a detailed block diagram of the dispensing unit 22 of fig. 5;
fig. 7 is a block diagram of the bundled note dispensing module 221 of fig. 6;
fig. 8 is a block diagram of the loose banknote dispensing module 22 of fig. 6;
fig. 9 is a schematic structural diagram of a financial terminal according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
After receiving withdrawal information of a user, a financial terminal firstly acquires the withdrawal amount of the user, and all bundled note information and loose note information of the current financial terminal; and distributing the banknotes for the money withdrawing task of the user according to the banknote bundling information and the banknote scattering information, calling a banknote distribution result, and respectively carrying out banknote bundling and banknote scattering according to the called banknote distribution result. Therefore, when a user withdraws money in large amount, a mode of combining whole bundle of cash and scattered cash is adopted. The number of the bundled banknotes is generally larger, the whole bundle of banknotes is output, the banknote output time is shortened, and the probability of banknote output faults is reduced.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
The first embodiment is as follows:
fig. 1 is a flowchart illustrating a cash dispensing control method of a financial terminal according to a first embodiment of the present invention, which is detailed as follows:
at present, financial terminal equipment generally only can dispense loose banknotes when performing a user deposit task, and for example, a circulating all-in-one machine and a cash dispenser put into operation in the market need to count and verify banknotes one by one, and then deliver the banknotes to a user. The cash dispenser is very suitable for small-amount cash dispensing occasions, and for large-amount cash dispensing, particularly for large-amount cash dispensing, the cash dispensing mode of loose cash is easy to cause accidents such as cash jamming and the like, so that the transaction is failed; under the condition, the business roll-back processing process is complicated, especially, the situation that the money is not output to meet the withdrawal amount due to the abnormal money output under the condition that a user takes a part of the money is caused, and the situation that the money is not output to meet the withdrawal amount is easy to bring dissatisfaction to large bank customers and great damage is brought to high-quality bank services due to large related amount. Therefore, in order to make up for the deficiency of the loose-banknote dispensing method in the large-amount dispensing, the method for controlling the dispensing of the banknotes at the financial terminal according to this embodiment first:
step S11, obtaining the money drawing amount of the user, the money bundling information and the money scattering information of the current financial terminal;
in the step, a money amount M of the current withdrawal of the user is obtained, and money bundling information and money scattering information of the current financial terminal are obtained at the same time, wherein money bundling refers to putting a plurality of banknotes with the same denomination together to form a bundle and storing the bundle in financial equipment, for example, 20 banknotes with the denomination of 100 yuan are bundled into a bundle, or 50 banknotes with the denomination of 20 yuan are bundled into a bundle, and how to set each bundle of banknotes can also be set according to needs. Loose banknotes are individual banknotes of various denominations, for example a banknote of 50 dollars denomination. The money binding information includes: bound note type n, single bound amount A of each bound note1,A2,,…,AnAnd the number X of usable bound banknotes for each bound banknote1,X2,,…,XnX belongs to Z; the loose money information comprises: kinds m of loose banknotes, denomination B of each kind of loose banknotes1,B2,,…,BmAnd the number of loose banknotes available for each denomination Y1,Y2,,…,Ym,Y∈Z。
Step S12, the money distribution calculation is carried out according to the money drawing amount of the user, the money bundling information and the money scattering information to obtain the money distribution result;
distributing the money according to the money drawing amount M of the user and the money bundling and scattering information of the current financial terminal; setting the quantity of each bundle of money needed by the current user when the money drawing amount M is distributed as x1,x2,,…,xnX is an element of Z; the required number of loose banknotes is y1,y2,,…,ymY is equal to Z; wherein x is more than or equal to 01≤X1,0≤x2,≤X2,,…,0≤xn≤Xn;0≤y1≤Y1,0≤y2,≤Y2,,…,0≤ym≤Ym. Then there are: m ═ A1x1+A2x2+...+Anxn+B1y1+B2y2+...+Bmym
As shown in fig. 2, preferably, the calculating of the money distribution according to the money amount withdrawn by the user, the money bundling information, and the money scattering information to obtain a money distribution result includes:
step S121, distributing the whole bundle of dispensed banknotes according to the withdrawal amount of the user and the money bundling information to obtain a money bundling and distributing scheme and a money distributing mantissa;
step S122, distributing the single-sheet cash according to the cash distribution mantissa and the loose cash information, and determining a loose cash distribution scheme;
step S123, selecting one of the bundled note distribution schemes, and selecting one of the scattered note distribution schemes according to the note distribution mantissa corresponding to the selected bundled note distribution scheme;
and step S124, determining at least one type of money distribution result according to the selected bundled money distribution scheme and the selected loose money distribution scheme.
Specifically, when dispensing money to the withdrawal amount unit M of the user, first, a dispensing mantissa w is determined, and the bundled money is dispensed according to the dispensing mantissa w, where: w is B1y1+B2y2+...+BmymTherefore, if the total amount of the bundled banknotes is S, the following are provided: m-w ═ S ═ A1x1+A2x2+...+Anxn. Thus, x is determined from the dispense mantissa w1,x2,,…,xnThe value of (2) can determine the money distribution scheme of the bundled money. Then according to the determined cash-dispensing mantissa w, the formula w is equal to B1y1+B2y2+...+BmymDetermination of y1,y2,,…,ymAnd further determining the loose note distribution scheme.
For a specific dispensing mantissa w, the equation w is B1y1+B2y2+...+BmymThere may be multiple sets of solutions, i.e. each determined dispensing mantissa w corresponds to at least one dispensing scheme; in the case of a banknote-dispensing mantissa determination, S and a are used for the equation M-w1x1+A2x2+...+AnxnThere may also be at least one set of solutions; therefore, one of the obtained bundled-banknote distribution schemes and one of the obtained scattered-banknote distribution schemes are respectively selected according to the determined banknote distribution mantissas, so that a banknote distribution result matched with the money amount withdrawn by the user can be formed, and at least one banknote distribution result is formed.
As shown in fig. 3, preferably, the distributing of the whole bundle of dispensed banknotes according to the user money amount and the bundle banknote information to obtain a bundle banknote distribution scheme and a banknote distribution mantissa specifically includes:
step S1211, determining the maximum common divisor of the single bundle amount of each bundle of money according to the bundle of money information;
step S1212, determining the currency-dispensing mantissa according to the user money-withdrawing amount, so that the difference between the user money-withdrawing amount and the currency-dispensing mantissa can be divided exactly by the maximum common divisor of the single bundle of currency of the bundle of currency; the currency distribution mantissa satisfies: the currency distribution mantissa is not less than 0 and not more than the withdrawal amount of the user;
and step S1213, determining at least one bundled note dispensing scheme according to the dispensing mantissa.
Specifically, when determining the money distribution scheme of the bundled money, the equation M-w is determined to be S-A1x1+A2x2+...+AnxnThe integer solution of (a). At this time, the single bundle amount A of each bundle note is first determined1,A2,,…,AnThe greatest common divisor (gcd) of (1), is denoted as gcd (A)1,A2,,…,An) (ii) a Determining a dispensing mantissa w such that (M-w) satisfies: 0-w-M, and can be gcd (A)1,A2,,…,An) Trimming; obtaining an equation M-w-S-A according to the determined cash-dispensing mantissa w1x1+A2x2+...+AnxnThe integer solution of (2). Otherwise, if S cannot be gcd (A)1,A2,,…,An) When the paper money is completely removed, the paper money is bound under the current paper money distribution mantissa wAnd (5) if the paper money distribution fails, bundling and distributing the paper money after the paper money distribution mantissa w is adjusted.
A is detailed below1x1+A2x2+...+AnxnThe solution process of the integer solution of (2).
For equation S ═ A1x1+A2x2+...+Anxn(1)
If the n-element integral coefficient is not definite, the equation S is A1x1+A2x2+...+AnxnSatisfies gcd (A)1,A2,,…,An) If greater than 1, the equation is divided equally on both sides by gcd (A)1,A2,,…,An) Obtaining an n-element one-time integer coefficient indefinite equation s ═ a1x1+a2x2+...+anxnWherein gcd (a)1,a2,,…,an)=1。
For an n-ary integral coefficient indefinite equation s ═ a1x1+a2x2+...+anxnIn (1), judgment of1,a2,,…,anIf two co-prime coefficients exist, the two co-prime coefficients are not set as (a)1,a2,) Then the equation s is a1x1+a2x2+...+anxnConversion into a1x1+a2x2=s-(a3x3+...+anxn). Let a1x1+a2x2One special solution of ═ 1 is (x)01,x02) (equation a)1x1+a2x21 refers to the following method for specification), then s ═ a1x1+a2x2+...+anxnThe general solution of (A) is as follows:
Figure GDA0001402306230000061
wherein t, x3,x4,…,xnE, Z, and combining the money drawing amount of the user according to the value range of t to obtain a plurality of groups of money bundling and money distributing schemes.
Equation a1X1+a2X2Special solution solving method of m
Equation a with indefinite form of linear integral coefficient1X1+a2X2M, wherein gcd (a)1,a2) General solution formula X ═ 11=X01+a2t,X2=X02-a1t where t is a free variable taking an integer, X01、X02Is a1X1+a2X2Solving a binary one-time indeterminate equation a by m1X1+a2X2The essence of a special solution of m is to find the integer x10,x20Make the linear combination of a and b satisfy a1x10+a2x20=m。
The initial row transformation of the matrix can be utilized, and the solution method of the special solution is as follows:
1) building a matrix
Figure GDA0001402306230000071
2) For matrix
Figure GDA0001402306230000072
Performing primary row transformation of the matrix, wherein the row primary transformation method comprises the following steps:
2a) multiplying a certain row element of the matrix by a non-zero integer to obtain a new row;
2b) multiplying a certain row element of the matrix by an integer k (k ≠ 0) and adding the multiplied integer k to the corresponding element of another row of the matrix to obtain a new row.
3) Make the matrix
Figure GDA0001402306230000073
Through line equal transformation into
Figure GDA0001402306230000074
Wherein (r | m).
One of the linear combination methods is to use a rolling phase division method to obtain the remainder: due to a1And a2Relatively prime, the remainder of the division by the rolling will not be zero. Is not provided with a1>a2Then a is1Can be represented as a1=k1a2+r1(r1<a2) If r is1Not equal to 1, then a2Can be represented as a2=k2r1+r2(r2<r1) If r is2Not equal to 1 continues until ri1 or so. Such as
Figure GDA0001402306230000075
4) Can obtain a1X1+a2X2One special solution is m
Figure GDA0001402306230000076
5) Will be provided with
Figure GDA0001402306230000077
Substitution of X1=X01+a2t,X2=X02-a1t, obtaining
Figure GDA0001402306230000078
The solving process is described below with reference to examples: 5X1+2X2The transformation of the demonstration is carried out according to m
Figure GDA0001402306230000081
Can obtain X10=m+2t,X20=-2m-5t
If the n-element first integral coefficient indefinite equation s is a1x1+a2x2+...+anxn,(a1,a2,,…,an) There are no two co-prime coefficients due to a1,a2,…,anIs greater than 1, a coefficient with the smallest absolute value is called and set as a1,a1>0, then the other writings can be represented as: a isi=kia1+ri,0≤ri<a1(i ═ 2,3, …, n.) this time the original equation can be converted to: a is1(x1+k2x2+…+knxn)+r2x2+r3x3+…+rnxnIf a ═ s1,r2,r3,…,rnIf there are two of them, s is a1*x1+a2*x2+…+an*xn,(a1,a2) The method described in co-prime yields equation a1(x1+k2x2+…+knxn)+r2x2+r3x3+…+rnxnThe solution of S. If a1,r2,r3,…,rnAny two of which are not co-prime, the smallest coefficient is called again, the other coefficients are represented by the smallest coefficient, and conversion is performed again until two are co-prime. And then obtaining the solution of the equation after conversion. If 1170 is 6x +10y +15z, 1170 may be converted to 6(x + y +2z) +4y +3z, 1170 is x + y +2z, 1170 is 6u +4y +3z, where the coefficients 4 for y and 3 for z are relatively prime. And (4) solving according to the method.
The following describes the solution process of the above equation (1) with reference to specific examples:
suppose that the financial terminal has four bundles of banknotes, and the money amount of each bundle of banknotes is 100 yuan, 50 yuan, 20 yuan and 15 yuan, namely A1=100,A2=50,A3=20,A415. The remaining available banknote bundle numbers are: x1=15,X2=10,X3=18,X420. If the user's money transfer amount is 156 Yuan 5, the maximum common divisor of 100,50,20, 15 is 5, 1565% gcd (100,50,20,5) ═ 0 according to 100x1+50x2+20x3+15x41565 on both sides, and 20 ×, obtained1+10x2+4x3+3x4313 since x3、x4Coprime, so the equation becomes a one-dimensional equation: 4x3+3x4=313-20x1-10x2FromAt 4x3+3x4The general solution for 1 is:
Figure GDA0001402306230000082
then 4x3+3x4=313-20x1-10x2The general solution of (A) is as follows:
Figure GDA0001402306230000083
namely, it is
Figure GDA0001402306230000091
From 0 to x1≤X1,0≤x2≤X2,0≤x3≤X3,0≤x4≤X4And X1=15,X2=10,X3=18,X420 gives 0. ltoreq.X1≤15,0≤X2≤10,0≤X3≤18,0≤X4Not more than 20, then-87 is not more than 313-20x1-10x2Not more than 313, and determining the value range of t to be not less than 145 and not more than 527.
the total value of t is 145+527+ 1-673, t can be any one of-145, -144, -143 …, 526,527, and each value of t can obtain a group of values of x1, x2, x3 and x 4.
As shown in fig. 4, preferably, the allocating the single-sheet output banknotes according to the banknote allocation mantissa and the loose banknote information, and determining the loose banknote allocation scheme specifically include:
step S1221, determining the largest common divisor of the cash distribution mantissa and the cash dispensing denomination according to the cash dispensing information;
step S1222, determining at least one loose banknote dispensing scheme according to at least one loose banknote dispensing rule and combining the dispensing mantissa and the greatest common divisor of the loose banknote denomination.
Specifically, after the bundled note distribution scheme is obtained, loose notes are distributed according to the determined note distribution mantissa w. By w ═ B1y1+B2y2+...+BmymIt can be seen that when dispensing loose banknotes, w, B are determined1,B2,…BmThen according to the solving method of equation (1), the equation w is equal to B1y1+B2y2+...+BmymThe integral solution of the above steps can obtain the loose banknote distribution scheme.
Optionally, when dispensing the banknotes according to the money amount of the user, the single bundle amount of each bundle of banknotes can be regarded as the denomination of the loose banknotes, for example, the bundle of banknotes formed by 10 banknotes with 100 dollar size can be regarded as a loose banknote with 1000 dollar denomination, and then the loose banknote and the bundled banknote are dispensed together; the method comprises the following steps: the withdrawal amount of the user meets the following requirements: m ═ a1x1+A2x2+...+Anxn)+(B1y1+B2y2+...+Bmym) The banknote can be distributed according to the following four banknote distribution principles:
1) the maximum total number of bound paper money is determined
Figure GDA0001402306230000092
As large as possible, i.e. by
Figure GDA0001402306230000093
2) The principle of maximum total money amount of money binding is adopted, at the moment
Figure GDA0001402306230000094
As large as possible, i.e. by
Figure GDA0001402306230000095
3) The minimum total number of loose banknotes, at this time
Figure GDA0001402306230000096
As small as possible, i.e. it is desired to
Figure GDA0001402306230000097
4) The principle of minimum total amount of loose money, namely the principle of minimum number of tails of money distribution, is adopted, at the moment
Figure GDA0001402306230000101
As small as possible, i.e. it is desired to
Figure GDA0001402306230000102
The following description is made in conjunction with a specific user withdrawal example:
suppose that the financial terminal equipment is equipped with two bundles of banknotes, namely 15 bundles of 1 ten thousand yuan, 10 bundles of 1.5 ten thousand yuan, 12 of 50 yuan and 10 of 20 yuan, namely A1=10000,A2=15000,X1=15,X2=10,B1=50,B2=20,Y1=12,Y2=10。
If the user inputs 35550 yuan, 35550 yuan first<(10000 × 15+15000 × 10+50 × 12+20 × 10), and further the following is calculated for the dispensed banknote: 10000x1+15000x2+50y1+20y210000x for M1+15000x2=M-50y1-20y2Since S is not more than 35550 and the number divisible by 5000 is 35000, gcd (10000,15000) is 5000, and S is 35000, 10000x is calculated1+15000x235000, 2x1+3x2If 7, the process is verified and converted
Figure GDA0001402306230000103
Can obtain x1=-7+3t,x27-2t, x is smaller than or equal to 01≤15,0≤x2Less than or equal to 10, can be obtained
Figure GDA0001402306230000104
t is an integer, t is 3, and x is obtained1=2,x21. At this time, 50y1+20y2550, get 5y1+2y255, matrix conversion
Figure GDA0001402306230000105
Can obtain y1=55+2t,y2-110-5t, since 0 ≦ y1≤12,0≤y2T is not less than 10, and the value range of t is not less than-24 and not more than-22.
Preferably, the loose banknotes are dispensed in five manners, i.e., an average dispensing manner, an average emptying manner, a minimum total number method, a maximum denomination priority manner, and a minimum denomination priority manner.
If the method is an average cash dispensing method, y is1≈y2I.e. by
Figure GDA0001402306230000106
Where σ is as small as possible. And because-168 is less than or equal to 7t is less than or equal to-154. So that t-24, σ -3, y1=7,y2The scheme of dispensing the requested loose banknotes is 10.
If it is a null method, there is y1-y212-10+ σ ≈ 2+ σ, where | σ | is as small as possible, i.e. 163+7t ≦ σ, and-24 ≦ t ≦ -22, so t ≦ -23, σ ≦ 2, y ≦ 221=9,y25 is the scheme of dispensing the requested loose banknotes.
If the total number of sheets is the minimum, there is (y)1+y2) As small as possible (-55-3t) as small as possible, and-24. ltoreq. t.ltoreq.22, to give t-22, y1=11,y2The scheme of dispensing the required loose banknotes is 0.
If it is the maximum denomination priority method, there is y1As large as possible, 55+2t is as large as possible, and-24. ltoreq. t.ltoreq.22, to give t-22, y1=11,y2The scheme of dispensing the required loose banknotes is 0.
If the method is the minimum denomination priority method, y is2As large as possible, then-110-5 t is as large as possible, and-24. ltoreq. t.ltoreq.22, to give t-24, y1=7,y2The scheme of dispensing the requested loose banknotes is 10.
For another example: when the withdrawal amount of the user is 135550 yuan, firstly, the withdrawal amount is judged: 135550<(10000x15+15000x10+50x12+20x10), when the withdrawal amount is less than the total amount held by the financial terminal, the bank note is dispensed: 10000x1+15000x2+50y1+20y210000x for M1+15000x2=M-50y1-20y2S. Wherein gcd (10000,15000) is 5000, and since it is not more than 135550 and is 135000 which can be evenly divided by 5000, and m is 135000, 10000x is calculated1+15000x2135000, 2 ×1+3x227. Matrix conversion of equations
Figure GDA0001402306230000111
Can obtain x1=-27+3t,x227-2t, since x is more than or equal to 0 ≦ x1≤15,0≤x2T is not more than 10, t is not less than 9 and not more than 13, t is an integer, t is 9, 10, 11, 12 and 13, and a plurality of solutions can be obtained: t is 9, x1=0,x2=9、t=10,x1=3,x2=7、t=11,x1=6,x2=5、t=12,x1=9,x2=3、t=13,x1=12,x21. The method is the same as the method when loose banknotes are dispensed, and the details are not repeated.
And step S13, calling the money distribution result, and respectively carrying out the money outlet of the bundled money and the money outlet of the scattered money.
Preferably, the calling the money distribution result to respectively perform the money discharging of the bundled money and the money discharging of the loose money comprises:
calling the bank note distribution result with the minimum bank note output tail number, and respectively carrying out bank note output of bundled bank notes and bank note output of scattered bank notes;
or calling the money distribution result according to the selection of the user, and respectively carrying out the money outlet of the bundled money and the money outlet of the scattered money.
Specifically, after the money is distributed according to the money drawing amount of the user to obtain the money distribution result, when the user does not select, the money is discharged according to the money distribution result selected by default at the financial terminal, namely, the money is discharged according to the scheme that the money distribution mantissa w is minimum, namely, the money bundling and money discharging amount is maximum. In addition, the money can be discharged according to the selection of the user. For example, the user may select the most currency bundles to be dispensed or the least total number of loose currency.
Preferably, before the calculating the money distribution according to the money drawing amount of the user, the money bundling information and the money scattering information to obtain a money distribution result, the method further comprises:
determining the maximum common divisor of the single bundle amount and the loose note denomination of the bundled notes;
judging whether the withdrawal amount of the user can be divided by the maximum common divisor of the single bundle amount of the bundled banknotes and the loose banknote denomination;
and returning a money distribution failure result when the money withdrawal amount of the user cannot be divided by the maximum common divisor of the single bundle amount of the bundled money and the loose money denomination.
Specifically, after receiving a withdrawal amount inputted by a user, firstly, the withdrawal amount is judged: if the money drawing amount of the user cannot be divided by the maximum common divisor of the single bundle amount of the bundled money and the loose money denomination, the money drawing amount required by the user cannot be given by the current financial terminal, and the money drawing failure occurs.
For example: suppose that the financial terminal is equipped with two bundles of banknotes, 1 ten thousand dollars in a bundle of 15 bundles (i.e., a bundle of 1 ten thousand dollars in amount of banknotes has 15 bundles), 1.5 ten thousand dollars in a bundle of 10 bundles, and another two bundles of 12 banknotes with a denomination of 50 dollars and 10 banknotes with a denomination of 20 dollars, i.e., a1=10000,A2=15000,X1=15,X2=10,B1=50,B2=20,Y1=12,Y2=10。
If the withdrawal amount of the user is 35545 yuan, the money allocation fails because the greatest common divisor of (10000,15000,50,20) is 10, 35545% gcd (50,20) is 5 ≠ 0;
or the money drawing amount of the user is 135545 yuan, since the greatest common divisor of (10000,15000,50,20) is 10, 135545% gcd (50,20) is 5 ≠ 0, and the money dispensing fails because the current financial terminal cannot give the money amount to the user.
In the first embodiment of the invention, money distribution is carried out on the money drawing amount of a user according to the obtained money binding information and money scattering information of the current financial terminal, a money distribution result is obtained, the money distribution of the money binding and the money scattering are respectively carried out during the money distribution, at least one money distribution result is obtained, then money is discharged according to the selected money distribution result, the money amount of a single bundle of money can be very large when the whole bundle of money is discharged, the requirement of large-amount money discharge is met, the money discharging time is shortened, and the fault probability during the money discharge is reduced; the single loose note can be used for counting the number of the dispensed notes required by the user, so that the range of the money dispensing amount of the user is increased; in addition, in the embodiment, when the banknote-out calculation is carried out, the banknote-bundling banknote-out result and the banknote-scattering banknote-out result are combined for calculation, so that the banknote-bundling banknote-out result is as large as possible, the banknote-scattering banknote-out result is as small as possible, and the banknote-out time is further shortened; and because various money distribution results are obtained in the money distribution process, the user can select the money outlet result according to the requirement, and the user experience is improved.
It should be understood that, in the embodiment of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiment of the present invention.
Example two:
fig. 2 is a block diagram illustrating a cash dispensing control system of a financial terminal according to a second embodiment of the present invention. For convenience of explanation, only portions related to the embodiments of the present invention are shown.
The cash dispensing control system of the financial terminal comprises: an information acquisition unit 21, a money distribution unit 22, and a money output unit 23; wherein:
an information acquisition unit 21 for acquiring a money drawing amount of a user, money binding information and money scattering information of a current financial terminal;
specifically, the information obtaining unit 21 obtains the amount M of money withdrawn by the current user, and obtains the money bundling information and the money scattering information of the current financial terminal, where the money bundling refers to putting a plurality of banknotes with the same denomination together to form a bundle and storing the bundle in the financial device, for example, 20 banknotes with 100 yuan denomination are bundled into a bundle, or 50 banknotes with 20 yuan denomination are bundled into a bundle, and how to set each bundle of banknotes may also be set as required. Loose banknotes are individual banknotes of various denominations, for example a banknote of 50 dollars denomination. The money binding information includes: bound note type n, single bound amount A of each bound note1,A2,,…,AnAnd the number X of usable bound banknotes for each bound banknote1,X2,,…,XnX belongs to Z; the loose money information comprises: kinds m of loose banknotes, denomination B of each kind of loose banknotes1,B2,,…,BmAnd the number of loose banknotes available for each denomination Y1,Y2,,…,Ym,Y∈Z。
The money distribution unit 22 is used for carrying out money distribution calculation according to the money drawing amount of the user, the money bundling information and the money scattering information to obtain a money distribution result;
specifically, distributing the money according to the money drawing amount M of the user and the money bundling and scattering information of the current financial terminal; setting the quantity of each bundle of money needed by the current user when the money drawing amount M is distributed as x1,x2,,…,xnX is an element of Z; the required number of loose banknotes is y1,y2,,…,ymY is equal to Z; wherein x is more than or equal to 01≤X1,0≤x2,≤X2,,…,0≤xn≤Xn;0≤y1≤Y1,0≤y2,≤Y2,,…,0≤ym≤Ym. Then there are: m ═ A1x1+A2x2+...+Anxn+B1y1+B2y2+...+Bmym
Preferably, the banknote dispensing unit 22 specifically includes:
the bundled-banknote distribution module 221 is used for distributing banknotes in a whole bundle according to the user money amount and the bundled-banknote information to obtain a bundled-banknote distribution scheme and a bundled-banknote distribution mantissa;
the loose note distribution module 222 is used for distributing single-piece discharged notes according to the note distribution mantissa and loose note information, and determining a loose note distribution scheme;
the banknote distribution scheme selection module 223 is used for selecting one of the bundled banknote distribution schemes and selecting one of the scattered banknote distribution schemes according to the banknote distribution mantissa corresponding to the selected bundled banknote distribution scheme;
and the banknote distribution result determining module 224 is used for determining at least one banknote distribution result according to the selected bundled banknote distribution scheme and the selected loose banknote distribution scheme.
Specifically, when dispensing money to the withdrawal amount unit M of the user, first, a dispensing mantissa w is determined, and the bundled money is dispensed according to the dispensing mantissa w, where: w is B1y1+B2y2+...+BmymTherefore, if the total amount of the bundled banknotes is S, the following are provided: m-w ═ S ═ A1x1+A2x2+...+Anxn. Thus, x is determined from the dispense mantissa w1,x2,,…,xnThe value of (2) can determine the money distribution scheme of the bundled money. Then according to the determined cash-dispensing mantissa w, the formula w is equal to B1y1+B2y2+...+BmymDetermination of y1,y2,,…,ymAnd further determining the loose note distribution scheme.
For a specific dispensing mantissa w, the equation w is B1y1+B2y2+...+BmymThere may be multiple sets of solutions, i.e. each determined dispensing mantissa w corresponds to at least one dispensing scheme; in the case of a banknote-dispensing mantissa determination, S and a are used for the equation M-w1x1+A2x2+...+AnxnThere may also be at least one set of solutions; therefore, one of the obtained bundled-banknote distribution schemes and one of the obtained scattered-banknote distribution schemes are respectively selected according to the determined banknote distribution mantissas, so that a banknote distribution result matched with the money amount withdrawn by the user can be formed, and at least one banknote distribution result is formed.
Preferably, the bundled banknote distribution module 221 specifically includes:
the first common divisor determination module 2211 is configured to determine the maximum common divisor of the single bundle amount of each bundle of banknotes according to the bundle of banknote information;
the bundled banknote distribution scheme determining module 2212 is configured to determine a banknote distribution mantissa according to the user money amount, so that a difference between the user money amount and the banknote distribution mantissa can be divisionally divided by a maximum common divisor of a single bundled banknote amount; the currency distribution mantissa satisfies: the currency distribution mantissa is not less than 0 and not more than the withdrawal amount of the user; and determining at least one bundled note dispensing scheme according to the dispensing mantissa.
Specifically, when determining the money distribution scheme of the bundled money, the equation M-w is determined to be S-A1x1+A2x2+...+AnxnThe integer solution of (a). At this time, the single bundle amount A of each bundle note is first determined1,A2,,…,AnGreatest common divisor of (great common divisor)sor, gcd) as gcd (A)1,A2,,…,An) (ii) a Determining a dispensing mantissa w such that (M-w) satisfies: 0-w-M, and can be gcd (A)1,A2,,…,An) Trimming; obtaining an equation M-w-S-A according to the determined cash-dispensing mantissa w1x1+A2x2+...+AnxnThe integer solution of (2). Otherwise, if S cannot be gcd (A)1,A2,,…,An) And (4) finishing, namely, the bundled banknotes fail to be dispensed under the current dispensing mantissa w, and the bundled banknotes are dispensed after the dispensing mantissa w is adjusted.
About S ═ A1x1+A2x2+...+AnxnThe solution process of the integer solution of (2) is referred to the solution process of equation (1), and is not described herein again. According to S ═ A1x1+A2x2+...+AnxnThe integer solution of (2) determines the money distribution scheme of the bundled money.
Preferably, the loose banknote distribution module 222 specifically includes:
the second common divisor determination module 2221 is configured to determine the largest common divisor of the banknote distribution mantissa and the banknote scattering denomination according to the banknote scattering information;
the loose note dispensing scheme determining module 2222 is configured to determine at least one loose note dispensing scheme according to at least one loose note dispensing rule by combining the dispensing mantissa and the maximum common divisor of the loose note denomination.
Specifically, after the bundled note distribution scheme is obtained, loose notes are distributed according to the determined note distribution mantissa w. By w ═ B1y1+B2y2+...+BmymIt can be seen that when dispensing loose banknotes, w, B are determined1,B2,…BmThen according to the solving method of equation (1), the equation w is equal to B1y1+B2y2+...+BmymThe integral solution of the above steps can obtain the loose banknote distribution scheme.
Alternatively, when dispensing money according to the money amount of the user, the single bundle amount of each bundle money can be regarded as the surface of loose moneyThe amount of the loose banknotes can be, for example, a single bundle of loose banknotes with the denomination of 1000 yuan, wherein the single bundle of loose banknotes is composed of 10 pieces of 100 yuan banknotes, and then the loose banknotes and the loose banknotes are distributed together; the method comprises the following steps: the withdrawal amount of the user meets the following requirements: m ═ a1x1+A2x2+...+Anxn)+(B1y1+B2y2+...+Bmym) The banknote can be distributed according to the following four banknote distribution principles:
1) the maximum total number of bound paper money is determined
Figure GDA0001402306230000161
As large as possible, i.e. by
Figure GDA0001402306230000162
2) The principle of maximum total money amount of money binding is adopted, at the moment
Figure GDA0001402306230000163
As large as possible, i.e. by
Figure GDA0001402306230000164
3) The minimum total number of loose banknotes, at this time
Figure GDA0001402306230000165
As small as possible, i.e. it is desired to
Figure GDA0001402306230000166
4) The principle of minimum total amount of loose money, namely the principle of minimum number of tails of money distribution, is adopted, at the moment
Figure GDA0001402306230000167
As small as possible, i.e. it is desired to
Figure GDA0001402306230000168
The following description is made in conjunction with a specific user withdrawal example:
suppose that the financial terminal device is equipped withTwo kinds of bundled banknotes, 1 ten thousand yuan one bundle is 15 bundles, 1.5 ten thousand yuan one bundle is 10 bundles, and the other two kinds of bundled banknotes can be scattered, and the denomination of the bundled banknotes is 50 yuan 12 and the denomination of the bundled banknotes is 20 yuan 10, namely A1=10000,A2=15000,X1=15,X2=10,B1=50,B2=20,Y1=12,Y2=10。
If the user inputs 35550 yuan, 35550 yuan first<(10000 × 15+15000 × 10+50 × 12+20 × 10), and further the following is calculated for the dispensed banknote: 10000x1+15000x2+50y1+20y210000x for M1+15000x2=M-50y1-20y2Since S is not more than 35550 and the number divisible by 5000 is 35000, gcd (10000,15000) is 5000, and S is 35000, 10000x is calculated1+15000x235000, 2x1+3x2If 7, the process is verified and converted
Figure GDA0001402306230000169
Can obtain x1=-7+3t,x27-2t, x is smaller than or equal to 01≤15,0≤x2Less than or equal to 10, can be obtained
Figure GDA00014023062300001610
t is an integer, t is 3, and x is obtained1=2,x21. At this time, 50y1+20y2550, get 5y1+2y255, matrix conversion
Figure GDA0001402306230000171
Can obtain y1=55+2t,y2-110-5t, since 0 ≦ y1≤12,0≤y2T is not less than 10, and the value range of t is not less than-24 and not more than-22.
Preferably, the loose banknotes are dispensed in five manners, i.e., an average dispensing manner, an average emptying manner, a minimum total number method, a maximum denomination priority manner, and a minimum denomination priority manner.
If the method is an average cash dispensing method, y is1≈y2I.e. by
Figure GDA0001402306230000172
Where σ is as small as possible. And because-168 is less than or equal to 7t is less than or equal to-154. So that t-24, σ -3, y1=7,y2The scheme of dispensing the requested loose banknotes is 10.
If it is a null method, there is y1-y212-10+ σ ≈ 2+ σ, where | σ | is as small as possible, i.e. 163+7t ≦ σ, and-24 ≦ t ≦ -22, so t ≦ -23, σ ≦ 2, y ≦ 221=9,y25 is the scheme of dispensing the requested loose banknotes.
If the total number of sheets is the minimum, there is (y)1+y2) As small as possible (-55-3t) as small as possible, and-24. ltoreq. t.ltoreq.22, to give t-22, y1=11,y2The scheme of dispensing the required loose banknotes is 0.
If it is the maximum denomination priority method, there is y1As large as possible, 55+2t is as large as possible, and-24. ltoreq. t.ltoreq.22, to give t-22, y1=11,y2The scheme of dispensing the required loose banknotes is 0.
If the method is the minimum denomination priority method, y is2As large as possible, then-110-5 t is as large as possible, and-24. ltoreq. t.ltoreq.22, to give t-24, y1=7,y2The scheme of dispensing the requested loose banknotes is 10.
For another example: when the withdrawal amount of the user is 135550 yuan, firstly, the withdrawal amount is judged: 135550<(10000x15+15000x10+50x12+20x10), when the withdrawal amount is less than the total amount held by the financial terminal, the bank note is dispensed: 10000x1+15000x2+50y1+20y210000x for M1+15000x2=M-50y1-20y2S. Wherein gcd (10000,15000) is 5000, and since it is not more than 135550 and is 135000 which can be evenly divided by 5000, and m is 135000, 10000x is calculated1+15000x2135000, 2 ×1+3x227. Matrix conversion of equations
Figure GDA0001402306230000181
Can obtain x1=-27+3t,x227-2t, since x is more than or equal to 0 ≦ x1≤15,0≤x2T is not less than 10, t is not less than 9 and not more than 13, t is an integer, can be obtainedTaking t as 9, 10, 11, 12, 13, multiple sets of solutions can be obtained: t is 9, x1=0,x2=9、t=10,x1=3,x2=7、t=11,x1=6,x2=5、t=12,x1=9,x2=3、t=13,x1=12,x21. The method is the same as the method when loose banknotes are dispensed, and the details are not repeated.
And the cash-out unit 23 is used for calling the cash-distributing result and respectively carrying out cash-out of the bound cash and cash-out of the scattered cash.
Preferably, the bill discharging unit 23 includes:
the first cash-out module is used for calling a cash distribution result with the minimum cash-out mantissa, and respectively performing cash-out of bundled cash and cash-out of scattered cash;
and the second cash-out module is used for respectively carrying out cash-out of the bound cash and cash-out of the scattered cash according to the cash-distribution result selected and called by the user.
Specifically, after the money is distributed according to the money drawing amount of the user to obtain the money distribution result, when the user does not select, the money is discharged according to the money distribution result selected by default at the financial terminal, namely, the money is discharged according to the scheme that the money distribution mantissa w is minimum, namely, the money bundling and money discharging amount is maximum. In addition, the money can be discharged according to the selection of the user. For example, the user may select the most currency bundles to be dispensed or the least total number of loose currency.
Preferably, the cash dispensing control system of the financial terminal further includes:
the third common divisor determination unit is used for determining the maximum common divisor of the single bundle amount and the loose note denomination of the bundled notes;
the money drawing amount judgment unit is used for judging whether the money drawing amount of the user can be divided by the maximum common divisor of the single bundle amount of the bundled money and the denomination of the scattered money; and returning a money distribution failure result when the money drawing amount of the user cannot be divisionally divided by the maximum common divisor of the single bundle amount of the bundled money and the loose money denomination.
Specifically, after receiving a withdrawal amount inputted by a user, firstly, the withdrawal amount is judged: if the money drawing amount of the user cannot be divided by the maximum common divisor of the single bundle amount of the bundled money and the loose money denomination, the money drawing amount required by the user cannot be given by the current financial terminal, and the money drawing failure occurs.
For example: suppose that the financial terminal is equipped with two bundles of banknotes, 1 ten thousand dollars in a bundle of 15 bundles (i.e., a bundle of 1 ten thousand dollars in amount of banknotes has 15 bundles), 1.5 ten thousand dollars in a bundle of 10 bundles, and another two bundles of 12 banknotes with a denomination of 50 dollars and 10 banknotes with a denomination of 20 dollars, i.e., a1=10000,A2=15000,X1=15,X2=10,B1=50,B2=20,Y1=12,Y2=10。
If the withdrawal amount of the user is 35545 yuan, the money allocation fails because the greatest common divisor of (10000,15000,50,20) is 10, 35545% gcd (50,20) is 5 ≠ 0;
or the money drawing amount of the user is 135545 yuan, since the greatest common divisor of (10000,15000,50,20) is 10, 135545% gcd (50,20) is 5 ≠ 0, and the money dispensing fails because the current financial terminal cannot give the money amount to the user.
In the second embodiment of the invention, an information acquisition unit acquires money binding information and money scattering information of a current financial terminal, a money distribution unit distributes money to a money amount withdrawn by a user and obtains a money distribution result, the money distribution of the bound money and the money scattering information are respectively carried out during the money distribution to obtain at least one money distribution result, and then a money outlet unit discharges the money according to the selected money distribution result, the money amount of a single bundle of bound money can be very large during the whole bundle of money is discharged, the requirement of large-amount money discharge is met, the money outlet time is shortened, and the fault probability during the money discharge is reduced; the loose bank note can be dispensed with the amount of bank notes required by the user, so that the range of the bank note dispensing amount of the user is increased; in addition, in the embodiment, when the banknote-out calculation is carried out, the banknote-bundling banknote-out result and the banknote-scattering banknote-out result are combined for calculation, so that the banknote-bundling banknote-out result is as large as possible, the banknote-scattering banknote-out result is as small as possible, and the banknote-out time is further shortened; and because various money distribution results are obtained in the money distribution process, the user can select the money outlet result according to the requirement, and the user experience is improved.
Example three:
fig. 3 is a schematic structural diagram of a financial terminal according to a third embodiment of the present invention, and only the parts related to the embodiment of the present invention are shown for convenience of description. The financial terminal includes: input device 31, processor 32, output device 33: wherein
The input device 31 is used for receiving the user money amount input by the user;
the user inputs the money amount through the input device 31, and meanwhile, the input device 31 obtains the money binding information and the money scattering information of the current financial terminal, wherein the money binding means that a plurality of banknotes with the same denomination are put together to form a bundle and stored in the financial device, for example, 20 banknotes with the denomination of 100 yuan are bound into a bundle, or 50 banknotes with the denomination of 20 yuan are bound into a bundle, and how to set each bundle of banknotes can also be set according to the needs. Loose banknotes are individual banknotes of various denominations, for example a banknote of 50 dollars denomination. The money binding information includes: bound note type n, single bound amount A of each bound note1,A2,,…,AnAnd the number X of usable bound banknotes for each bound banknote1,X2,,…,XnX belongs to Z; the loose money information comprises: kinds m of loose banknotes, denomination B of each kind of loose banknotes1,B2,,…,BmAnd the number of loose banknotes available for each denomination Y1,Y2,,…,Ym,Y∈Z。
The processor 32 is used for acquiring the money binding information and the money scattering information of the current financial terminal, and performing money distribution calculation according to the money drawing amount of the user, the money binding information and the money scattering information to obtain a money distribution result;
preferably, the processor is specifically configured to:
distributing the whole bundle of dispensed banknotes according to the money drawing amount of the user and the money bundling information to obtain a money bundling and distributing scheme and a money distributing mantissa; distributing the banknotes of a single banknote output according to the banknote distribution mantissa and the banknote distribution information, and determining a banknote distribution scheme of the scattered banknotes; selecting one of the bundled note distribution schemes, and selecting one of the scattered note distribution schemes according to the note distribution mantissas corresponding to the selected bundled note distribution scheme; and determining at least one type of money distribution result according to the selected bundled money distribution scheme and the selected loose money distribution scheme.
Preferably, the processor performs money distribution of the whole bundle of dispensed money according to the user money amount and the money bundle information to obtain a money distribution scheme and a money distribution mantissa, and is specifically configured to:
determining the maximum common divisor of the single bundle amount of each bundle of money according to the bundle money information; determining the currency-dispensing mantissa according to the user money-withdrawing amount, so that the difference between the user money-withdrawing amount and the currency-dispensing mantissa can be divided by the maximum common divisor of the single bundle of currency of the bundle of currency; the currency distribution mantissa satisfies: the currency distribution mantissa is not less than 0 and not more than the withdrawal amount of the user; and determining at least one bundled note dispensing scheme according to the dispensing mantissa.
Preferably, when the processor performs single-sheet cash dispensing according to the cash dispensing mantissa and the loose cash information and determines a loose cash dispensing scheme, the processor is specifically configured to:
determining the largest common divisor of the cash distribution mantissa and the cash dispensing denomination according to the cash dispensing information; and determining at least one loose note dispensing scheme according to at least one loose note dispensing rule by combining the dispensing mantissa with the greatest common divisor of the loose note denomination.
Specifically, distributing the money according to the money drawing amount M of the user and the money bundling and scattering information of the current financial terminal; setting the quantity of each bundle of money needed by the current user when the money drawing amount M is distributed as x1,x2,…, xn, x ∈ Z; the required number of loose banknotes is y1,y2,,…,ymY is equal to Z; wherein x is more than or equal to 01≤X1,0≤x2,≤X2,,…,0≤xn≤Xn;0≤y1≤Y1,0≤y2,≤Y2,,…,0≤ym≤Ym. Then there are: m ═ A1x1+A2x2+...+Anxn+B1y1+B2y2+...+Bmym
When the money is distributed to the withdrawal amount M of a user, firstly, a money distribution mantissa w is determined, and the bundled money is distributed according to the money distribution mantissa w, wherein the following steps are performed: w is B1y1+B2y2+...+BmymTherefore, if the total amount of the bundled banknotes is S, the following are provided: m-w ═ S ═ A1x1+A2x2+...+Anxn. Thus, x is determined from the dispense mantissa w1,x2,,…,xnThe value of (2) can determine the money distribution scheme of the bundled money. Then according to the determined cash-dispensing mantissa w, the formula w is equal to B1y1+B2y2+...+BmymDetermination of y1,y2,,…,ymAnd further determining the loose note distribution scheme.
For a specific dispensing mantissa w, the equation w is B1y1+B2y2+...+BmymThere may be multiple sets of solutions, i.e. each determined dispensing mantissa w corresponds to at least one dispensing scheme; in the case of a banknote-dispensing mantissa determination, S and a are used for the equation M-w1x1+A2x2+...+AnxnThere may also be at least one set of solutions; therefore, one of the obtained bundled-banknote distribution schemes and one of the obtained scattered-banknote distribution schemes are respectively selected according to the determined banknote distribution mantissas, so that a banknote distribution result matched with the money amount withdrawn by the user can be formed, and at least one banknote distribution result is formed.
When determining the money distribution scheme of the bundled money, determining an equation M-w ═ S ═ A1x1+A2x2+...+AnxnThe integer solution of (a). At this time, the single bundle amount A of each bundle note is first determined1,A2,,…,AnThe greatest common divisor (gcd) of (1), is denoted as gcd (A)1,A2,,…,An) (ii) a Determining a dispensing mantissa w such that (M-w) satisfies: 0-w-M, and can be gcd (A)1,A2,,…,An) Trimming; obtaining an equation M-w-S-A according to the determined cash-dispensing mantissa w1x1+A2x2+...+AnxnThe integer solution of (2). Otherwise, if S cannot be gcd (A)1,A2,,…,An) The whole division, the current currency-dispensing mantissaAnd w, the banknote bundling and dispensing fails, and the banknote bundling and dispensing is carried out after the banknote dispensing mantissa w is adjusted.
About S ═ A1x1+A2x2+...+AnxnThe solution process of the integer solution of (2) is referred to the solution process of equation (1), and is not described herein again. According to S ═ A1x1+A2x2+...+AnxnThe integer solution of (2) determines the money distribution scheme of the bundled money.
And after the bundled note distribution scheme is obtained, distributing loose notes according to the determined note distribution mantissa w. By w ═ B1y1+B2y2+...+BmymIt can be seen that when dispensing loose banknotes, w, B are determined1,B2,…BmThen according to the solving method of equation (1), the equation w is equal to B1y1+B2y2+...+BmymThe integral solution of the above steps can obtain the loose banknote distribution scheme.
Alternatively, when dispensing banknotes according to the amount of money drawn by the user, the amount of each bundle of banknotes can be regarded as the denomination of loose banknotes, for example, a bundle of banknotes formed by 10 banknotes of 100 dollars can be regarded as a loose banknote with 1000 dollars denomination, and then the loose banknote and the bundled banknote are dispensed together, and the method comprises the following steps: the withdrawal amount of the user meets the following requirements: m ═ a1x1+A2x2+...+Anxn)+(B1y1+B2y2+...+Bmym) The banknote can be distributed according to the following four banknote distribution principles:
1) the maximum total number of bound paper money is determined
Figure GDA0001402306230000221
As large as possible, i.e. by
Figure GDA0001402306230000222
2) The principle of maximum total money amount of money binding is adopted, at the moment
Figure GDA0001402306230000223
As large as possible, i.e. by
Figure GDA0001402306230000224
3) The minimum total number of loose banknotes, at this time
Figure GDA0001402306230000225
As small as possible, i.e. it is desired to
Figure GDA0001402306230000226
4) The principle of minimum total amount of loose money, namely the principle of minimum number of tails of money distribution, is adopted, at the moment
Figure GDA0001402306230000227
As small as possible, i.e. it is desired to
Figure GDA0001402306230000228
Preferably, the loose banknotes are dispensed in five manners, i.e., an average dispensing manner, an average emptying manner, a minimum total number method, a maximum denomination priority manner, and a minimum denomination priority manner. For the specific calculation process, reference is made to the first embodiment, which is not described herein again.
And the output device 33 is used for calling the money distribution result to respectively carry out the money outlet of the bundled money and the money outlet of the scattered money.
Preferably, the output device is specifically configured to:
calling the bank note distribution result with the minimum bank note output tail number, and respectively carrying out bank note output of bundled bank notes and bank note output of scattered bank notes;
or the bank note distribution result is called according to the selection of the user, and the bank note bundling and the bank note scattering are respectively carried out.
Specifically, after the money is distributed according to the money drawing amount of the user to obtain the money distribution result, when the user does not select, the money is discharged according to the money distribution result selected by default at the financial terminal, namely, the money is discharged according to the scheme that the money distribution mantissa w is minimum, namely, the money bundling and money discharging amount is maximum. In addition, the money can be discharged according to the selection of the user. For example, the user may select the most currency bundles to be dispensed or the least total number of loose currency.
Preferably, the processor is further configured to:
determining the maximum common divisor of the single bundle amount and the loose note denomination of the bundled notes; judging whether the withdrawal amount of the user can be divided by the maximum common divisor of the single bundle amount of the bundled banknotes and the loose banknote denomination; correspondingly, the output equipment is also used for returning a money distribution failure result when the money drawing amount of the user cannot be divided by the maximum common divisor of the single bundle amount of the bundled money and the loose money denomination.
Specifically, after receiving a withdrawal amount inputted by a user, firstly, the withdrawal amount is judged: if the money drawing amount of the user cannot be divided by the maximum common divisor of the single bundle amount of the bundled money and the loose money denomination, the money drawing amount required by the user cannot be given by the current financial terminal, and the money drawing failure occurs.
For example: suppose that the financial terminal is equipped with two bundles of banknotes, 1 ten thousand dollars in a bundle of 15 bundles (i.e., a bundle of 1 ten thousand dollars in amount of banknotes has 15 bundles), 1.5 ten thousand dollars in a bundle of 10 bundles, and another two bundles of 12 banknotes with a denomination of 50 dollars and 10 banknotes with a denomination of 20 dollars, i.e., a1=10000,A2=15000,X1=15,X2=10,B1=50,B2=20,Y1=12,Y2=10。
If the withdrawal amount of the user is 35545 yuan, the money allocation fails because the greatest common divisor of (10000,15000,50,20) is 10, 35545% gcd (50,20) is 5 ≠ 0.
In the third embodiment of the invention, the input equipment acquires the money binding information and the money scattering information of the current financial terminal, the processor distributes money to the money drawing amount of a user and obtains a money distribution result, the money distribution of the bound money and the money scattering information are respectively carried out during the money distribution to obtain at least one money distribution result, then the output equipment delivers the money according to the selected money distribution result, the money amount of a single bundle of money can be very large during the whole bundle of money delivery, the requirement of large-amount money delivery is met, the money delivery time is shortened, and the fault probability during the money delivery is reduced; the loose bank note can be dispensed with the amount of bank notes required by the user, so that the range of the bank note dispensing amount of the user is increased; in addition, in the embodiment, when the banknote-out calculation is carried out, the banknote-bundling banknote-out result and the banknote-scattering banknote-out result are combined for calculation, so that the banknote-bundling banknote-out result is as large as possible, the banknote-scattering banknote-out result is as small as possible, and the banknote-out time is further shortened; and because various money distribution results are obtained in the money distribution process, the user can select the money outlet result according to the requirement, and the user experience is improved.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. The cash-out control method of the financial terminal is characterized by comprising the following steps:
obtain user's money drawing amount, current financial terminal bundle paper money information and loose paper money information, bundle paper money information includes: bound note type n, single bound amount A of each bound note1,A2…, An and the number X of usable banknotes per bundle1,X2,,…,XnX belongs to Z; the loose money information comprises: kinds m of loose banknotes, denomination B of each kind of loose banknotes1,B2,,…,BmAnd the number of loose banknotes available for each denomination Y1,Y2,,…,Ym,Y∈Z;
The money distribution calculation is carried out according to the money drawing amount of the user, the money bundling information and the money scattering information to obtain a money distribution result, and the method specifically comprises the following steps: distributing the whole bundle of dispensed banknotes according to the money drawing amount of the user and the money bundling information to obtain a money bundling and distributing scheme and a money distributing mantissa; distributing the banknotes of a single banknote output according to the banknote distribution mantissa and the banknote distribution information, and determining a banknote distribution scheme of the scattered banknotes; selecting one of the bundled note distribution schemes, and selecting one of the scattered note distribution schemes according to the note distribution mantissas corresponding to the selected bundled note distribution scheme; determining at least one type of money distribution result according to the selected bundled money distribution scheme and the selected scattered money distribution scheme; (ii) a
And calling the money distribution result, and respectively carrying out money outlet of the bundled money and money outlet of the scattered money.
2. The cash-out control method of the financial terminal according to claim 1, wherein the step of distributing the whole bundle of cash-out according to the user money amount and the bundle information to obtain a bundle and distribution scheme and a distribution mantissa comprises:
determining the maximum common divisor of the single bundle amount of each bundle of money according to the bundle money information;
determining the currency-dispensing mantissa according to the user money-withdrawing amount, so that the difference between the user money-withdrawing amount and the currency-dispensing mantissa can be divided by the maximum common divisor of the single bundle of currency of the bundle of currency; the currency distribution mantissa satisfies: the currency distribution mantissa is not less than 0 and not more than the withdrawal amount of the user;
and determining at least one bundled note dispensing scheme according to the dispensing mantissa.
3. The cash-out control method of the financial terminal according to claim 1, wherein the step of performing single-cash-out cash distribution according to the cash-distribution mantissa and the cash-dispensing information to determine a cash-dispensing scheme for dispensing loose cash specifically comprises the steps of:
determining the largest common divisor of the cash distribution mantissa and the cash dispensing denomination according to the cash dispensing information;
and determining at least one loose note dispensing scheme according to at least one loose note dispensing rule by combining the dispensing mantissa with the greatest common divisor of the loose note denomination.
4. The cash-out control method of the financial terminal according to any one of claims 1 to 3, wherein before the calculating of the dispensed cash according to the amount of money drawn by the user, the information of the bundled cash and the information of the scattered cash to obtain the result of the dispensed cash, the method further comprises:
determining the maximum common divisor of the single bundle amount and the loose note denomination of the bundled notes;
judging whether the withdrawal amount of the user can be divided by the maximum common divisor of the single bundle amount of the bundled banknotes and the loose banknote denomination;
and returning a money distribution failure result when the money drawing amount of the user cannot be divisionally divided by the maximum common divisor of the single bundle amount of the bundled money and the loose money denomination.
5. The cash-out control method of the financial terminal according to claim 1, wherein the calling the cash-out result to perform the cash-out of the bound cash and the cash-out of the loose cash respectively comprises:
calling the bank note distribution result with the minimum bank note output tail number, and respectively carrying out bank note output of bundled bank notes and bank note output of scattered bank notes;
or the bank note distribution result is called according to the selection of the user, and the bank note bundling and the bank note scattering are respectively carried out.
6. A cash-out control system of a financial terminal, the cash-out control system of the financial terminal comprising:
the information acquisition unit is used for acquiring the money drawing amount of a user, money binding information and money scattering information of a current financial terminal, and the money binding information comprises: bound note type n, single bound amount A of each bound note1,A2…, An and the number X of usable banknotes per bundle1,X2,,…,XnX belongs to Z; the loose money information comprises: kinds m of loose banknotes, denomination B of each kind of loose banknotes1,B2,,…,BmAnd the number of loose banknotes available for each denomination Y1,Y2,,…,Ym,Y∈Z;
The money distribution unit is used for carrying out money distribution calculation according to the money amount withdrawn by the user, the money bundling information and the money scattering information to obtain a money distribution result, and the money distribution unit specifically comprises: the money binding and distributing module is used for distributing the whole bundle of dispensed money according to the money withdrawing amount of the user and the money binding information to obtain a money binding and distributing scheme and a money distributing mantissa; the loose note distribution module is used for distributing single-piece discharged notes according to the note distribution mantissa and the loose note information and determining a loose note distribution scheme; the banknote distribution scheme selection module is used for selecting one of the bundled banknote distribution schemes and selecting one of the scattered banknote distribution schemes according to the banknote distribution mantissa corresponding to the selected bundled banknote distribution scheme; the banknote distribution result determining module is used for determining at least one banknote distribution result according to the selected bundled banknote distribution scheme and the selected loose banknote distribution scheme;
and the cash outlet unit is used for calling the cash distribution result and respectively carrying out cash outlet of the bundled cash and cash outlet of the scattered cash.
7. The cash-out control system of the financial terminal according to claim 6, wherein the bundled-banknote dispensing module specifically comprises:
the first common divisor determination module is used for determining the maximum common divisor of the single bundle amount of each type of bundled banknotes according to the bundled banknote information;
the bundled note distribution scheme determining module is used for determining a note distribution mantissa according to the user money drawing amount, so that the difference between the user money drawing amount and the note distribution mantissa can be divided by the maximum common divisor of the single bundle of money of the bundled notes; the currency distribution mantissa satisfies: the currency distribution mantissa is not less than 0 and not more than the withdrawal amount of the user; and determining at least one bundled note dispensing scheme according to the dispensing mantissa.
8. The cash-out control system of the financial terminal according to claim 6, wherein the loose-banknote dispensing module specifically comprises:
the second common divisor determination module is used for determining the largest common divisor of the cash distribution mantissa and the cash scattering face amount according to the cash scattering information;
and the loose note distribution scheme determining module is used for determining at least one loose note distribution scheme according to at least one loose note discharging rule by combining the distribution mantissa and the maximum common divisor of the loose note denomination.
9. The cash-out control system of the financial terminal according to any one of claims 6 to 8, wherein the cash-out control system at the financial terminal further comprises:
the third common divisor determination unit is used for determining the maximum common divisor of the single bundle amount and the loose note denomination of the bundled notes;
the money drawing amount judgment unit is used for judging whether the money drawing amount of the user can be divided by the maximum common divisor of the single bundle amount of the bundled money and the denomination of the scattered money; and returning a money distribution failure result when the money drawing amount of the user cannot be divisionally divided by the maximum common divisor of the single bundle amount of the bundled money and the loose money denomination.
10. The cash-out control system of the financial terminal according to claim 6, wherein the cash-out unit includes:
the first cash-out module is used for calling a cash distribution result with the minimum cash-out mantissa, and respectively performing cash-out of bundled cash and cash-out of scattered cash;
and the second cash-out module is used for respectively carrying out cash-out of the bound cash and cash-out of the scattered cash according to the cash-distribution result selected and called by the user.
CN201780000226.3A 2017-04-18 2017-04-18 Cash-out control method and system of financial terminal and financial terminal Active CN107484429B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/080876 WO2018191859A1 (en) 2017-04-18 2017-04-18 Banknote dispensing control method and system for financial terminal, and financial terminal

Publications (2)

Publication Number Publication Date
CN107484429A CN107484429A (en) 2017-12-15
CN107484429B true CN107484429B (en) 2020-04-07

Family

ID=60606464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201780000226.3A Active CN107484429B (en) 2017-04-18 2017-04-18 Cash-out control method and system of financial terminal and financial terminal

Country Status (2)

Country Link
CN (1) CN107484429B (en)
WO (1) WO2018191859A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115116186A (en) * 2021-03-23 2022-09-27 深圳怡化电脑科技有限公司 Currency extraction method and device of automatic teller machine
CN113593140B (en) * 2021-07-09 2022-08-05 浪潮金融信息技术有限公司 Bank note distribution method, system and medium for financial self-service equipment

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57106996A (en) * 1980-12-24 1982-07-03 Tokyo Shibaura Electric Co Currency automatic dealing device
FR2908912B1 (en) * 2006-11-16 2009-02-20 Patrick Wajsbrot INTERACTIVE SERVICE TERMINAL, IN PARTICULAR BANKING
WO2010103620A1 (en) * 2009-03-10 2010-09-16 グローリー株式会社 Banknote binding device, banknote binding method, and banknote binding system
CN101763684B (en) * 2009-12-22 2012-08-08 广州广电运通金融电子股份有限公司 Financial self-service equipment bank note distribution method
CN102903176B (en) * 2012-10-09 2014-10-22 广州广电运通金融电子股份有限公司 Cash dispensing method of financial self-service equipment
CN102903177B (en) * 2012-10-09 2014-12-31 广州广电运通金融电子股份有限公司 Cash dispensing method of financial self-service equipment
US9792753B2 (en) * 2013-10-14 2017-10-17 Toshiba International Corporation Systems and methods for processing bank notes using a distributed tracking system
CN104134275B (en) * 2014-07-31 2016-09-28 广州广电运通金融电子股份有限公司 Bank note distribution method, join paper money device and financial self-service equipment
CN204331919U (en) * 2015-01-08 2015-05-13 新达通科技股份有限公司 A kind of self-help drawing money machine structure
CN105957238B (en) * 2016-05-20 2019-02-19 聚龙股份有限公司 A kind of paper currency management method and its system

Also Published As

Publication number Publication date
WO2018191859A1 (en) 2018-10-25
CN107484429A (en) 2017-12-15

Similar Documents

Publication Publication Date Title
EP2908295B1 (en) Cash replenishment method for financial self-service equipment
CN107346594B (en) Cash-out algorithm
WO2016015555A1 (en) Banknote distribution method, banknote distribution device and financial self-service equipment
CN102903177B (en) Cash dispensing method of financial self-service equipment
CN110634227B (en) Banknote distribution method for realizing balanced banknote output based on large-amount circulator
WO2016110089A1 (en) Cash distribution method, cash distribution apparatus and financial self-service device
CN107484429B (en) Cash-out control method and system of financial terminal and financial terminal
EP3547273B1 (en) Recycling multiple currency notes from a cassette
WO2013073470A1 (en) Paper sheet processing device and paper sheet processing method
WO2017121350A1 (en) Cash deposit inlet method and device for atm machine having a plurality of cashboxes with identical denomination
CN113313887B (en) Automatic banknote and coin distribution method and system
KR101398364B1 (en) Bill-handling apparatus and method for operating the same
CN109801431A (en) A kind of self-service exchanging device of foreign currency that supporting Multiple Currencies and method
EP2075770B1 (en) Reducing transaction time in a self-service terminal
WO2018119631A1 (en) Banknote allocation method and system for banknote dispensing of self-service terminal
JP5625074B2 (en) Money handling equipment
JP2009282562A (en) Cash collection method and currency depositing device
CN113870495B (en) Equal-piece banknote distribution method for multiple banknote boxes storing banknotes of different denominations in withdrawal device
CN106952422B (en) Method and device for controlling bank self-service terminal to discharge bank notes
CN108648330B (en) Deposit and withdrawal management method, deposit and withdrawal management device and self-service terminal
JP2007286744A (en) Money reception/payment processing apparatus
CN113947836B (en) Equal-space banknote distribution method for multiple banknote boxes with different denominations stored in cash dispenser
WO2022236878A1 (en) Deposit banknote distribution scheduling method and system, and storage medium
CN115115103A (en) Money distributor scheduling method and device
CN106781097B (en) Banknote digging method and device

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
GR01 Patent grant
GR01 Patent grant