CN109281134B - Water level control method and device, storage medium and washing machine - Google Patents

Water level control method and device, storage medium and washing machine Download PDF

Info

Publication number
CN109281134B
CN109281134B CN201811334288.0A CN201811334288A CN109281134B CN 109281134 B CN109281134 B CN 109281134B CN 201811334288 A CN201811334288 A CN 201811334288A CN 109281134 B CN109281134 B CN 109281134B
Authority
CN
China
Prior art keywords
water level
input
fuzzy
output
water inlet
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
CN201811334288.0A
Other languages
Chinese (zh)
Other versions
CN109281134A (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201811334288.0A priority Critical patent/CN109281134B/en
Publication of CN109281134A publication Critical patent/CN109281134A/en
Application granted granted Critical
Publication of CN109281134B publication Critical patent/CN109281134B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • DTEXTILES; PAPER
    • D06TREATMENT OF TEXTILES OR THE LIKE; LAUNDERING; FLEXIBLE MATERIALS NOT OTHERWISE PROVIDED FOR
    • D06FLAUNDERING, DRYING, IRONING, PRESSING OR FOLDING TEXTILE ARTICLES
    • D06F39/00Details of washing machines not specific to a single type of machines covered by groups D06F9/00 - D06F27/00 
    • D06F39/08Liquid supply or discharge arrangements
    • D06F39/087Water level measuring or regulating devices
    • DTEXTILES; PAPER
    • D06TREATMENT OF TEXTILES OR THE LIKE; LAUNDERING; FLEXIBLE MATERIALS NOT OTHERWISE PROVIDED FOR
    • D06FLAUNDERING, DRYING, IRONING, PRESSING OR FOLDING TEXTILE ARTICLES
    • D06F33/00Control of operations performed in washing machines or washer-dryers 
    • DTEXTILES; PAPER
    • D06TREATMENT OF TEXTILES OR THE LIKE; LAUNDERING; FLEXIBLE MATERIALS NOT OTHERWISE PROVIDED FOR
    • D06FLAUNDERING, DRYING, IRONING, PRESSING OR FOLDING TEXTILE ARTICLES
    • D06F34/00Details of control systems for washing machines, washer-dryers or laundry dryers
    • D06F34/28Arrangements for program selection, e.g. control panels therefor; Arrangements for indicating program parameters, e.g. the selected program or its progress
    • D06F2202/085
    • D06F2204/086

Landscapes

  • Engineering & Computer Science (AREA)
  • Textile Engineering (AREA)
  • Detail Structures Of Washing Machines And Dryers (AREA)
  • Control Of Washing Machine And Dryer (AREA)

Abstract

The invention discloses a water level control method, a water level control device, a storage medium and a washing machine, wherein the method comprises the following steps: acquiring a current water level difference value of an actual water level and a target water level of a washing machine to be controlled and a current water level change rate of the actual water level within a set time length; and determining the set water level difference value which is the same as the current water level difference value in the fuzzy control relation and the set water inlet time which corresponds to the set water level change rate which is the same as the current water level change rate as the current water inlet time of the water inlet valve of the washing machine to be controlled according to the fuzzy control relation among the set water level difference value, the set water level change rate and the set water inlet time. According to the scheme of the invention, the problem that components are easily damaged when the water inlet valve is repeatedly opened and closed according to the actual water level in the process of adjusting the water level of the washing machine can be solved, and the effect that the components are not easily damaged is achieved.

Description

Water level control method and device, storage medium and washing machine
Technical Field
The invention belongs to the technical field of washing machines, and particularly relates to a water level control method, a water level control device, a storage medium and a washing machine, in particular to a washing machine water level adjusting method, a washing machine water level adjusting device, a storage medium and a washing machine based on a fuzzy control algorithm.
Background
The water level of the washing machine is adjusted mainly by judging the difference between the actual water level and the target water level, and water inflow can be stopped when the actual water level reaches the target water level. However, the clothes made of different materials have different water absorption amounts, and the actual water level of the clothes is reduced after the clothes absorb water. Most washing machines will re-open the inlet valve to feed water after the actual water level has dropped in order to again meet the target water level. The water absorption of the clothes is a slow process, particularly under the condition of more clothes, the water inlet valve needs to be repeatedly opened and closed, and the water replenishing process can be completely finished after the water absorption of the clothes reaches a saturated state. Repeated opening and closing of the water inlet valve can damage the water inlet valve and the components for controlling the water inlet valve easily, and the service life of the corresponding components can be shortened.
Disclosure of Invention
The invention aims to provide a water level control method, a water level control device, a storage medium and a washing machine, aiming at overcoming the defects that in the prior art, components are easy to damage when a water inlet valve is repeatedly opened and closed according to the actual water level in the process of adjusting the water level of the washing machine, and the effect that the components are not easy to damage is achieved.
The invention provides a water level control method, which comprises the following steps: acquiring a current water level difference value of an actual water level and a target water level of a washing machine to be controlled and a current water level change rate of the actual water level within a set time length; and determining the set water level difference value which is the same as the current water level difference value in the fuzzy control relation and the set water inlet time which corresponds to the set water level change rate which is the same as the current water level change rate as the current water inlet time of the water inlet valve of the washing machine to be controlled according to the fuzzy control relation among the set water level difference value, the set water level change rate and the set water inlet time.
Optionally, the method further comprises: controlling the opening and closing of a water inlet valve of the washing machine to be controlled according to the current water inlet time to realize the water level control of the washing machine to be controlled; and/or establishing a fuzzy control relation among the set water level difference value, the set water level change rate and the set water inlet time.
Optionally, establishing a fuzzy control relationship between the set water level difference value, the set water level change rate and the set water inlet time comprises: respectively carrying out fuzzification processing on the first input quantity, the second input quantity and the output quantity by taking a water level difference value of an actual water level and a target water level of a washing machine to be controlled as a first input quantity, taking a water level change rate of the actual water level as a second input quantity and taking water inlet time of a water inlet valve of the washing machine to be controlled as an output quantity to obtain a first input fuzzy quantity, a second input fuzzy quantity and an output fuzzy quantity; respectively carrying out quantization processing on the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity to obtain a first membership degree, a second membership degree and an output membership degree; and establishing a membership degree relation which takes the first membership degree and the second membership degree as input and the output membership degree as output as the fuzzy control relation.
Optionally, the blurring processing is performed on the first input quantity, the second input quantity, and the output quantity, respectively, and includes: fuzzifying the first input quantity into 1 st to Nth first input fuzzy quantities according to the water level, wherein N is a natural number; and/or fuzzifying the second input quantity into 1 st to Mth second input fuzzy quantities according to the water level change speed, wherein M is a natural number; and/or fuzzifying the output quantity into 1 st to L th output fuzzy quantities according to the water inlet time, wherein L is a natural number.
Optionally, the quantizing the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity respectively includes: dividing the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity into 1 st to P-th quantization levels respectively, wherein P is a natural number; and respectively determining the membership degrees of the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity under each quantization level.
Optionally, the determining the membership of the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity at each quantization level respectively comprises: respectively determining the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity under each quantization level as membership functions in a set quantization interval range; determining the membership degrees of the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity according to the membership function under each quantization level; wherein the membership functions comprise: any one of a triangle function, a Gaussian base function, and a trapezoid function.
In accordance with the above method, another aspect of the present invention provides a water level control apparatus, comprising: the device comprises an acquisition unit, a control unit and a control unit, wherein the acquisition unit is used for acquiring the current water level difference value of the actual water level and the target water level of the washing machine to be controlled and the current water level change rate of the actual water level in a set time length; and the control unit is used for determining the set water level difference value which is the same as the current water level difference value in the fuzzy control relation and the set water inlet time which corresponds to the set water level change rate which is the same as the current water level change rate as the current water inlet time of the water inlet valve of the washing machine to be controlled according to the fuzzy control relation among the set water level difference value, the set water level change rate and the set water inlet time.
Optionally, the method further comprises: the control unit is also used for controlling the opening and closing of a water inlet valve of the washing machine to be controlled according to the current water inlet time so as to realize the water level control of the washing machine to be controlled; and/or the control unit is also used for establishing a fuzzy control relation among the set water level difference value, the set water level change rate and the set water inlet time.
Optionally, the control unit establishes a fuzzy control relationship between the set water level difference value, the set water level change rate and the set water inlet time, including: respectively carrying out fuzzification processing on the first input quantity, the second input quantity and the output quantity by taking a water level difference value of an actual water level and a target water level of a washing machine to be controlled as a first input quantity, taking a water level change rate of the actual water level as a second input quantity and taking water inlet time of a water inlet valve of the washing machine to be controlled as an output quantity to obtain a first input fuzzy quantity, a second input fuzzy quantity and an output fuzzy quantity; respectively carrying out quantization processing on the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity to obtain a first membership degree, a second membership degree and an output membership degree; and establishing a membership degree relation which takes the first membership degree and the second membership degree as input and the output membership degree as output as the fuzzy control relation.
Optionally, the step of performing fuzzification processing on the first input quantity, the second input quantity and the output quantity by the control unit respectively includes: fuzzifying the first input quantity into 1 st to Nth first input fuzzy quantities according to the water level, wherein N is a natural number; and/or fuzzifying the second input quantity into 1 st to Mth second input fuzzy quantities according to the water level change speed, wherein M is a natural number; and/or fuzzifying the output quantity into 1 st to L th output fuzzy quantities according to the water inlet time, wherein L is a natural number.
Optionally, the control unit performs quantization processing on the first input blur amount, the second input blur amount, and the output blur amount, respectively, and includes: dividing the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity into 1 st to P-th quantization levels respectively, wherein P is a natural number; and respectively determining the membership degrees of the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity under each quantization level.
Optionally, the determining, by the control unit, membership degrees of the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity at each quantization level respectively includes: respectively determining the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity under each quantization level as membership functions in a set quantization interval range; determining the membership degrees of the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity according to the membership function under each quantization level; wherein the membership functions comprise: any one of a triangle function, a Gaussian base function, and a trapezoid function.
In accordance with the above apparatus, a further aspect of the present invention provides a washing machine, comprising: the water level control device described above.
In accordance with the above method, a further aspect of the present invention provides a storage medium comprising: the storage medium has stored therein a plurality of instructions; the instructions are used for loading and executing the water level control method by the processor.
In accordance with the above method, a further aspect of the present invention provides a washing machine, comprising: a processor for executing a plurality of instructions; a memory to store a plurality of instructions; wherein the instructions are stored in the memory, and loaded by the processor and execute the water level control method.
According to the scheme of the invention, the water level of the washing machine is adjusted by utilizing the fuzzy algorithm, so that the switching frequency of the water inlet valve can be greatly reduced, the probability of damage of devices is reduced, and the service life of the devices is prolonged.
Furthermore, according to the scheme of the invention, the water level of the washing machine is adjusted to judge not only the difference value between the actual water level and the target water level, but also the change speed of the actual water level is taken as a judgment condition, so that the water level adjusting mode can be optimized, the switching frequency of the water inlet valve is effectively reduced, and the water inlet valve and a control device thereof are protected.
Furthermore, according to the scheme of the invention, the rising speed of the actual water level in the water inlet process can be obviously different according to the quantity of clothes and the material of the clothes, and the fuzzy adjustment of the water level is carried out through two factors of the difference value and the change rate, so that the frequent opening and closing of the water inlet valve can be effectively prevented, the damage probability of devices is reduced, and the service life of the devices is prolonged.
Furthermore, the scheme of the invention can effectively prevent the frequent opening and closing of the water inlet valve, reduce the probability of damage of devices and prolong the service life of the devices by utilizing the fuzzy algorithm to adjust the water level of the washing machine.
Furthermore, the scheme of the invention not only judges the difference value between the actual water level and the target water level by adjusting the water level of the washing machine, but also takes the change speed of the actual water level as a judgment condition, thereby effectively preventing the frequent opening and closing of the water inlet valve, reducing the probability of device damage and reducing the maintenance cost.
Therefore, according to the scheme of the invention, the water level of the washing machine is adjusted by utilizing the fuzzy algorithm according to the difference value between the actual water level and the target water level and the change rate of the actual water level, so that the problem that components are easily damaged when the water inlet valve is repeatedly opened and closed according to the actual water level in the process of adjusting the water level of the washing machine in the prior art is solved, the defects that the components are easily damaged, the service life of the components is shortened and the maintenance cost is increased in the prior art are overcome, and the beneficial effects that the components are not easily damaged, the service life of the components is prolonged and the.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
FIG. 1 is a schematic flow chart illustrating a water level control method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating an embodiment of establishing a fuzzy control relationship between a set water level difference, a set water level change rate and a set water inlet time according to the method of the present invention;
FIG. 3 is a flowchart illustrating an embodiment of quantizing the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity respectively according to the method of the present invention;
FIG. 4 is a flowchart illustrating an embodiment of determining membership of the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity for each quantization level respectively in the method of the present invention;
fig. 5 is a schematic structural diagram of a water level control apparatus according to an embodiment of the present invention.
The reference numbers in the embodiments of the present invention are as follows, in combination with the accompanying drawings:
102-an obtaining unit; 104-control unit.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the specific embodiments of the present invention and the accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. 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.
According to an embodiment of the present invention, a water level control method is provided, as shown in fig. 1, which is a schematic flow chart of an embodiment of the method of the present invention. The water level control method may include: step S110 and step S120.
At step S110, a current water level difference between an actual water level and a target water level of the laundry machine to be controlled and a current water level change rate of the actual water level within a set time period are obtained.
At step S120, according to a fuzzy control relationship among a set water level difference, a set water level change rate, and a set water inlet time, determining that a set water level difference that is the same as the current water level difference in the fuzzy control relationship and a set water inlet time corresponding to the set water level change rate that is the same as the current water level change rate are the current water inlet time of a water inlet valve of a washing machine to be controlled, so as to control the water level of the washing machine to be controlled according to the current water inlet time.
For example: the method for adjusting the water level of the washing machine by utilizing the fuzzy algorithm can greatly reduce the switching times of the water inlet valve, thereby reducing the probability of damage of devices, prolonging the service life of the devices and optimizing the control logic. The mode of optimizing the water level adjustment effectively reduces the switching times of the water inlet valve and plays a role in protecting the water inlet valve and control devices thereof. Such as: the water level of the washing machine is adjusted, not only is the difference value between the actual water level and the target water level judged, but also the change speed of the actual water level is used as a judgment condition; the rising speed of the actual water level in the water inlet process can be obviously different according to the quantity of clothes and the material of the clothes, the fuzzy adjustment of the water level is carried out through two factors of the difference value and the change rate, the frequent opening and closing of the water inlet valve can be effectively prevented, and the water inlet control logic is optimized.
For example: in software implementation, the specific value of the output variable can be obtained by querying the fuzzy control table through the known input quantity, so that the fuzzy control of the output quantity is realized. Such as: if the quantization level of the current input variable is known, the quantization level of the output variable can be obtained by looking up the table 5, so as to obtain the specific value of the output quantity. Assuming that the range of the water level difference is [0, 42.85], the range of the water level change rate is [0.05, 1.00], and the range of the water inlet time is [0, 20], when the water level difference is 20.55 and the water level change rate is 0.5, the specific values of the water inlet time are calculated as follows:
according to the formula, y is (n/(b-a)) x, x is a specific value, y is a grade, for the water level difference, b is 42.85, a is 0, n is 6, the water level difference grade is (6/(42.85-0)). 20.55 is 2.8, and the water level difference is rounded to grade 3; for the water level change rate, b is 1.00, a is 0.05, and n is 6, then the water level change rate grade is (6/(1.00-0.05)). 0.5 is 3.16, and the water level change rate is rounded to grade 3; referring to table 5, the water inlet time scale is 3, and for the water inlet time, b is 20, a is 0, and n is 6, the water inlet time is 3/(6/(20-0)) -10.
Therefore, the water inlet time of the water inlet valve of the washing machine is determined by acquiring the difference value between the actual water level and the target water level of the washing machine and the water level change rate of the actual water level within the set time length and based on the set fuzzy control relation, the water level of the washing machine is controlled, the water inlet valve can be prevented from being opened and closed frequently, and the damage rate of components is reduced.
In an alternative embodiment, at least one of the following control scenarios may also be included.
The first control scenario: and before the set water level difference value which is the same as the current water level difference value in the fuzzy control relation and the set water inlet time corresponding to the set water level change rate which is the same as the current water level change rate are determined to be the current water inlet time of the water inlet valve of the washing machine to be controlled, controlling the opening and closing of the water inlet valve of the washing machine to be controlled according to the current water inlet time, and realizing the water level control of the washing machine to be controlled.
Therefore, the water level of the washing machine is controlled by controlling the opening and closing of the water inlet valve according to the current water inlet time of the water inlet valve obtained based on fuzzy calculation, the convenience and the accuracy of water level control are improved, and the loss rate of the water level control on components is reduced.
The second control scenario: and before determining that the set water level difference value which is the same as the current water level difference value in the fuzzy control relation and the set water inlet time corresponding to the set water level change rate which is the same as the current water level change rate are the current water inlet time of the water inlet valve of the washing machine to be controlled, establishing the fuzzy control relation among the set water level difference value, the set water level change rate and the set water inlet time.
Therefore, by establishing a fuzzy control relation among the set water level difference value, the set water level change rate and the set water inlet time, the current water inlet time of the water inlet valve can be conveniently determined based on the current water level difference value and the current water level change rate, and the high efficiency and the accuracy of determining the current water inlet time are improved.
Optionally, with reference to a flowchart of an embodiment of establishing a fuzzy control relationship among the set water level difference, the set water level change rate, and the set water inlet time in the method of the present invention shown in fig. 2, a specific process of establishing a fuzzy control relationship among the set water level difference, the set water level change rate, and the set water inlet time is further described, and may include: step S210 to step S230.
Step S210, fuzzifying the first input quantity, the second input quantity and the output quantity respectively by taking a water level difference value of an actual water level and a target water level of the washing machine to be controlled as a first input quantity, a water level change rate of the actual water level as a second input quantity and water inlet time of a water inlet valve of the washing machine to be controlled as an output quantity to obtain a first input fuzzy quantity of the first input quantity, a second input fuzzy quantity of the second input quantity and an output fuzzy quantity of the output quantity. For example: a first input quantity, a second input quantity and an output quantity are determined. The first input quantity may include: the difference between the actual water level and the target water level of the washing machine to be controlled. The second input quantity may include: the rate of change of water level of the actual water level. The output quantity may include: the water inlet time of a water inlet valve of the washing machine to be controlled.
For example: the input amount is set to two terms, which may include: the difference between the actual water level and the set water level, and the rate of change of the water level of the actual water level. The output quantity is the water inlet time of the water inlet valve.
More optionally, the blurring processing is performed on the first input quantity, the second input quantity and the output quantity in step S210, and may include at least one of the following blurring situations.
The first obfuscation scenario: and according to the water level, fuzzifying the first input quantity into the 1 st to Nth first input fuzzy quantities, wherein N is a natural number.
Second obfuscation case: and fuzzifying the second input quantity into 1 st to Mth second input fuzzy quantities according to the water level change speed, wherein M is a natural number.
The third obfuscation case: according to the length of water inlet time, fuzzifying the output quantity into 1 st to L th output fuzzy quantities, wherein L is a natural number.
For example: fuzzification definition is carried out on the three variables, and the water level difference value is defined as three fuzzy quantities, namely small, medium and large; the water level change rate is defined as five fuzzy quantities, namely fast, moderate, slow and slow; the water intake time is defined as five fuzzy quantities, i.e. short, medium, long and long.
Thus, the input quantity, the output quantity and the like are fuzzified into a plurality of fuzzy quantities with different degrees, so that the fuzzification processing of the input quantity, the output quantity and the like is realized, the processing mode is simple and convenient, and the processing result is reliable.
Step S220, performing quantization processing on the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity respectively to obtain a first membership degree of the first input quantity, a second membership degree of the second input quantity and an output membership degree of the output quantity.
For example: the blur amount is quantified.
More optionally, with reference to a flowchart of an embodiment of performing quantization processing on the first input fuzzy quantity, the second input fuzzy quantity, and the output fuzzy quantity in the method of the present invention shown in fig. 3, a specific process of performing quantization processing on the first input fuzzy quantity, the second input fuzzy quantity, and the output fuzzy quantity in step S220 may further be described, where the specific process includes: step S310 and step S320.
Step S310, the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity are respectively divided into quantization levels from 1 st to pth, where P is a natural number.
Step S320, determining membership degrees of the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity respectively at each quantization level.
For example: the quantization levels may be divided into 7 levels, 0 to 6 respectively, while the degree of membership of the blur amount at each quantization level is determined.
For example: the fuzzy quantity is quantized, and here, a continuous input and output quantity set is defined as a discrete domain of finite integers, so that a fuzzy control table is generated conveniently later. Such as: the difference between the actual water level and the set water level is a set of [0, 42.85], which is divided into [0, 6.12], (6.12, 12.24], (12.24, 18.36], (18.36, 24.48], (24.48, 30.60], (30.60, 36.72], (36.72, 42.84], and then each set is represented by an integer and is an equidistant series, tables 1 to 3 show the membership degree of the fuzzy quantity in each section.
Therefore, each fuzzy quantity is divided into a plurality of grades, and the membership degree of each fuzzy quantity under each grade is determined, so that the quantization processing of each fuzzy quantity is realized, the processing mode is simple and convenient, and the processing result is reliable.
Further alternatively, the specific process of determining the membership of the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity at each quantization level in step S320 may further be described with reference to a flowchart of an embodiment of determining the membership of the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity at each quantization level in the method of the present invention shown in fig. 4, and the specific process may include: step S410 and step S420.
Step S410, determining the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity in each quantization level as membership functions in a set quantization interval range.
Step S420, determining the membership degrees of the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity according to the membership functions at each quantization level.
For example: the membership degree is obtained according to the membership function, the membership function is defined as a linear equation of one binary order, each quantization interval is a linear equation y ═ (1/(b-a)) × (x-a), and a and b are quantization interval ranges, so that the membership degree of the corresponding grade under each fuzzy quantity is obtained, as shown in table 1, table 2 and table 3.
Table 1: membership of difference between actual water level and target water level
Figure BDA0001860790130000091
Table 2: membership of water level change rate
Figure BDA0001860790130000092
Table 3: membership degree of water inlet time
Figure BDA0001860790130000101
Wherein the membership function may include: any one of a triangle function, a Gaussian base function, and a trapezoid function.
For example: the degree of membership is obtained from membership functions, which may also be varied. The membership function is a linear equation of two elements, each fuzzy quantity is corresponding to the equation, and a triangular function can be seen in drawing; other membership functions such as normal distribution (gaussian function), trapezoidal function, etc. are also available in the fuzzy control.
Therefore, the fuzzy quantity under each quantization level is determined as the membership function within the range of the set quantization interval, and the membership degree of each fuzzy quantity is further determined according to the membership function under each quantization level, so that the determination mode is simple and convenient, and the determination result is accurate.
Step S230, establishing a membership relationship with the first membership and the second membership as inputs and the output membership as an output as the fuzzy control relationship.
For example: the fuzzy rule table is derived from control experience, mainly to optimize the output response, as in table 4. Such as: when the water level difference is small and the water level change rate is fast, the water inlet time is short; when the water level difference is large and the water level change rate is fast, the water inlet time is in an intermediate state; when the water level difference is large and the water level change rate is slow, the water inlet time needs to be long. However, the output of the fuzzy rule table is only a fuzzy quantity, and the control can be realized in software only after quantization.
Table 4: fuzzy water inlet time control rule
Figure BDA0001860790130000102
Table 5 gives the quantized output levels. The table is obtained based on the membership of the water level difference values and the water level change rates in tables 1 to 2. For example: the quantization scale of the water level difference is 2, the quantization scale of the water level change rate is 3, and the quantization scale of the output amount is determined to be 3 according to the weighting method (2 × 0.5+3 × 1.0)/(0.5+1.0) ═ 2.67 in combination with the control rule in table 4. The method gives the other ratings of the water intake time in table 5.
Table 5: fuzzy control table
Figure BDA0001860790130000111
Therefore, the membership degrees of the input quantity and the output quantity are respectively obtained by respectively taking the water level difference value and the water level change rate as the input quantity and taking the water inlet time of the water inlet valve as the output quantity to carry out fuzzy processing and quantitative processing, so that the membership degree relation between the input quantity and the output quantity is established and used as the required fuzzy control relation, the establishment mode is reliable, and the established fuzzy control relation is accurate.
Through a large number of tests, the technical scheme of the embodiment is adopted, and the water level of the washing machine is adjusted by utilizing the fuzzy algorithm, so that the switching times of the water inlet valve can be greatly reduced, the probability of damage of devices is reduced, and the service life of the devices is prolonged.
According to an embodiment of the present invention, there is also provided a water level control apparatus corresponding to the water level control method. Referring to fig. 5, a schematic diagram of an embodiment of the apparatus of the present invention is shown. The water level control apparatus may include: an acquisition unit 102 and a control unit 104.
In an optional example, the obtaining unit 102 may be configured to obtain a current water level difference between an actual water level and a target water level of the washing machine to be controlled, and a current water level change rate of the actual water level within a set time period. The specific functions and processes of the acquiring unit 102 are referred to in step S110.
In an optional example, the control unit 104 may be configured to determine, according to a fuzzy control relationship between a set water level difference value, a set water level change rate and a set water inlet time, a set water level difference value in the fuzzy control relationship, which is the same as the current water level difference value, and a set water inlet time corresponding to the set water level change rate, which is the same as the current water level change rate, as a current water inlet time of a water inlet valve of a washing machine to be controlled, so as to control the water level of the washing machine to be controlled according to the current water inlet time. The specific function and processing of the control unit 104 are referred to in step S120.
For example: the method for adjusting the water level of the washing machine by utilizing the fuzzy algorithm can greatly reduce the switching times of the water inlet valve, thereby reducing the probability of damage of devices, prolonging the service life of the devices and optimizing the control logic. The mode of optimizing the water level adjustment effectively reduces the switching times of the water inlet valve and plays a role in protecting the water inlet valve and control devices thereof. Such as: the water level of the washing machine is adjusted, not only is the difference value between the actual water level and the target water level judged, but also the change speed of the actual water level is used as a judgment condition; the rising speed of the actual water level in the water inlet process can be obviously different according to the quantity of clothes and the material of the clothes, the fuzzy adjustment of the water level is carried out through two factors of the difference value and the change rate, the frequent opening and closing of the water inlet valve can be effectively prevented, and the water inlet control logic is optimized.
For example: in software implementation, the specific value of the output variable can be obtained by querying the fuzzy control table through the known input quantity, so that the fuzzy control of the output quantity is realized. Such as: if the quantization level of the current input variable is known, the quantization level of the output variable can be obtained by looking up the table 5, so as to obtain the specific value of the output quantity. Assuming that the range of the water level difference is [0, 42.85], the range of the water level change rate is [0.05, 1.00], and the range of the water inlet time is [0, 20], when the water level difference is 20.55 and the water level change rate is 0.5, the specific values of the water inlet time are calculated as follows:
according to the formula, y is (n/(b-a)) x, x is a specific value, y is a grade, for the water level difference, b is 42.85, a is 0, n is 6, the water level difference grade is (6/(42.85-0)). 20.55 is 2.8, and the water level difference is rounded to grade 3; for the water level change rate, b is 1.00, a is 0.05, and n is 6, then the water level change rate grade is (6/(1.00-0.05)). 0.5 is 3.16, and the water level change rate is rounded to grade 3; referring to table 5, the water inlet time scale is 3, and for the water inlet time, b is 20, a is 0, and n is 6, the water inlet time is 3/(6/(20-0)) -10.
Therefore, the water inlet time of the water inlet valve of the washing machine is determined by acquiring the difference value between the actual water level and the target water level of the washing machine and the water level change rate of the actual water level within the set time length and based on the set fuzzy control relation, the water level of the washing machine is controlled, the water inlet valve can be prevented from being opened and closed frequently, and the damage rate of components is reduced.
In an alternative embodiment, at least one of the following control scenarios may also be included.
The first control scenario: the control unit 104 may be further configured to control opening and closing of a water inlet valve of the washing machine to be controlled according to the current water inlet time before determining that the set water level difference value identical to the current water level difference value and the set water inlet time corresponding to the set water level change rate identical to the current water level change rate in the fuzzy control relationship are the current water inlet time of the water inlet valve of the washing machine to be controlled, so as to implement water level control of the washing machine to be controlled.
Therefore, the water level of the washing machine is controlled by controlling the opening and closing of the water inlet valve according to the current water inlet time of the water inlet valve obtained based on fuzzy calculation, the convenience and the accuracy of water level control are improved, and the loss rate of the water level control on components is reduced.
The second control scenario: the control unit 104 may be further configured to establish a fuzzy control relationship among the set water level difference, the set water level change rate, and the set water inlet time before determining that the set water level difference that is the same as the current water level difference and the set water inlet time corresponding to the set water level change rate that is the same as the current water level change rate in the fuzzy control relationship are the current water inlet time of the water inlet valve of the washing machine to be controlled.
Therefore, by establishing a fuzzy control relation among the set water level difference value, the set water level change rate and the set water inlet time, the current water inlet time of the water inlet valve can be conveniently determined based on the current water level difference value and the current water level change rate, and the high efficiency and the accuracy of determining the current water inlet time are improved.
Alternatively, the control unit 104 establishes a fuzzy control relationship between the set water level difference value, the set water level change rate and the set water inlet time, and may include:
the control unit 104 may be further configured to perform fuzzification processing on the first input quantity, the second input quantity, and the output quantity respectively by using a water level difference between an actual water level and a target water level of the washing machine to be controlled as the first input quantity, a water level change rate of the actual water level as the second input quantity, and a water inlet time of a water inlet valve of the washing machine to be controlled as the output quantity, so as to obtain a first input fuzzy quantity of the first input quantity, a second input fuzzy quantity of the second input quantity, and an output fuzzy quantity of the output quantity. For example: a first input quantity, a second input quantity and an output quantity are determined. The first input quantity may include: the difference between the actual water level and the target water level of the washing machine to be controlled. The second input quantity may include: the rate of change of water level of the actual water level. The output quantity may include: the water inlet time of a water inlet valve of the washing machine to be controlled. The specific functions and processes of the control unit 104 are also referred to in step S210.
For example: the input amount is set to two terms, which may include: the difference between the actual water level and the set water level, and the rate of change of the water level of the actual water level. The output quantity is the water inlet time of the water inlet valve.
More optionally, the control unit 104 performs fuzzification processing on the first input quantity, the second input quantity and the output quantity respectively, and may include at least one of the following fuzzification situations.
The first obfuscation scenario: the control unit 104 may be further configured to fuzzify the first input variable into the 1 st to nth first input fuzzy variables according to the water level, where N is a natural number.
Second obfuscation case: the control unit 104 may be further configured to fuzzify the second input quantity into a 1 st to an mth second input fuzzy quantity according to a water level change speed, where M is a natural number.
The third obfuscation case: the control unit 104 may be further configured to fuzzify the output quantity into 1 st to L th output fuzzy quantities according to the length of the water inlet time, where L is a natural number.
For example: fuzzification definition is carried out on the three variables, and the water level difference value is defined as three fuzzy quantities, namely small, medium and large; the water level change rate is defined as five fuzzy quantities, namely fast, moderate, slow and slow; the water intake time is defined as five fuzzy quantities, i.e. short, medium, long and long.
Thus, the input quantity, the output quantity and the like are fuzzified into a plurality of fuzzy quantities with different degrees, so that the fuzzification processing of the input quantity, the output quantity and the like is realized, the processing mode is simple and convenient, and the processing result is reliable.
The control unit 104 may be further configured to perform quantization processing on the first input fuzzy quantity, the second input fuzzy quantity, and the output fuzzy quantity, respectively, to obtain a first membership degree of the first input quantity, a second membership degree of the second input quantity, and an output membership degree of the output quantity. The specific functions and processes of the control unit 104 are also referred to in step S220.
For example: the blur amount is quantified.
More optionally, the control unit 104 performs quantization processing on the first input fuzzy amount, the second input fuzzy amount and the output fuzzy amount respectively, and may include:
the control unit 104 may be further specifically configured to divide the first input fuzzy quantity, the second input fuzzy quantity, and the output fuzzy quantity into quantization levels 1 to pth, where P is a natural number. The specific functions and processes of the control unit 104 are also referred to in step S310.
The control unit 104 may be further configured to determine membership degrees of the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity at each quantization level, respectively. The specific functions and processes of the control unit 104 are also referred to in step S320.
For example: the quantization levels may be divided into 7 levels, 0 to 6 respectively, while the degree of membership of the blur amount at each quantization level is determined.
For example: the fuzzy quantity is quantized, and here, a continuous input and output quantity set is defined as a discrete domain of finite integers, so that a fuzzy control table is generated conveniently later. Such as: the difference between the actual water level and the set water level is a set of [0, 42.85], which is divided into [0, 6.12], (6.12, 12.24], (12.24, 18.36], (18.36, 24.48], (24.48, 30.60], (30.60, 36.72], (36.72, 42.84], and then each set is represented by an integer and is an equidistant series, tables 1 to 3 show the membership degree of the fuzzy quantity in each section.
Therefore, each fuzzy quantity is divided into a plurality of grades, and the membership degree of each fuzzy quantity under each grade is determined, so that the quantization processing of each fuzzy quantity is realized, the processing mode is simple and convenient, and the processing result is reliable.
Still further alternatively, the determining the membership degrees of the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity at each quantization level by the control unit 104 may include:
the control unit 104 may be further configured to determine the first input fuzzy quantity, the second input fuzzy quantity, and the output fuzzy quantity in each quantization level as membership functions in a range of a preset quantization interval. The specific functions and processes of the control unit 104 are also referred to in step S410.
The control unit 104 may be further configured to determine the membership degrees of the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity according to the membership functions at each quantization level. The specific function and processing of the control unit 104 are also referred to in step S420.
For example: the membership degree is obtained according to the membership function, the membership function is defined as a linear equation of one binary order, each quantization interval is a linear equation y ═ (1/(b-a)) × (x-a), and a and b are quantization interval ranges, so that the membership degree of the corresponding grade under each fuzzy quantity is obtained, as shown in table 1, table 2 and table 3.
Table 1: membership of difference between actual water level and target water level
Figure BDA0001860790130000151
Table 2: membership of water level change rate
Figure BDA0001860790130000152
Table 3: membership degree of water inlet time
Figure BDA0001860790130000153
Wherein the membership function may include: any one of a triangle function, a Gaussian base function, and a trapezoid function.
For example: the degree of membership is obtained from membership functions, which may also be varied. The membership function is a linear equation of two elements, each fuzzy quantity is corresponding to the equation, and a triangular function can be seen in drawing; other membership functions such as normal distribution (gaussian function), trapezoidal function, etc. are also available in the fuzzy control.
Therefore, the fuzzy quantity under each quantization level is determined as the membership function within the range of the set quantization interval, and the membership degree of each fuzzy quantity is further determined according to the membership function under each quantization level, so that the determination mode is simple and convenient, and the determination result is accurate.
The control unit 104 may be further configured to establish a membership degree relationship with the first membership degree and the second membership degree as inputs and the output membership degree as an output, as the fuzzy control relationship. The specific function and processing of the control unit 104 are also referred to in step S230.
For example: the fuzzy rule table is derived from control experience, mainly to optimize the output response, as in table 4. Such as: when the water level difference is small and the water level change rate is fast, the water inlet time is short; when the water level difference is large and the water level change rate is fast, the water inlet time is in an intermediate state; when the water level difference is large and the water level change rate is slow, the water inlet time needs to be long. However, the output of the fuzzy rule table is only a fuzzy quantity, and the control can be realized in software only after quantization.
Table 4: fuzzy water inlet time control rule
Figure BDA0001860790130000161
Table 5 gives the quantized output levels. The table is obtained based on the membership of the water level difference values and the water level change rates in tables 1 to 2. For example: the quantization scale of the water level difference is 2, the quantization scale of the water level change rate is 3, and the quantization scale of the output amount is determined to be 3 according to the weighting method (2 × 0.5+3 × 1.0)/(0.5+1.0) ═ 2.67 in combination with the control rule in table 4. The method gives the other ratings of the water intake time in table 5.
Table 5: fuzzy control table
Figure BDA0001860790130000171
Therefore, the membership degrees of the input quantity and the output quantity are respectively obtained by respectively taking the water level difference value and the water level change rate as the input quantity and taking the water inlet time of the water inlet valve as the output quantity to carry out fuzzy processing and quantitative processing, so that the membership degree relation between the input quantity and the output quantity is established and used as the required fuzzy control relation, the establishment mode is reliable, and the established fuzzy control relation is accurate.
Since the processes and functions implemented by the apparatus of this embodiment substantially correspond to the embodiments, principles and examples of the method shown in fig. 1 to 4, the description of this embodiment is not detailed, and reference may be made to the related descriptions in the foregoing embodiments, which are not repeated herein.
Through a large number of tests, the technical scheme of the invention is adopted, the difference between the actual water level and the target water level is judged by adjusting the water level of the washing machine, and the change speed of the actual water level is used as a judgment condition, so that the water level adjusting mode can be optimized, the switching frequency of the water inlet valve is effectively reduced, and the water inlet valve and a control device thereof are protected.
According to an embodiment of the present invention, there is also provided a washing machine corresponding to the water level control apparatus. The washing machine may include: the water level control device described above.
In an optional embodiment, the scheme of the invention can greatly reduce the switching times of the water inlet valve by utilizing a method for adjusting the water level of the washing machine by using a fuzzy algorithm, thereby reducing the probability of damage of devices, prolonging the service life of the devices and optimizing the control logic. The mode of optimizing the water level adjustment effectively reduces the switching times of the water inlet valve and plays a role in protecting the water inlet valve and control devices thereof.
In an alternative example, the water level of the washing machine is adjusted not only to determine the difference between the actual water level and the target water level, but also to determine how fast the actual water level changes. The rising speed of the actual water level in the water inlet process can be obviously different according to the quantity of clothes and the material of the clothes, the fuzzy adjustment of the water level is carried out through two factors of the difference value and the change rate, the frequent opening and closing of the water inlet valve can be effectively prevented, and the water inlet control logic is optimized.
In an alternative embodiment, the method of the present invention, which uses a fuzzy control method to realize the adjustment of the water level, may include the following steps:
step 1, firstly, the input quantity is set to two items, and the two items can comprise: the difference between the actual water level and the set water level, and the rate of change of the water level of the actual water level. The output quantity is the water inlet time of the water inlet valve.
Further, fuzzification definition is carried out on the three variables, and the water level difference is defined as three fuzzy quantities, namely small, medium and large; the water level change rate is defined as five fuzzy quantities, namely fast, moderate, slow and slow; the water intake time is defined as five fuzzy quantities, i.e. short, medium, long and long.
The algorithm of the invention relates to input and output quantities, wherein the input quantity is a factor influencing the output quantity, and the two factors of the invention are mainly influencing the result of the output quantity, so the two quantities are taken as the input quantity.
And step 2, quantifying the fuzzy quantity.
Alternatively, the quantization levels may be divided into 7 levels, 0 to 6 respectively, while determining the degree of membership of the blur amount at each quantization level. The membership degree is obtained according to a membership function, the membership function is defined as a linear equation of one binary order, each quantization interval is a linear equation y (1/(b-a)) × (x-a), and a and b are quantization interval ranges, so that the membership degree of the corresponding grade under each fuzzy quantity is obtained, as shown in table 1, table 2 and table 3.
The fuzzy quantity is quantized, and here, a continuous input and output quantity set is defined as a discrete domain of finite integers, so that a fuzzy control table is conveniently generated later.
For example: the difference between the actual water level and the set water level is a set of [0, 42.85], which is divided into [0, 6.12], (6.12, 12.24], (12.24, 18.36], (18.36, 24.48], (24.48, 30.60], (30.60, 36.72], (36.72, 42.84], and then each set is represented by an integer and is an equidistant series, tables 1 to 3 show the membership degree of the fuzzy quantity in each section.
Table 1: membership of difference between actual water level and target water level
Figure BDA0001860790130000181
Table 2: membership of water level change rate
Figure BDA0001860790130000191
Table 3: membership degree of water inlet time
Figure BDA0001860790130000192
Wherein, the state variables in tables 1 to 3 are several states of the variable (such as difference, water level, water inlet time, etc.) expressed by fuzzy language, and are defined according to experiments and experiences, and the more states, the more complicated the control.
The fuzzy rule table is derived from control experience, mainly to optimize the output response, as in table 4. For example: when the water level difference is small and the water level change rate is fast, the water inlet time is short; when the water level difference is large and the water level change rate is fast, the water inlet time is in an intermediate state; when the water level difference is large and the water level change rate is slow, the water inlet time needs to be long. However, the output of the fuzzy rule table is only a fuzzy quantity, and the control can be realized in software only after quantization.
Table 4: fuzzy water inlet time control rule
Figure BDA0001860790130000193
Table 5 gives the quantized output levels. The table is obtained based on the membership of the water level difference values and the water level change rates in tables 1 to 2. For example: the quantization scale of the water level difference is 2, the quantization scale of the water level change rate is 3, and the quantization scale of the output amount is determined to be 3 according to the weighting method (2 × 0.5+3 × 1.0)/(0.5+1.0) ═ 2.67 in combination with the control rule in table 4. The method gives the other ratings of the water intake time in table 5.
Table 5: fuzzy control table
Figure BDA0001860790130000201
If the quantization level of the current input variable is known, the quantization level of the output variable can be obtained by looking up the table 5, so as to obtain the specific value of the output quantity. Assuming that the range of the water level difference is [0, 42.85], the range of the water level change rate is [0.05, 1.00], and the range of the water inlet time is [0, 20], when the water level difference is 20.55 and the water level change rate is 0.5, the specific values of the water inlet time are calculated as follows:
according to the formula, y is (n/(b-a)) x, x is a specific value, y is a grade, for the water level difference, b is 42.85, a is 0, n is 6, the water level difference grade is (6/(42.85-0)). 20.55 is 2.8, and the water level difference is rounded to grade 3; for the water level change rate, b is 1.00, a is 0.05, and n is 6, then the water level change rate grade is (6/(1.00-0.05)). 0.5 is 3.16, and the water level change rate is rounded to grade 3; referring to table 5, the water inlet time scale is 3, and for the water inlet time, b is 20, a is 0, and n is 6, the water inlet time is 3/(6/(20-0)) -10.
In software implementation, the specific value of the output variable can be obtained by querying the fuzzy control table through the known input quantity, so that the fuzzy control of the output quantity is realized.
In an alternative embodiment, the invention teaches a fuzzy water level regulation control method, in which the degree of membership and the value of a specific parameter are used as references, depending on the actual situation (for example, different membership functions and different corresponding degrees of membership). The degree of membership is obtained from membership functions, which may also be varied. The membership function is a linear equation of two elements, each fuzzy quantity is corresponding to the equation, and a triangular function can be seen in drawing; other membership functions such as normal distribution (gaussian function), trapezoidal function, etc. are also available in the fuzzy control.
Since the processes and functions of the washing machine of this embodiment are basically corresponding to the embodiments, principles and examples of the apparatus shown in fig. 5, the description of this embodiment is not given in detail, and reference may be made to the related descriptions in the embodiments, which are not repeated herein.
Through a large number of tests, the technical scheme of the invention has the advantages that the rising speed of the actual water level in the water inlet process can be obviously different according to the quantity of clothes and the material of the clothes, and the fuzzy adjustment of the water level is carried out through two factors of the difference value and the change rate, so that the frequent opening and closing of the water inlet valve can be effectively prevented, the damage probability of devices is reduced, and the service life of the devices is prolonged.
According to an embodiment of the present invention, there is also provided a storage medium corresponding to the water level control method. The storage medium may include: the storage medium has stored therein a plurality of instructions; the instructions are used for loading and executing the water level control method by the processor.
Since the processing and functions implemented by the storage medium of this embodiment substantially correspond to the embodiments, principles, and examples of the methods shown in fig. 1 to fig. 4, details are not described in the description of this embodiment, and reference may be made to the related descriptions in the foregoing embodiments, which are not described herein again.
Through a large number of tests, the technical scheme of the invention can effectively prevent the water inlet valve from being frequently opened and closed, reduce the probability of damage of devices and prolong the service life of the devices by adjusting the water level of the washing machine by using the fuzzy algorithm.
According to an embodiment of the present invention, there is also provided a washing machine corresponding to the water level control method. The washing machine may include: a processor for executing a plurality of instructions; a memory to store a plurality of instructions; wherein the instructions are stored in the memory, and loaded by the processor and execute the water level control method.
Since the processing and functions of the washing machine of the present embodiment substantially correspond to the embodiments, principles and examples of the method shown in fig. 1 to 4, the description of the present embodiment is not detailed, and reference may be made to the related description of the foregoing embodiments, which is not repeated herein.
Through a large number of tests, the technical scheme of the invention is adopted, the difference between the actual water level and the target water level is judged by adjusting the water level of the washing machine, and the change speed of the actual water level is used as a judgment condition, so that frequent opening and closing of the water inlet valve can be effectively prevented, the probability of damage of devices is reduced, and the maintenance cost is reduced.
In summary, it is readily understood by those skilled in the art that the advantageous modes described above can be freely combined and superimposed without conflict.
The above description is only an example of the present invention, and is not intended to limit the present invention, and it is obvious to those skilled in the art that various modifications and variations can be made in the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (13)

1. A water level control method, comprising:
acquiring a current water level difference value of an actual water level and a target water level of a washing machine to be controlled and a current water level change rate of the actual water level within a set time length;
determining a set water level difference value which is the same as the current water level difference value in the fuzzy control relation and a set water inlet time which corresponds to the set water level change rate which is the same as the current water level change rate as the current water inlet time of a water inlet valve of the washing machine to be controlled according to the fuzzy control relation among the set water level difference value, the set water level change rate and the set water inlet time;
further comprising: establishing a fuzzy control relation among the set water level difference value, the set water level change rate and the set water inlet time, wherein the fuzzy control relation comprises the following steps:
respectively carrying out fuzzification processing on the first input quantity, the second input quantity and the output quantity by taking a water level difference value of an actual water level and a target water level of a washing machine to be controlled as a first input quantity, taking a water level change rate of the actual water level as a second input quantity and taking water inlet time of a water inlet valve of the washing machine to be controlled as an output quantity to obtain a first input fuzzy quantity, a second input fuzzy quantity and an output fuzzy quantity;
respectively carrying out quantization processing on the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity to obtain a first membership degree, a second membership degree and an output membership degree;
and establishing a membership degree relation which takes the first membership degree and the second membership degree as input and the output membership degree as output as the fuzzy control relation.
2. The method of claim 1, further comprising:
and controlling the opening and closing of a water inlet valve of the washing machine to be controlled according to the current water inlet time to realize the water level control of the washing machine to be controlled.
3. The method of claim 1, wherein the blurring the first input quantity, the second input quantity, and the output quantity comprises:
fuzzifying the first input quantity into 1 st to Nth first input fuzzy quantities according to the water level, wherein N is a natural number; and/or the presence of a gas in the gas,
fuzzifying the second input quantity into 1 st to Mth second input fuzzy quantities according to the water level change speed, wherein M is a natural number; and/or the presence of a gas in the gas,
according to the length of water inlet time, fuzzifying the output quantity into 1 st to L th output fuzzy quantities, wherein L is a natural number.
4. The method according to claim 1 or 3, wherein quantizing the first input blur amount, the second input blur amount, and the output blur amount, respectively, comprises:
dividing the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity into 1 st to P-th quantization levels respectively, wherein P is a natural number;
and respectively determining the membership degrees of the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity under each quantization level.
5. The method of claim 4, wherein determining the degree of membership of the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity at each quantization level respectively comprises:
respectively determining the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity under each quantization level as membership functions in a set quantization interval range;
determining the membership degrees of the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity according to the membership function under each quantization level;
wherein the membership functions comprise: any one of a triangle function, a Gaussian base function, and a trapezoid function.
6. A water level control apparatus, comprising:
the device comprises an acquisition unit, a control unit and a control unit, wherein the acquisition unit is used for acquiring the current water level difference value of the actual water level and the target water level of the washing machine to be controlled and the current water level change rate of the actual water level in a set time length;
the control unit is used for determining a set water level difference value which is the same as the current water level difference value in the fuzzy control relation and a set water inlet time which corresponds to the set water level change rate which is the same as the current water level change rate as the current water inlet time of the water inlet valve of the washing machine to be controlled according to the fuzzy control relation among the set water level difference value, the set water level change rate and the set water inlet time;
further comprising: the control unit is also used for establishing a fuzzy control relation among the set water level difference value, the set water level change rate and the set water inlet time, and comprises the following steps:
respectively carrying out fuzzification processing on the first input quantity, the second input quantity and the output quantity by taking a water level difference value of an actual water level and a target water level of a washing machine to be controlled as a first input quantity, taking a water level change rate of the actual water level as a second input quantity and taking water inlet time of a water inlet valve of the washing machine to be controlled as an output quantity to obtain a first input fuzzy quantity, a second input fuzzy quantity and an output fuzzy quantity;
respectively carrying out quantization processing on the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity to obtain a first membership degree, a second membership degree and an output membership degree;
and establishing a membership degree relation which takes the first membership degree and the second membership degree as input and the output membership degree as output as the fuzzy control relation.
7. The apparatus of claim 6, further comprising:
and the control unit is also used for controlling the opening and closing of a water inlet valve of the washing machine to be controlled according to the current water inlet time so as to realize the water level control of the washing machine to be controlled.
8. The apparatus according to claim 6, wherein the control unit performs blurring processing on each of the first input amount, the second input amount, and the output amount, and includes:
fuzzifying the first input quantity into 1 st to Nth first input fuzzy quantities according to the water level, wherein N is a natural number; and/or the presence of a gas in the gas,
fuzzifying the second input quantity into 1 st to Mth second input fuzzy quantities according to the water level change speed, wherein M is a natural number; and/or the presence of a gas in the gas,
according to the length of water inlet time, fuzzifying the output quantity into 1 st to L th output fuzzy quantities, wherein L is a natural number.
9. The apparatus according to claim 6 or 8, wherein the control unit performs quantization processing on the first input blur amount, the second input blur amount, and the output blur amount, respectively, including:
dividing the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity into 1 st to P-th quantization levels respectively, wherein P is a natural number;
and respectively determining the membership degrees of the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity under each quantization level.
10. The apparatus according to claim 9, wherein the control unit determines the degrees of membership of the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity at each quantization level, respectively, and includes:
respectively determining the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity under each quantization level as membership functions in a set quantization interval range;
determining the membership degrees of the first input fuzzy quantity, the second input fuzzy quantity and the output fuzzy quantity according to the membership function under each quantization level;
wherein the membership functions comprise: any one of a triangle function, a Gaussian base function, and a trapezoid function.
11. A washing machine, characterized by comprising: a water level control device as claimed in any one of claims 6 to 10.
12. A storage medium having a plurality of instructions stored therein; the plurality of instructions for being loaded by a processor and for performing the water level control method according to any one of claims 1-5.
13. A washing machine, characterized by comprising:
a processor for executing a plurality of instructions;
a memory to store a plurality of instructions;
wherein the instructions are stored by the memory and loaded and executed by the processor to perform the water level control method according to any one of claims 1 to 5.
CN201811334288.0A 2018-11-09 2018-11-09 Water level control method and device, storage medium and washing machine Active CN109281134B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811334288.0A CN109281134B (en) 2018-11-09 2018-11-09 Water level control method and device, storage medium and washing machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811334288.0A CN109281134B (en) 2018-11-09 2018-11-09 Water level control method and device, storage medium and washing machine

Publications (2)

Publication Number Publication Date
CN109281134A CN109281134A (en) 2019-01-29
CN109281134B true CN109281134B (en) 2020-03-24

Family

ID=65175260

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811334288.0A Active CN109281134B (en) 2018-11-09 2018-11-09 Water level control method and device, storage medium and washing machine

Country Status (1)

Country Link
CN (1) CN109281134B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111041773B (en) * 2019-12-09 2022-06-07 无锡小天鹅电器有限公司 Clothes treatment equipment, control method and device thereof and storage medium
CN111005190B (en) * 2019-12-23 2022-06-17 合肥美的洗衣机有限公司 Water inflow control method, water inflow control device, clothes treatment device and medium
CN114045632B (en) * 2021-10-29 2023-05-30 珠海格力电器股份有限公司 Control method, control device, electronic equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6029298A (en) * 1998-04-14 2000-02-29 General Electric Company System and method for determining a liquid level setting in a washing machine
CN100465369C (en) * 2007-06-07 2009-03-04 上海交通大学 Automatic water supply regulating system for washing machine
CN101403930A (en) * 2008-11-13 2009-04-08 东北大学 Continuous casting crystallizer fluid level control method based on Fuzzy-PID
CN103628275A (en) * 2013-12-17 2014-03-12 上海电机学院 Intelligent washing machine based on nerve net fuzzy controller
CN105648700B (en) * 2014-11-28 2020-04-21 青岛海尔洗衣机有限公司 Washing machine water inlet control method and washing machine

Also Published As

Publication number Publication date
CN109281134A (en) 2019-01-29

Similar Documents

Publication Publication Date Title
CN109281134B (en) Water level control method and device, storage medium and washing machine
Hutter et al. Scaling and probabilistic smoothing: Efficient dynamic local search for SAT
CN104808708A (en) Method and system for self-adjusting fuzzy PID (Proportion Integration Differentiation) parameters in furnace temperature control system
Queeney et al. Generalized proximal policy optimization with sample reuse
CN111915003A (en) Neural network hardware accelerator
CN106649139A (en) Data eliminating method and device based on multiple caches
CN109508846A (en) A kind of detection method and device of unit data exception fluctuation
Lee et al. Note—an approximate algorithm for multidimensional zero-one knapsack problems—a parametric approach
CN115774652A (en) Cluster control equipment health monitoring method, equipment and medium based on clustering algorithm
CN112575519B (en) Multi-drum washing machine drainage control method and device, storage medium and washing machine
CN111367645A (en) Real-time task scheduling control method, system, equipment and readable storage medium
Tompkins et al. Warped Landscapes and Random Acts of SAT Solving.
CN108550365B (en) Threshold value self-adaptive adjusting method for off-line voice recognition
CN114997391B (en) Leakage method in electronic nervous system, chip and electronic equipment
Abernethy et al. A regularization approach to metrical task systems
CN113036769B (en) Static voltage stability analysis method and system for power system
Bouamama et al. On solving large-scale instances of the knapsack problem with setup by means of an iterated greedy algorithm
Hansmeier et al. An adaption mechanism for the error threshold of XCSF
CN114355439A (en) Seismic inversion method and system based on Lagrange operator dynamic change
CN112553831A (en) Method and device for leveling load in barrel
KR20210125729A (en) System and method for updating weight of artificial neural networks
CN115842784B (en) Multi-node adjustment method for ultra-large data volume transmission
Deori et al. Computational approaches to robust model predictive control: A comparative analysis
Lavinas et al. MOEA/D with adaptative number of weight vectors
Goebel et al. State dependent parametrizations for nonlinear MPC

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