[go: up one dir, main page]

WO2024066089A1 - Cooking plan determination method and apparatus, storage medium, and electronic apparatus - Google Patents

Cooking plan determination method and apparatus, storage medium, and electronic apparatus Download PDF

Info

Publication number
WO2024066089A1
WO2024066089A1 PCT/CN2022/141197 CN2022141197W WO2024066089A1 WO 2024066089 A1 WO2024066089 A1 WO 2024066089A1 CN 2022141197 W CN2022141197 W CN 2022141197W WO 2024066089 A1 WO2024066089 A1 WO 2024066089A1
Authority
WO
WIPO (PCT)
Prior art keywords
cooking
recipe
target
resource
time
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.)
Ceased
Application number
PCT/CN2022/141197
Other languages
French (fr)
Chinese (zh)
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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd, Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Publication of WO2024066089A1 publication Critical patent/WO2024066089A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H20/00ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance
    • G16H20/60ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to nutrition control, e.g. diets

Definitions

  • the present disclosure relates to the field of smart home technology, and in particular to a method and device for determining a cooking plan, a storage medium, and an electronic device.
  • a method for determining a cooking plan comprising: acquiring a plurality of recipes, and determining recipe information corresponding to each of the plurality of recipes, wherein each of the recipes corresponds to a dish; and determining a target cooking plan corresponding to the plurality of recipes from a plurality of cooking plans according to the recipe information corresponding to each of the plurality of recipes, wherein the target cooking plan is a cooking plan that consumes the least time among the plurality of cooking plans.
  • a device for determining a cooking plan including: a first determination module, configured to obtain a plurality of recipes and determine recipe information corresponding to each of the plurality of recipes, wherein each of the recipes corresponds to a dish; and a second determination module, configured to determine a target cooking plan corresponding to the plurality of recipes from a plurality of cooking plans according to the recipe information corresponding to each of the plurality of recipes, wherein the target cooking plan is a cooking plan that consumes the least time among the plurality of cooking plans.
  • a computer-readable storage medium in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned method for determining a cooking plan when running.
  • an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for determining the cooking plan through the computer program.
  • FIG1 is a schematic diagram of a hardware environment of a method for determining a cooking plan according to an embodiment of the present disclosure
  • FIG2 is a flow chart of a method for determining a cooking plan according to an embodiment of the present disclosure (I);
  • FIG3 is an overall framework diagram of a method for determining a cooking plan according to an embodiment of the present disclosure
  • FIG4 is a flowchart (II) of a method for determining a cooking plan according to an embodiment of the present disclosure
  • FIG5 is a structural block diagram of a device for determining a cooking plan according to an embodiment of the present disclosure
  • FIG. 6 is a structural block diagram of an optional electronic device according to an embodiment of the present disclosure.
  • a method for determining a cooking plan is provided.
  • the method for determining a cooking plan is widely used in whole-house intelligent digital control application scenarios such as smart home, smart home, smart home device ecology, and smart house ecology.
  • the above-mentioned method for determining a cooking plan can be applied to a hardware environment consisting of a terminal device 102 and a server 104 as shown in Figure 1.
  • the server 104 is connected to the terminal device 102 through a network, and can be configured to provide services (such as application services, etc.) for the terminal or a client installed on the terminal, a database can be set on the server or independently of the server, and it is configured to provide data storage services for the server 104, cloud computing and/or edge computing services can be configured on the server or independently of the server, and it is configured to provide data computing services for the server 104.
  • services such as application services, etc.
  • a database can be set on the server or independently of the server, and it is configured to provide data storage services for the server 104
  • cloud computing and/or edge computing services can be configured on the server or independently of the server, and it is configured to provide data computing services for the server 104.
  • the above network may include but is not limited to at least one of the following: wired network, wireless network.
  • the above wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the above wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth.
  • WIFI Wireless Fidelity
  • the terminal device 102 may be but is not limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing equipment, a smart dishwasher, a smart projection equipment, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart fresh air equipment, a smart kitchen and bathroom equipment, a smart bathroom equipment, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification equipment, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.
  • FIG. 2 is a flow chart (I) of the method for determining a cooking plan according to an embodiment of the present disclosure.
  • the flow chart includes the following steps:
  • Step S202 obtaining a plurality of recipes, and determining recipe information corresponding to each of the plurality of recipes, wherein each of the recipes corresponds to a dish;
  • determining the recipe information corresponding to each of the multiple recipes includes: determining the multiple cooking processes corresponding to each of the recipes, the sequential relationship of the multiple cooking processes, and the duration required for each of the multiple cooking processes; determining the multiple cooking resources corresponding to each of the cooking processes and the duration consumed by each of the multiple cooking resources used by each of the corresponding cooking processes.
  • the time of the cooking process can be determined, and specifically, the maximum time of using each cooking resource. For example, when executing process X, two cooking resources M and N are needed, the time to use cooking resource M is 2 minutes, and the time to use cooking resource N is 1 minute, then the time required to execute cooking process X is max(1,2), that is, 2 minutes.
  • Cooking resources include general resources and special resources, among which general resources include but are not limited to: pots, people, ovens. Special resources include space resources, etc.
  • Step S204 determining a target cooking plan corresponding to the multiple recipes from the multiple cooking plans according to the recipe information corresponding to each recipe in the multiple recipes, wherein the target cooking plan is the cooking plan that consumes the least time among the multiple cooking plans.
  • the target cooking plan includes: the target start time and target end time of each cooking process in the multiple cooking processes corresponding to each recipe, and the target start time and target end time of each cooking resource in the multiple cooking resources corresponding to each cooking process.
  • the target cooking plan corresponding to the multiple recipes is determined from the multiple cooking plans according to the recipe information corresponding to each of the multiple recipes, wherein the target cooking plan is the cooking plan that consumes the least time among the multiple cooking plans. Since the cooking plan that takes the shortest time to cook multiple dishes can be determined according to the recipe information corresponding to each of the multiple recipes, the problem that the user easily wastes a lot of time in the process of cooking multiple dishes is solved, thereby saving cooking time for the user.
  • step S204 can be implemented by the following steps S11-S12:
  • Step S11 determining target decision variables, target constraints and target functions, and establishing a linear programming model through the target decision variables, the target constraints and the target functions;
  • determining the target decision variable includes: determining the start time and the end time of each cooking process among the multiple cooking processes corresponding to each recipe; determining the start time and the end time of each cooking resource among the corresponding multiple cooking resources used by each cooking process among the multiple cooking processes corresponding to each recipe.
  • the target decision variables include: the start time and the end time of each cooking process in each recipe, and the start time and the end time of each cooking resource used by each cooking process.
  • the decision variables include: S ⁇ np ⁇ : the start time of the pth process of the nth dish; E ⁇ np ⁇ : the end time of the pth process of the nth dish; S ⁇ npr ⁇ : the start time of the pth process of the nth dish using resource r; E ⁇ npr ⁇ : the end time of the pth process of the nth dish using resource r.
  • determining the target constraint condition includes: determining a time constraint condition, determining a sequence constraint condition, and determining a resource constraint condition. That is, the target constraint condition includes: a time constraint condition, a sequence constraint condition, and a resource constraint condition.
  • the time constraint condition includes: the difference between the end time and the start time of each cooking process corresponding to each recipe using each corresponding cooking resource is greater than or equal to the time consumed by each cooking process using each corresponding cooking resource;
  • the time constraint condition may be expressed by a mathematical formula as E ⁇ npr ⁇ ⁇ S ⁇ npr ⁇ ⁇ Thres ⁇ npr ⁇ .
  • the order constraint conditions include: the start time of each cooking resource corresponding to each cooking process corresponding to each recipe is less than or equal to the end time of each cooking resource corresponding to each cooking process corresponding to each recipe, the end time of the N-1th cooking resource corresponding to each cooking process corresponding to each recipe is less than or equal to the end time of the Nth cooking resource corresponding to each cooking process corresponding to each recipe, the start time of each cooking process corresponding to each recipe is less than or equal to the start time of each cooking resource corresponding to each cooking process corresponding to each recipe, and the end time of each cooking resource corresponding to each cooking process corresponding to each recipe is less than or equal to the end time of each cooking process corresponding to each recipe; N is greater than or equal to 2, and N is a positive integer;
  • the order constraint condition may be expressed by a mathematical formula as follows: E ⁇ npr ⁇ ⁇ S ⁇ npr ⁇ ⁇ 0; E ⁇ npr ⁇ ⁇ E ⁇ n(p+1)r ⁇ ; S ⁇ np ⁇ ⁇ S ⁇ npr ⁇ ⁇ E ⁇ npr ⁇ ⁇ E ⁇ np ⁇ .
  • the resource constraint condition includes: when there are M target cooking resources among a plurality of cooking resources, there are not more than M cooking processes using the target cooking resources in the same time period.
  • determining the objective function includes: determining the cooking completion time of the dish corresponding to each recipe, wherein the cooking completion time of the dish corresponding to each recipe is a variable in the linear programming process; and determining the functional relationship of the objective function as the maximum value of the cooking completion time of the dish corresponding to each recipe.
  • Step S12 using the linear programming model to perform linear programming on the recipe information corresponding to each of the multiple recipes, so as to determine the target cooking plan corresponding to the multiple recipes from the multiple cooking plans.
  • the target cooking plan is determined by determining the value of the decision variable when the function value of the objective function is minimized.
  • FIG3 is an overall framework diagram of a method for determining a cooking plan according to an embodiment of the present disclosure, that is, by constructing a linear programming model, and then obtaining a target cooking plan through recipe information corresponding to each recipe in a plurality of recipes.
  • FIG. 4 is a flow chart (II) of a method for determining a cooking plan according to an embodiment of the present disclosure, specifically:
  • S3 Optimization solution; specifically, linear programming is performed according to the recipe information of the recipe to determine the cooking plan.
  • n dish number
  • p cooking process number
  • r cooking resource list, which includes multiple general resources: such as oven (r1), people (r2), pot (r3), etc.
  • special resources: r0 represents space resources, which are different from other resources in that they do not need to consider constraints but require time to complete.
  • constraints include:
  • Time constraint the time of each process of each dish is greater than a given value (input);
  • the decision variables are: S ⁇ np ⁇ : start time of the pth process of the nth dish; E ⁇ np ⁇ : end time of the pth process of the nth dish; S ⁇ npr ⁇ : start time of the pth process of the nth dish using resource r; E ⁇ npr ⁇ : end time of the pth process of the nth dish using resource r.
  • Constraints Time constraint: E ⁇ npr ⁇ – S ⁇ npr ⁇ >Thres ⁇ npr ⁇ ; Order constraint: E ⁇ npr ⁇ ⁇ S ⁇ npr ⁇ ⁇ 0; E ⁇ npr ⁇ ⁇ E ⁇ n(p+1)r ⁇ ; S ⁇ np ⁇ ⁇ S ⁇ npr ⁇ ⁇ E ⁇ npr ⁇ ⁇ E ⁇ np ⁇ ; Resource constraint: Cooking resources (e.g. ovens) cannot be used simultaneously. In other words, given a resource r: [S ⁇ npr ⁇ , E ⁇ npr ⁇ ] cannot be repeated for all np.
  • interval [a, b][c, d] does not repeat the condition: d-a ⁇ 0 or b-c ⁇ 0, mathematically expressed as follows: d-a ⁇ 0+uM; b-c ⁇ 0+(1-u)*Ms; u ⁇ 0,1 ⁇ .
  • the disclosed embodiment provides a method for automatic coordination of processes between multiple dishes in a recipe recommendation scenario. According to the recommended dishes selected by the user and the time and resource requirements of each process of each dish, a cooking plan that can be completed the fastest can be automatically given. For the user, after entering the recipe, he can get a cooking plan for the dish, saving his own time.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method.
  • the technical solution of the present disclosure, or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, a disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present disclosure.
  • a storage medium such as ROM/RAM, a disk, or an optical disk
  • a cooking plan determination device is also provided, which is configured to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated for what has been described.
  • the term "module” may be a combination of software and/or hardware that implements a predetermined function.
  • the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
  • FIG5 is a structural block diagram of a device for determining a cooking plan according to an embodiment of the present disclosure, the device comprising:
  • a first determining module 52 is configured to obtain a plurality of recipes and determine recipe information corresponding to each of the plurality of recipes, wherein each of the recipes corresponds to a dish;
  • the second determining module 54 is configured to determine a target cooking plan corresponding to the multiple recipes from the multiple cooking plans according to the recipe information corresponding to each recipe in the multiple recipes, wherein the target cooking plan is the cooking plan that consumes the least time among the multiple cooking plans.
  • the target cooking plan corresponding to the multiple recipes is determined from the multiple cooking plans according to the recipe information corresponding to each of the multiple recipes, wherein the target cooking plan is the cooking plan that consumes the least time among the multiple cooking plans. Since the cooking plan that takes the shortest time to cook multiple dishes can be determined according to the recipe information corresponding to each of the multiple recipes, the problem that the user easily wastes a lot of time in the process of cooking multiple dishes is solved, thereby saving cooking time for the user.
  • the first determination module 52 is further configured to determine the multiple cooking processes corresponding to each of the recipes, the sequential relationship of the multiple cooking processes, and the duration required for each of the multiple cooking processes; determine the multiple cooking resources corresponding to each of the cooking processes and the duration consumed by each of the multiple cooking resources corresponding to each of the cooking processes.
  • the second determination module 54 is also configured to determine target decision variables, target constraints and objective functions, and establish a linear programming model through the target decision variables, the target constraints and the objective function; use the linear programming model to perform linear programming on the recipe information corresponding to each recipe in the multiple recipes, so as to determine the target cooking plans corresponding to the multiple recipes from the multiple cooking plans.
  • the second determination module 54 is also configured to determine the start time and end time of each cooking process in the multiple cooking processes corresponding to each recipe; and determine the start time and end time of each cooking resource in the multiple cooking resources used by each cooking process in the multiple cooking processes corresponding to each recipe.
  • the second determination module 54 is further configured to determine a time constraint, wherein the time constraint includes: the difference between the end time and the start time of each cooking process corresponding to each recipe using each corresponding cooking resource is greater than or equal to the time consumed by each cooking process using each corresponding cooking resource; determine a sequence constraint, wherein the sequence constraint includes: the start time of each cooking process corresponding to each recipe using each corresponding cooking resource is less than or equal to the end time of each cooking process corresponding to each recipe using each corresponding cooking resource, and the end time of each cooking process corresponding to each recipe using the corresponding N-1th cooking resource is less than or equal to the end time of each cooking process corresponding to each recipe using the corresponding N-1th cooking resource.
  • N is greater than or equal to 2
  • N is a positive integer
  • the second determination module 54 is further configured to determine the cooking completion time of the dish corresponding to each recipe, wherein the cooking completion time of the dish corresponding to each recipe is a variable in the linear programming process; and the functional relationship of the objective function is determined as the maximum value of the cooking completion time of the dish corresponding to each recipe.
  • the target start time and the target end time of each cooking process in the multiple cooking processes corresponding to each recipe and the target start time and the target end time of each cooking resource in the multiple cooking resources corresponding to each cooking process.
  • An embodiment of the present disclosure further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
  • the storage medium may be configured to store a computer program configured to perform the following steps:
  • an electronic device configured to implement the above-mentioned method for determining a cooking plan.
  • the electronic device includes a memory 602 and a processor 604.
  • a computer program is stored in the memory 602.
  • the processor 604 is configured to execute the steps in any one of the above-mentioned method embodiments through the computer program.
  • the electronic device may be located in at least one network device among a plurality of network devices of a computer network.
  • the structure shown in FIG. 6 is for illustration only, and the electronic device may also be a terminal device such as a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, and a mobile Internet device (Mobile Internet Devices, MID), PAD, etc.
  • FIG. 6 does not limit the structure of the above-mentioned electronic device.
  • the electronic device may also include more or fewer components (such as a network interface, etc.) than those shown in FIG. 6, or have a configuration different from that shown in FIG. 6.
  • the memory 602 can be configured to store software programs and modules, such as program instructions/modules corresponding to the method and device for determining the cooking plan in the embodiment of the present disclosure, and the processor 604 executes various functional applications and data processing by running the software programs and modules stored in the memory 602, that is, to implement the above-mentioned method for determining the cooking plan.
  • the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
  • the memory 602 may further include a memory remotely arranged relative to the processor 604, and these remote memories may be connected to the terminal via a network.
  • the above-mentioned network examples include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • the above-mentioned memory 602 may include, as shown in FIG. 6, but is not limited to, the first determination module 52 and the second determination module 54 in the device for determining the cooking plan.
  • module units in the above-mentioned cooking plan determination device may also be included but not limited to, which will not be described in detail in this example.
  • the transmission device 606 is configured to receive or send data via a network.
  • Specific examples of the above-mentioned network may include a wired network and a wireless network.
  • the transmission device 606 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network.
  • the transmission device 606 is a radio frequency (RF) module, which is configured to communicate with the Internet wirelessly.
  • RF radio frequency
  • the electronic device further comprises: a display 608 and a connection bus 610 , wherein the connection bus 610 is configured to connect various module components in the electronic device.
  • the above-mentioned computer-readable storage medium may include, but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.
  • An embodiment of the present disclosure further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
  • the processor may be configured to perform the following steps through a computer program:
  • the electronic device may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
  • modules or steps of the present disclosure can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the present disclosure is not limited to any specific combination of hardware and software.

Landscapes

  • Health & Medical Sciences (AREA)
  • Nutrition Science (AREA)
  • Engineering & Computer Science (AREA)
  • Epidemiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Primary Health Care (AREA)
  • Public Health (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present disclosure provides a cooking plan determination method and apparatus, a storage medium, and an electronic apparatus, and relates to the technical field of smart homes. The cooking plan determination method comprises: obtaining a plurality of recipes, and determining recipe information corresponding to each of the plurality of recipes, wherein each recipe corresponds to one dish; according to the recipe information corresponding to each of the plurality of recipes, determining from a plurality of cooking plans a target cooking plan corresponding to the plurality of recipes, wherein the target cooking plan is the cooking plan of the plurality of cooking plans which requires the least amount of time.

Description

烹饪计划的确定方法及装置、存储介质及电子装置Method and device for determining cooking plan, storage medium and electronic device

本公开要求于2022年09月29日提交中国专利局、申请号为202211203429.1、发明名称“烹饪计划的确定方法及装置、存储介质及电子装置”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。This disclosure claims the priority of the Chinese patent application filed with the China Patent Office on September 29, 2022, with application number 202211203429.1, and invention name “Method and device for determining a cooking plan, storage medium and electronic device”, the entire content of which is incorporated by reference in this disclosure.

技术领域Technical Field

本公开涉及智慧家庭技术领域,具体而言,涉及一种烹饪计划的确定方法及装置、存储介质及电子装置。The present disclosure relates to the field of smart home technology, and in particular to a method and device for determining a cooking plan, a storage medium, and an electronic device.

背景技术Background technique

随着人们对健康越来越关注,大部分家庭都选择在家自己做饭,但在智慧家居场景下,只考虑根据用户偏好向用户推荐菜品以及对应的菜谱,进而用户根据菜谱进行烹饪。而当需要做多个菜时,用户则需要协调每个菜各个工序的开始结束时间。但用户自己协调每个菜的烹饪流程对多个菜品进行烹饪所消耗的时候往往不是最短的,使得用户浪费了很多时间。As people pay more and more attention to health, most families choose to cook at home. However, in the smart home scenario, only dishes and corresponding recipes are recommended to users based on their preferences, and then users cook according to the recipes. When multiple dishes need to be cooked, users need to coordinate the start and end time of each process for each dish. However, the time consumed by users to coordinate the cooking process of each dish to cook multiple dishes is often not the shortest, which makes users waste a lot of time.

针对相关技术中,用户在烹饪多个菜品的过程中,容易浪费较多时间的问题,目前尚未提出有效的解决方案。With regard to the problem in related technologies that users tend to waste a lot of time when cooking multiple dishes, no effective solution has been proposed so far.

因此,有必要对相关技术予以改良以克服相关技术中的所述缺陷。Therefore, it is necessary to improve the related technology to overcome the above-mentioned defects in the related technology.

发明内容Summary of the invention

根据本公开实施例的一方面,提供一种烹饪计划的确定方法,包括:获取多个菜谱,并确定所述多个菜谱中每个菜谱对应的菜谱信息,其中,所述每个菜谱对应一个菜品;根据所述多个菜谱中每个菜谱对应的菜谱信息从多个烹饪计划中确定所述多个菜谱对应的目标烹饪计划,其中,所述目标烹饪计划为所述多个烹饪计划中消耗时间最少的烹饪计划。According to one aspect of an embodiment of the present disclosure, a method for determining a cooking plan is provided, comprising: acquiring a plurality of recipes, and determining recipe information corresponding to each of the plurality of recipes, wherein each of the recipes corresponds to a dish; and determining a target cooking plan corresponding to the plurality of recipes from a plurality of cooking plans according to the recipe information corresponding to each of the plurality of recipes, wherein the target cooking plan is a cooking plan that consumes the least time among the plurality of cooking plans.

根据本公开实施例的另一方面,还提供了一种烹饪计划的确定装置,包括:第一确定模块,被设置为获取多个菜谱,并确定所述多个菜谱中每个菜谱对应的菜谱信息,其中,所述每个菜谱对应一个菜品;第二确定模块,被设置为根据所述多个菜谱中每个菜谱对应的菜谱信息从多个烹饪计划中确定所述多个菜谱对应的目标烹饪计划,其中,所述目标烹饪计划为所述多个烹饪计划中消耗时间最少的烹饪计划。According to another aspect of an embodiment of the present disclosure, a device for determining a cooking plan is also provided, including: a first determination module, configured to obtain a plurality of recipes and determine recipe information corresponding to each of the plurality of recipes, wherein each of the recipes corresponds to a dish; and a second determination module, configured to determine a target cooking plan corresponding to the plurality of recipes from a plurality of cooking plans according to the recipe information corresponding to each of the plurality of recipes, wherein the target cooking plan is a cooking plan that consumes the least time among the plurality of cooking plans.

根据本公开实施例的又一方面,还提供了一种计算机可读的存储介质,该计算机可读的存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述烹饪计划的确定方法。According to another aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned method for determining a cooking plan when running.

根据本公开实施例的又一方面,还提供了一种电子装置,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,上述处理器通过计算机程序执行上述烹饪计划的确定方法。According to another aspect of the embodiments of the present disclosure, there is also provided an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for determining the cooking plan through the computer program.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

图1是根据本公开实施例的一种烹饪计划的确定方法的硬件环境示意图;FIG1 is a schematic diagram of a hardware environment of a method for determining a cooking plan according to an embodiment of the present disclosure;

图2是根据本公开实施例的烹饪计划的确定方法的流程图(一);FIG2 is a flow chart of a method for determining a cooking plan according to an embodiment of the present disclosure (I);

图3是根据本公开实施例的烹饪计划的确定方法的整体框架图;FIG3 is an overall framework diagram of a method for determining a cooking plan according to an embodiment of the present disclosure;

图4是根据本公开实施例的烹饪计划的确定方法的流程图(二);FIG4 is a flowchart (II) of a method for determining a cooking plan according to an embodiment of the present disclosure;

图5是根据本公开实施例的烹饪计划的确定装置的结构框图;FIG5 is a structural block diagram of a device for determining a cooking plan according to an embodiment of the present disclosure;

图6是根据本公开实施例的一种可选的电子装置的结构框图。FIG. 6 is a structural block diagram of an optional electronic device according to an embodiment of the present disclosure.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本公开方案,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分的实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本公开保护的范围。In order to enable those skilled in the art to better understand the scheme of the present disclosure, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present disclosure.

需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.

根据本公开实施例的一个方面,提供了一种烹饪计划的确定方法。该烹饪计划的确定方法广泛应用于智慧家庭(Smart Home)、智能家居、智能家用设备生态、智慧住宅(IntelligenceHouse)生态等全屋智能数字化控制应用场景。可选地,在本实施例中,上述烹饪计划的确定方法可以应用于如图1所示的由终端设备102和服务器104所构成的硬件环境中。如图1所示,服务器104通过网络与终端设备102进行连接,可被设置为为终端或终端上安装的客户端提供服务(如应用服务等),可在服务器上或独立于服务器设置数据库,被设置为为服务器104提供数据存储服务,可在服务器上或独立于服务器配置云计算和/或边缘计算服务,被设置为为服务器104提供数据运算服务。According to one aspect of an embodiment of the present disclosure, a method for determining a cooking plan is provided. The method for determining a cooking plan is widely used in whole-house intelligent digital control application scenarios such as smart home, smart home, smart home device ecology, and smart house ecology. Optionally, in this embodiment, the above-mentioned method for determining a cooking plan can be applied to a hardware environment consisting of a terminal device 102 and a server 104 as shown in Figure 1. As shown in Figure 1, the server 104 is connected to the terminal device 102 through a network, and can be configured to provide services (such as application services, etc.) for the terminal or a client installed on the terminal, a database can be set on the server or independently of the server, and it is configured to provide data storage services for the server 104, cloud computing and/or edge computing services can be configured on the server or independently of the server, and it is configured to provide data computing services for the server 104.

上述网络可以包括但不限于以下至少之一:有线网络,无线网络。上述有线网络可以包括但不限于以下至少之一:广域网,城域网,局域网,上述无线网络可以包括但不限于以下至少之一:WIFI(Wireless Fidelity,无线保真),蓝牙。终端设备102可以并不限定于为PC、手机、平板电脑、智能空调、智能烟机、智能冰箱、智能烤箱、智能炉灶、智能洗衣机、智能热水器、智能洗涤设备、智能洗碗机、智能投影设备、智能电视、智能晾衣架、智能窗帘、智能影音、智能插座、智能音响、智能音箱、智能新风设备、智能厨卫设备、智能卫浴设备、智能扫地机器人、智能擦窗机器人、智能拖地机器人、智能空气净化设备、智能蒸箱、智能微波炉、智能厨宝、智能净化器、智能饮水机、智能门锁等。The above network may include but is not limited to at least one of the following: wired network, wireless network. The above wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the above wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device 102 may be but is not limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing equipment, a smart dishwasher, a smart projection equipment, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart fresh air equipment, a smart kitchen and bathroom equipment, a smart bathroom equipment, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification equipment, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.

为了解决上述问题,在本实施例中提供了一种烹饪计划的确定方法,图2是根据本公开实施例的烹饪计划的确定方法的流程图(一),该流程包括如下步骤:In order to solve the above problem, a method for determining a cooking plan is provided in this embodiment. FIG. 2 is a flow chart (I) of the method for determining a cooking plan according to an embodiment of the present disclosure. The flow chart includes the following steps:

步骤S202,获取多个菜谱,并确定所述多个菜谱中每个菜谱对应的菜谱信息,其中,所述每个菜谱对应一个菜品;Step S202, obtaining a plurality of recipes, and determining recipe information corresponding to each of the plurality of recipes, wherein each of the recipes corresponds to a dish;

在一个示例性的实施例中,确定所述多个菜谱中每个菜谱对应的菜谱信息,包括:确定所述每个菜谱对应的多个烹饪流程、所述多个烹饪流程的顺序关系、所述多个烹饪流程中每个烹饪流程所需的时长;确定所述每个烹饪流程所对应的多个烹饪资源以及所述每个烹饪流程使用对应的多个烹饪资源中每个烹饪资源所消耗的时长。In an exemplary embodiment, determining the recipe information corresponding to each of the multiple recipes includes: determining the multiple cooking processes corresponding to each of the recipes, the sequential relationship of the multiple cooking processes, and the duration required for each of the multiple cooking processes; determining the multiple cooking resources corresponding to each of the cooking processes and the duration consumed by each of the multiple cooking resources used by each of the corresponding cooking processes.

例如,有A菜品对应的A菜谱,则需要解析A菜谱,确定制作A菜品所需的烹饪流程,假设有X、Y两个烹饪流程,其顺序关系为先执行X流程(需要耗时2分钟),再执行Y流程(需要耗时3分钟)。此外,在执行X流程的时候,需要用到M、N两个烹饪资源,使用M烹饪资源的时间为2分钟,使用N烹饪资源的时间为1分钟,在执行Y流程的时候,需要用到M烹饪资源,需要使用3分钟。For example, if there is a recipe A corresponding to dish A, then you need to parse recipe A to determine the cooking process required to make dish A. Assuming there are two cooking processes X and Y, the order is to execute process X first (which takes 2 minutes) and then execute process Y (which takes 3 minutes). In addition, when executing process X, you need to use two cooking resources, M and N. The time to use cooking resource M is 2 minutes, and the time to use cooking resource N is 1 minute. When executing process Y, you need to use cooking resource M, which takes 3 minutes.

需要说明的是,在确定了一个烹饪流程中使用每个烹饪资源所需的时间以后,就可以确定此烹饪流程的时间,具体的,可以为使用每个烹饪资源的时间的最大值。例如,在执行X流程的时候,需要用到M、N两个烹饪资源,使用M烹饪 资源的时间为2分钟,使用N烹饪资源的时间为1分钟,则执行X烹饪流程的所需的时间为max(1,2),即2分钟。It should be noted that after determining the time required to use each cooking resource in a cooking process, the time of the cooking process can be determined, and specifically, the maximum time of using each cooking resource. For example, when executing process X, two cooking resources M and N are needed, the time to use cooking resource M is 2 minutes, and the time to use cooking resource N is 1 minute, then the time required to execute cooking process X is max(1,2), that is, 2 minutes.

需要说明的是,烹饪流程包括但不限于:煮、抄、蒸、烤、备菜等等。烹饪资源包括一般资源以及特殊资源,其中,一般资源包括但不限于:锅、人、烤箱。特殊资源包括空间资源等等。It should be noted that the cooking process includes but is not limited to: boiling, frying, steaming, baking, preparing food, etc. Cooking resources include general resources and special resources, among which general resources include but are not limited to: pots, people, ovens. Special resources include space resources, etc.

需要说明的是,在解析菜谱确定菜谱信息以后,可以对菜谱信息进行分类标识,例如:n:菜编号;p:烹饪流程编号;r:烹饪流程所需的烹饪资源列表。并确定Thres {npr}(第n个菜第p个流程使用资源r需要的时间),n=1,...,N;p=1,...,P;r=1,...,R;以及确定Thres {np}(第n个菜第p个流程需要的时间)。 It should be noted that after parsing the recipe to determine the recipe information, the recipe information can be classified and identified, for example: n: dish number; p: cooking process number; r: list of cooking resources required for the cooking process. And determine Thres {npr} (the time required for the nth dish and the pth process to use resource r), n = 1, ..., N; p = 1, ..., P; r = 1, ..., R; and determine Thres {np} (the time required for the nth dish and the pth process).

需要说明的是,Thres {np}=max{Thres {npr},r=1,...,R.}。 It should be noted that Thres {np} = max{Thres {npr} , r = 1, ..., R}.

步骤S204,根据所述多个菜谱中每个菜谱对应的菜谱信息从多个烹饪计划中确定所述多个菜谱对应的目标烹饪计划,其中,所述目标烹饪计划为所述多个烹饪计划中消耗时间最少的烹饪计划。Step S204: determining a target cooking plan corresponding to the multiple recipes from the multiple cooking plans according to the recipe information corresponding to each recipe in the multiple recipes, wherein the target cooking plan is the cooking plan that consumes the least time among the multiple cooking plans.

需要说明的是,所述目标烹饪计划,包括:每个菜谱对应的多个烹饪流程中每个烹饪流程的目标开始时刻与目标结束时刻、以及所述每个烹饪流程使用对应的多个烹饪资源中每个烹饪资源的目标开始时刻与目标结束时刻。It should be noted that the target cooking plan includes: the target start time and target end time of each cooking process in the multiple cooking processes corresponding to each recipe, and the target start time and target end time of each cooking resource in the multiple cooking resources corresponding to each cooking process.

即假设有X、Y二个烹饪流程,则需要确定X、Y两个烹饪流程何时开始、何时结束、假设在执行X流程的时候,需要用到M、N两个烹饪资源,则需要确定使用M烹饪资源的目标开始时刻与目标结束时刻,使用N烹饪资源的目标开始时间与目标结束时间,同理,还需要确定Y烹饪流程使用对应的每个烹饪资源的目标开始时刻与目标结束时刻。That is, assuming that there are two cooking processes X and Y, it is necessary to determine when the two cooking processes X and Y start and end. Assuming that two cooking resources M and N are needed when executing process X, it is necessary to determine the target start time and target end time of using cooking resource M, and the target start time and target end time of using cooking resource N. Similarly, it is also necessary to determine the target start time and target end time of each corresponding cooking resource used by cooking process Y.

通过上述步骤,获取多个菜谱,并确定多个菜谱中每个菜谱对应的菜谱信息,进而根据多个菜谱中每个菜谱对应的菜谱信息从多个烹饪计划中确定多个菜谱对应的目标烹饪计划,其中,目标烹饪计划为多个烹饪计划中消耗时间最少的烹饪计划。由于可以根据多个菜谱中每个菜谱对应的菜谱信息确定烹饪多个菜品所需时间最短的烹饪计划,进而解决了用户在烹饪多个菜品的过程中,容易浪费较 多时间的问题,进而为用户节约了烹饪时间。Through the above steps, multiple recipes are obtained, and the recipe information corresponding to each of the multiple recipes is determined, and then the target cooking plan corresponding to the multiple recipes is determined from the multiple cooking plans according to the recipe information corresponding to each of the multiple recipes, wherein the target cooking plan is the cooking plan that consumes the least time among the multiple cooking plans. Since the cooking plan that takes the shortest time to cook multiple dishes can be determined according to the recipe information corresponding to each of the multiple recipes, the problem that the user easily wastes a lot of time in the process of cooking multiple dishes is solved, thereby saving cooking time for the user.

在一个示例性的实施例中,上述步骤S204可以通过以下步骤S11-S12实现:In an exemplary embodiment, the above step S204 can be implemented by the following steps S11-S12:

步骤S11:确定目标决策变量、目标约束条件以及目标函数,并通过所述目标决策变量、所述目标约束条件以及所述目标函数建立线性规划模型;Step S11: determining target decision variables, target constraints and target functions, and establishing a linear programming model through the target decision variables, the target constraints and the target functions;

在一个示例性的实施例中,确定目标决策变量包括:确定每个菜谱对应的多个烹饪流程中每个烹饪流程的开始时刻与结束时刻;确定每个菜谱对应的多个烹饪流程中每个烹饪流程使用对应的多个烹饪资源中每个烹饪资源的开始时刻与结束时刻。In an exemplary embodiment, determining the target decision variable includes: determining the start time and the end time of each cooking process among the multiple cooking processes corresponding to each recipe; determining the start time and the end time of each cooking resource among the corresponding multiple cooking resources used by each cooking process among the multiple cooking processes corresponding to each recipe.

也就是说,目标决策变量包括:每个菜谱中每个烹饪流程的开始时刻与结束时刻,每个烹饪流程使用对应的每个烹饪资源的开始时刻与结束时刻。That is, the target decision variables include: the start time and the end time of each cooking process in each recipe, and the start time and the end time of each cooking resource used by each cooking process.

具体的,用数学符号表示,决策变量包括:S {np}:第n个菜第p个流程开始时刻;E {np}:第n个菜第p个流程结束时刻;S {npr}:第n个菜第p个流程使用资源r开始时刻;E {npr}:第n个菜第p个流程使用资源r结束时刻。 Specifically, expressed in mathematical symbols, the decision variables include: S {np} : the start time of the pth process of the nth dish; E {np} : the end time of the pth process of the nth dish; S {npr} : the start time of the pth process of the nth dish using resource r; E {npr} : the end time of the pth process of the nth dish using resource r.

在一个示例性的实施例中,确定目标约束条件,包括:确定时间约束条件,确定顺序约束条件,确定资源约束条件。即目标约束条件包括:时间约束条件、顺序约束条件、资源约束条件。In an exemplary embodiment, determining the target constraint condition includes: determining a time constraint condition, determining a sequence constraint condition, and determining a resource constraint condition. That is, the target constraint condition includes: a time constraint condition, a sequence constraint condition, and a resource constraint condition.

需要说明的是,时间约束条件包括:每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的结束时刻与开始时刻的差值大于或等于所述每个烹饪流程使用对应的每个烹饪资源所消耗的时间;It should be noted that the time constraint condition includes: the difference between the end time and the start time of each cooking process corresponding to each recipe using each corresponding cooking resource is greater than or equal to the time consumed by each cooking process using each corresponding cooking resource;

示例性的是,时间约束条件用数学公式可以表示为E {npr}–S {npr}≥Thres {npr}Illustratively, the time constraint condition may be expressed by a mathematical formula as E {npr} −S {npr} ≥ Thres {npr} .

需要说明的是,顺序约束条件包括:每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的开始时刻小于或等于所述每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的结束时刻、每个菜谱对应的每个烹饪流程使用对应的第N-1个烹饪资源的结束时刻小于或等于所述每个菜谱对应的每个烹饪流程使用对应的第N个烹饪资源的结束时刻、每个菜谱对应的每个烹饪流程的开始时刻小于 或等于每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的开始时刻、所述每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的结束时刻小于或等于所述每个菜谱对应的每个烹饪流程的结束时刻;所述N大于或等于2,所述N为正整数;It should be noted that the order constraint conditions include: the start time of each cooking resource corresponding to each cooking process corresponding to each recipe is less than or equal to the end time of each cooking resource corresponding to each cooking process corresponding to each recipe, the end time of the N-1th cooking resource corresponding to each cooking process corresponding to each recipe is less than or equal to the end time of the Nth cooking resource corresponding to each cooking process corresponding to each recipe, the start time of each cooking process corresponding to each recipe is less than or equal to the start time of each cooking resource corresponding to each cooking process corresponding to each recipe, and the end time of each cooking resource corresponding to each cooking process corresponding to each recipe is less than or equal to the end time of each cooking process corresponding to each recipe; N is greater than or equal to 2, and N is a positive integer;

示例性的,顺序约束条件用数学公式可以表示为:E {npr}≥S {npr}≥0;E {npr}≤E {n(p+1)r};S {np}≤S {npr}≤E {npr}≤E {np}Exemplarily, the order constraint condition may be expressed by a mathematical formula as follows: E {npr} ≥ S {npr} ≥ 0; E {npr} ≤ E {n(p+1)r} ; S {np} ≤ S {npr} ≤ E {npr} ≤ E {np} .

需要说明的是,资源约束条件包括:在多个烹饪资源中存在目标烹饪资源的数量为M个的情况下,不存在M个以上的烹饪流程在同一时间段使用所述目标烹饪资源。It should be noted that the resource constraint condition includes: when there are M target cooking resources among a plurality of cooking resources, there are not more than M cooking processes using the target cooking resources in the same time period.

为了更好的理解,以烹饪资源为烤箱为例,假设厨房中烤箱只有一个,则不可能有两个以上菜品的烹饪流程在同一时刻使用烤箱。用数学符号表示为在烹饪资源r为M个的情况下,[S {npr},E {npr}]对所有np不能重复M次。 For a better understanding, let's take the cooking resource as an oven. Assuming there is only one oven in the kitchen, it is impossible for the cooking processes of more than two dishes to use the oven at the same time. In mathematical notation, when there are M cooking resources r, [S {npr} , E {npr} ] cannot be repeated M times for all np.

在一个示例性的实施例中,确定目标函数,包括:确定所述每个菜谱对应的菜品的烹饪结束时刻,其中,所述每个菜谱对应的菜品的烹饪结束时刻在线性规划的过程中为变量;将所述目标函数的函数关系式确定为求所述每个菜谱对应的菜品的烹饪结束时刻的最大值。In an exemplary embodiment, determining the objective function includes: determining the cooking completion time of the dish corresponding to each recipe, wherein the cooking completion time of the dish corresponding to each recipe is a variable in the linear programming process; and determining the functional relationship of the objective function as the maximum value of the cooking completion time of the dish corresponding to each recipe.

用数学符号进行表示,则目标函数T=max{E {npr},{n=1,...,N.p=1,...,P.r=1,...,R.}}。 Expressed in mathematical symbols, the objective function T = max{E {npr}, {n = 1, ..., Np = 1, ..., Pr = 1, ..., R} }.

步骤S12:利用所述线性规划模型对所述多个菜谱中每个菜谱对应的菜谱信息进行线性规划,以多个烹饪计划中确定所述多个菜谱对应的目标烹饪计划。Step S12: using the linear programming model to perform linear programming on the recipe information corresponding to each of the multiple recipes, so as to determine the target cooking plan corresponding to the multiple recipes from the multiple cooking plans.

需要说明的是,在进行线性规划的时候,通过在目标函数的函数值最小的情况下决策变量的值来确定目标烹饪计划。It should be noted that, when performing linear programming, the target cooking plan is determined by determining the value of the decision variable when the function value of the objective function is minimized.

为了更好的理解,图3是根据本公开实施例的烹饪计划的确定方法的整体框架图,即通过构建线性规划模型,进而通过多个菜谱中每个菜谱对应的菜谱信息得到目标烹饪计划。For better understanding, FIG3 is an overall framework diagram of a method for determining a cooking plan according to an embodiment of the present disclosure, that is, by constructing a linear programming model, and then obtaining a target cooking plan through recipe information corresponding to each recipe in a plurality of recipes.

显然,上述所描述的实施例仅仅是本公开一部分的实施例,而不是全部的实施例。为了更好的理解上述方法,以下结合实施例对上述过程进行说明,但不用 于限定本公开实施例的技术方案,具体地:Obviously, the embodiments described above are only some embodiments of the present disclosure, rather than all embodiments. In order to better understand the above method, the above process is described below in conjunction with the embodiments, but it is not intended to limit the technical solutions of the embodiments of the present disclosure. Specifically:

在一个可选的实施例中,图4是根据本公开实施例的烹饪计划的确定方法的流程图(二),具体的:In an optional embodiment, FIG. 4 is a flow chart (II) of a method for determining a cooking plan according to an embodiment of the present disclosure, specifically:

S1:获取菜谱;S1: Get recipes;

例如:获取A菜谱,B菜谱,C菜谱。For example: Get recipe A, recipe B, and recipe C.

S2:解析菜谱流程;具体的包括确定菜谱的菜谱信息。S2: Recipe parsing process; specifically including determining recipe information of the recipe.

S3:优化求解;具体的,根据菜谱的菜谱信息进行线性规划,确定烹饪计划。S3: Optimization solution; specifically, linear programming is performed according to the recipe information of the recipe to determine the cooking plan.

S4:输出;具体的,输出烹饪计划。S4: Output; specifically, output the cooking plan.

需要说明的是,为了更好的进行线性规划,在获取到菜谱信息以后,约定:n:菜品编号;p:烹饪流程编号;r:烹饪资源列表,烹饪资源列表包括多个一般资源:比如烤箱(r1),人(r2),锅(r3)等;特殊资源:r0表示空间资源,和其它资源不同,它不用考虑约束,但需要时间来完成。It should be noted that in order to better perform linear planning, after obtaining the recipe information, the following conventions are used: n: dish number; p: cooking process number; r: cooking resource list, which includes multiple general resources: such as oven (r1), people (r2), pot (r3), etc.; special resources: r0 represents space resources, which are different from other resources in that they do not need to consider constraints but require time to complete.

在进行线性规划的时候,希望最小化烹饪总时间,其中的约束条件包括:When performing linear programming, we want to minimize the total cooking time, where the constraints include:

时间约束:每个菜的每个流程时间大于某个给定值(输入);Time constraint: the time of each process of each dish is greater than a given value (input);

顺序约束:每个菜的流程需要按照顺序来进行;Sequential constraints: The process of each dish needs to be carried out in order;

资源约束:除特殊资源,其它资源同一时间只能用一次。Resource constraints: Except for special resources, other resources can only be used once at a time.

在进行线性规划的时候,其输入包括:Thres {npr}和做菜时间上限,其中,Thres {npr}表示第n个菜品第p个烹饪流程使用烹饪资源r需要的时间,n=1,...,N;p=1,...,P;r=1,...,R不参与的置0。 When performing linear programming, the input includes: Thres {npr} and the upper limit of cooking time, where Thres {npr} represents the time required for the p-th cooking process of the n-th dish using cooking resource r, n=1,...,N; p=1,...,P; r=1,..., R is set to 0 if not involved.

需要说明的是,Thres {np}=max{Thres {npr},r=1,...,R.},不需要的资源Thres {npr}=0,其中,Thres {np}表示第n个菜品第p个烹饪流程需要的时间。 It should be noted that Thres {np} = max{Thres {npr} , r = 1, ..., R.}, and unnecessary resources Thres {npr} = 0, wherein Thres {np} represents the time required for the p-th cooking process of the n-th dish.

需要说明的是,在进行优化求解的时候,可以转化成线性规划问题,然后输 入Python ortools求解器求解即可,其中,It should be noted that when performing optimization solutions, it can be converted into a linear programming problem and then input into the Python ortools solver for solution.

1、目标:1. Objectives:

min T,T=max{E {npr},{n=1,...,N.p=1,...,P.r=1,...,R.}}; min T, T = max{E {npr}, {n = 1, ..., Np = 1, ..., Pr = 1, ..., R} } ;

需要说明的是,给定一列数a 1,a 2,...,a n求最大,等价于min~T,s.t。 It should be noted that, given a series of numbers a 1 , a 2 , ..., an, finding the maximum is equivalent to min~T,st.

其中,

Figure PCTCN2022141197-appb-000001
Σu i≥1。 in,
Figure PCTCN2022141197-appb-000001
Σu i ≥1.

2、决策变量(后续需要求解出来的变量)为:S {np}:第n个菜第p个流程开始时间;E {np}:第n个菜第p个流程结束时间;S {npr}:第n个菜第p个流程使用资源r开始时间;E {npr}:第n个菜第p个流程使用资源r结束时间。 2. The decision variables (variables that need to be solved later) are: S {np} : start time of the pth process of the nth dish; E {np} : end time of the pth process of the nth dish; S {npr} : start time of the pth process of the nth dish using resource r; E {npr} : end time of the pth process of the nth dish using resource r.

3.约束条件:时间约束:E {npr}–S {npr}>Thres {npr};顺序约束:E {npr}≥S {npr}≥0;E {npr}≤E {n(p+1)r};S {np}≤S {npr}≤E {npr}≤E {np};资源约束:烹饪资源(例如:烤箱)不能同时使用。换句话说,资源r给定的情况下:[S {npr},E {npr}]对所有np不能重复。 3. Constraints: Time constraint: E {npr} – S {npr} >Thres {npr} ; Order constraint: E {npr}S {npr} ≥ 0; E {npr}E {n(p+1)r} ; S {np}S {npr} ≤ E {npr} ≤ E {np} ; Resource constraint: Cooking resources (e.g. ovens) cannot be used simultaneously. In other words, given a resource r: [S {npr} , E {npr} ] cannot be repeated for all np.

需要说明的是,区间[a,b][c,d]不重复条件:d-a≤0或者b-c≤0,数学表达如下:d-a≤0+uM;b-c≤0+(1-u)*Ms;u∈{0,1}。It should be noted that the interval [a, b][c, d] does not repeat the condition: d-a≤0 or b-c≤0, mathematically expressed as follows: d-a≤0+uM; b-c≤0+(1-u)*Ms; u∈{0,1}.

需要说明的是,对r∈{r 1,r 2,...,r R},给定r资源,则对于r下面任何两个流程,需要加入上述顺序约束条件(因为同一个菜下流程顺序约束可以保证不重复,只需要考虑不同菜之间的重复性条件)。 It should be noted that for r∈{r 1 , r 2 , ..., r R }, given r resources, the above order constraints need to be added to any two processes under r (because the order constraints of processes under the same dish can ensure no duplication, only the repeatability conditions between different dishes need to be considered).

4、结果输出4. Result output

利用ORTOOLS整数规划优化器cp_model求解,即可得出每道菜每个流程的开始、结束时刻,每个流程使用每个烹饪资源的开始、结束时刻。By using the ORTOOLS integer programming optimizer cp_model to solve, we can obtain the start and end times of each process of each dish, and the start and end times of each cooking resource used by each process.

需要说明的是,本公开实施例给出了菜谱推荐场景下多道菜之间的流程自动协同方法,根据用户选取的推荐菜品,以及每道菜每个流程下的时间、资源要求,就能自动化的给出最快完成的烹饪计划,对用户来讲,可以输入菜谱后,就得到做菜的烹饪计划,节省自己的时间。It should be noted that the disclosed embodiment provides a method for automatic coordination of processes between multiple dishes in a recipe recommendation scenario. According to the recommended dishes selected by the user and the time and resource requirements of each process of each dish, a cooking plan that can be completed the fastest can be automatically given. For the user, after entering the recipe, he can get a cooking plan for the dish, saving his own time.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本公开各个实施例的方法。Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present disclosure, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, a disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present disclosure.

在本实施例中还提供了一种烹饪计划的确定装置,该装置被设置为实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的设备较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a cooking plan determination device is also provided, which is configured to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated for what has been described. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

图5是根据本公开实施例的烹饪计划的确定装置的结构框图,该装置包括:FIG5 is a structural block diagram of a device for determining a cooking plan according to an embodiment of the present disclosure, the device comprising:

第一确定模块52,被设置为获取多个菜谱,并确定所述多个菜谱中每个菜谱对应的菜谱信息,其中,所述每个菜谱对应一个菜品;A first determining module 52 is configured to obtain a plurality of recipes and determine recipe information corresponding to each of the plurality of recipes, wherein each of the recipes corresponds to a dish;

第二确定模块54,被设置为根据所述多个菜谱中每个菜谱对应的菜谱信息从多个烹饪计划中确定所述多个菜谱对应的目标烹饪计划,其中,所述目标烹饪计划为所述多个烹饪计划中消耗时间最少的烹饪计划。The second determining module 54 is configured to determine a target cooking plan corresponding to the multiple recipes from the multiple cooking plans according to the recipe information corresponding to each recipe in the multiple recipes, wherein the target cooking plan is the cooking plan that consumes the least time among the multiple cooking plans.

通过上述装置,获取多个菜谱,并确定多个菜谱中每个菜谱对应的菜谱信息,进而根据多个菜谱中每个菜谱对应的菜谱信息从多个烹饪计划中确定多个菜谱对应的目标烹饪计划,其中,目标烹饪计划为多个烹饪计划中消耗时间最少的烹饪计划。由于可以根据多个菜谱中每个菜谱对应的菜谱信息确定烹饪多个菜品所需时间最短的烹饪计划,进而解决了用户在烹饪多个菜品的过程中,容易浪费较多时间的问题,进而为用户节约了烹饪时间。Through the above device, multiple recipes are obtained, and the recipe information corresponding to each of the multiple recipes is determined, and then the target cooking plan corresponding to the multiple recipes is determined from the multiple cooking plans according to the recipe information corresponding to each of the multiple recipes, wherein the target cooking plan is the cooking plan that consumes the least time among the multiple cooking plans. Since the cooking plan that takes the shortest time to cook multiple dishes can be determined according to the recipe information corresponding to each of the multiple recipes, the problem that the user easily wastes a lot of time in the process of cooking multiple dishes is solved, thereby saving cooking time for the user.

在一个示例性的实施例中,第一确定模块52,还被设置为确定所述每个菜谱对应的多个烹饪流程、所述多个烹饪流程的顺序关系、所述多个烹饪流程中每个 烹饪流程所需的时长;确定所述每个烹饪流程所对应的多个烹饪资源以及所述每个烹饪流程使用对应的多个烹饪资源中每个烹饪资源所消耗的时长。In an exemplary embodiment, the first determination module 52 is further configured to determine the multiple cooking processes corresponding to each of the recipes, the sequential relationship of the multiple cooking processes, and the duration required for each of the multiple cooking processes; determine the multiple cooking resources corresponding to each of the cooking processes and the duration consumed by each of the multiple cooking resources corresponding to each of the cooking processes.

在一个示例性的实施例中,第二确定模块54,还被设置为确定目标决策变量、目标约束条件以及目标函数,并通过所述目标决策变量、所述目标约束条件以及所述目标函数建立线性规划模型;利用所述线性规划模型对所述多个菜谱中每个菜谱对应的菜谱信息进行线性规划,以多个烹饪计划中确定所述多个菜谱对应的目标烹饪计划。In an exemplary embodiment, the second determination module 54 is also configured to determine target decision variables, target constraints and objective functions, and establish a linear programming model through the target decision variables, the target constraints and the objective function; use the linear programming model to perform linear programming on the recipe information corresponding to each recipe in the multiple recipes, so as to determine the target cooking plans corresponding to the multiple recipes from the multiple cooking plans.

在一个示例性的实施例中,第二确定模块54,还被设置为确定每个菜谱对应的多个烹饪流程中每个烹饪流程的开始时刻与结束时刻;确定每个菜谱对应的多个烹饪流程中每个烹饪流程使用对应的多个烹饪资源中每个烹饪资源的开始时刻与结束时刻。In an exemplary embodiment, the second determination module 54 is also configured to determine the start time and end time of each cooking process in the multiple cooking processes corresponding to each recipe; and determine the start time and end time of each cooking resource in the multiple cooking resources used by each cooking process in the multiple cooking processes corresponding to each recipe.

在一个示例性的实施例中,第二确定模块54,还被设置为确定时间约束条件,其中,所述时间约束条件包括:每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的结束时刻与开始时刻的差值大于或等于所述每个烹饪流程使用对应的每个烹饪资源所消耗的时间;确定顺序约束条件,其中,所述顺序约束条件包括:每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的开始时刻小于或等于所述每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的结束时刻、每个菜谱对应的每个烹饪流程使用对应的第N-1个烹饪资源的结束时刻小于或等于所述每个菜谱对应的每个烹饪流程使用对应的第N个烹饪资源的结束时刻、每个菜谱对应的每个烹饪流程的开始时刻小于或等于每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的开始时刻、所述每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的结束时刻小于或等于所述每个菜谱对应的每个烹饪流程的结束时刻;所述N大于或等于2,所述N为正整数;确定资源约束条件,其中,所述资源约束条件包括:在多个烹饪资源中存在目标烹饪资源的数量为M个的情况下,不存在M个以上的烹饪流程在同一时间段使用所述目标烹饪资源。In an exemplary embodiment, the second determination module 54 is further configured to determine a time constraint, wherein the time constraint includes: the difference between the end time and the start time of each cooking process corresponding to each recipe using each corresponding cooking resource is greater than or equal to the time consumed by each cooking process using each corresponding cooking resource; determine a sequence constraint, wherein the sequence constraint includes: the start time of each cooking process corresponding to each recipe using each corresponding cooking resource is less than or equal to the end time of each cooking process corresponding to each recipe using each corresponding cooking resource, and the end time of each cooking process corresponding to each recipe using the corresponding N-1th cooking resource is less than or equal to the end time of each cooking process corresponding to each recipe using the corresponding N-1th cooking resource. is equal to the end time of the use of the corresponding Nth cooking resource by each cooking process corresponding to each recipe, the start time of each cooking process corresponding to each recipe is less than or equal to the start time of the use of each cooking resource by each cooking process corresponding to each recipe, and the end time of the use of each cooking resource by each cooking process corresponding to each recipe is less than or equal to the end time of each cooking process corresponding to each recipe; N is greater than or equal to 2, and N is a positive integer; determine the resource constraint condition, wherein the resource constraint condition includes: when there are M target cooking resources among multiple cooking resources, no more than M cooking processes use the target cooking resources in the same time period.

在一个示例性的实施例中,第二确定模块54,还被设置为确定所述每个菜谱对应的菜品的烹饪结束时刻,其中,所述每个菜谱对应的菜品的烹饪结束时刻在 线性规划的过程中为变量;将所述目标函数的函数关系式确定为求所述每个菜谱对应的菜品的烹饪结束时刻的最大值。In an exemplary embodiment, the second determination module 54 is further configured to determine the cooking completion time of the dish corresponding to each recipe, wherein the cooking completion time of the dish corresponding to each recipe is a variable in the linear programming process; and the functional relationship of the objective function is determined as the maximum value of the cooking completion time of the dish corresponding to each recipe.

在一个示例性的实施例中,所述每个菜谱对应的多个烹饪流程中每个烹饪流程的目标开始时刻与目标结束时刻、以及所述每个烹饪流程使用对应的多个烹饪资源中每个烹饪资源的目标开始时刻与目标结束时刻。In an exemplary embodiment, the target start time and the target end time of each cooking process in the multiple cooking processes corresponding to each recipe, and the target start time and the target end time of each cooking resource in the multiple cooking resources corresponding to each cooking process.

本公开的实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。An embodiment of the present disclosure further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

可选地,在本实施例中,上述存储介质可以被设置为存储被设置为执行以下步骤的计算机程序:Optionally, in this embodiment, the storage medium may be configured to store a computer program configured to perform the following steps:

S1,获取多个菜谱,并确定所述多个菜谱中每个菜谱对应的菜谱信息,其中,所述每个菜谱对应一个菜品;S1, obtaining a plurality of recipes, and determining recipe information corresponding to each of the plurality of recipes, wherein each of the recipes corresponds to a dish;

S2,根据所述多个菜谱中每个菜谱对应的菜谱信息从多个烹饪计划中确定所述多个菜谱对应的目标烹饪计划,其中,所述目标烹饪计划为所述多个烹饪计划中消耗时间最少的烹饪计划。S2, determining a target cooking plan corresponding to the multiple recipes from multiple cooking plans according to the recipe information corresponding to each recipe in the multiple recipes, wherein the target cooking plan is a cooking plan that consumes the least time among the multiple cooking plans.

根据本公开实施例的又一个方面,还提供了一种被设置为实施上述烹饪计划的确定方法的电子装置,如图6所示,该电子装置包括存储器602和处理器604,该存储器602中存储有计算机程序,该处理器604被设置为通过计算机程序执行上述任一项方法实施例中的步骤。According to another aspect of an embodiment of the present disclosure, an electronic device configured to implement the above-mentioned method for determining a cooking plan is also provided. As shown in FIG6 , the electronic device includes a memory 602 and a processor 604. A computer program is stored in the memory 602. The processor 604 is configured to execute the steps in any one of the above-mentioned method embodiments through the computer program.

可选地,在本实施例中,上述电子装置可以位于计算机网络的多个网络设备中的至少一个网络设备。Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.

可选地,本领域普通技术人员可以理解,图6所示的结构仅为示意,电子装置也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌上电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。图6其并不对上述电子装置的结构造成限定。例如,电子装置还可包括比图6中所示更多或者更少的组件(如网络接口等),或者具有与图6所示不同的配置。Alternatively, a person skilled in the art may understand that the structure shown in FIG. 6 is for illustration only, and the electronic device may also be a terminal device such as a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, and a mobile Internet device (Mobile Internet Devices, MID), PAD, etc. FIG. 6 does not limit the structure of the above-mentioned electronic device. For example, the electronic device may also include more or fewer components (such as a network interface, etc.) than those shown in FIG. 6, or have a configuration different from that shown in FIG. 6.

其中,存储器602可被设置为存储软件程序以及模块,如本公开实施例中的烹饪计划的确定方法和装置对应的程序指令/模块,处理器604通过运行存储在存储器602内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的烹饪计划的确定方法。存储器602可包括高速随机存储器,还可以包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器602可进一步包括相对于处理器604远程设置的存储器,这些远程存储器可以通过网络连接至终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。作为一种示例,上述存储器602可以如图6所示的包括但不限于包括上述烹饪计划的确定装置中的第一确定模块52、第二确定模块54。Among them, the memory 602 can be configured to store software programs and modules, such as program instructions/modules corresponding to the method and device for determining the cooking plan in the embodiment of the present disclosure, and the processor 604 executes various functional applications and data processing by running the software programs and modules stored in the memory 602, that is, to implement the above-mentioned method for determining the cooking plan. The memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 602 may further include a memory remotely arranged relative to the processor 604, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof. As an example, the above-mentioned memory 602 may include, as shown in FIG. 6, but is not limited to, the first determination module 52 and the second determination module 54 in the device for determining the cooking plan.

此外,还可以包括但不限于上述烹饪计划的确定装置中的其他模块单元,本示例中不再赘述。In addition, other module units in the above-mentioned cooking plan determination device may also be included but not limited to, which will not be described in detail in this example.

可选地,上述的传输装置606被设置为经由一个网络接收或者发送数据。上述的网络具体实例可包括有线网络及无线网络。在一个实例中,传输装置606包括一个网络适配器(Network Interface Controller,NIC),其可通过网线与其他网络设备与路由器相连从而可与互联网或局域网进行通讯。在一个实例中,传输装置606为射频(Radio Frequency,RF)模块,其被设置为通过无线方式与互联网进行通讯。Optionally, the transmission device 606 is configured to receive or send data via a network. Specific examples of the above-mentioned network may include a wired network and a wireless network. In one example, the transmission device 606 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 606 is a radio frequency (RF) module, which is configured to communicate with the Internet wirelessly.

此外,上述电子装置还包括:显示器608和连接总线610,所述连接总线610被设置为连接上述电子装置中的各个模块部件。In addition, the electronic device further comprises: a display 608 and a connection bus 610 , wherein the connection bus 610 is configured to connect various module components in the electronic device.

在一个示例性实施例中,上述计算机可读存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。In an exemplary embodiment, the above-mentioned computer-readable storage medium may include, but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.

本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

本公开的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present disclosure further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

S1,获取多个菜谱,并确定所述多个菜谱中每个菜谱对应的菜谱信息,其中,所述每个菜谱对应一个菜品;S1, obtaining a plurality of recipes, and determining recipe information corresponding to each of the plurality of recipes, wherein each of the recipes corresponds to a dish;

S2,根据所述多个菜谱中每个菜谱对应的菜谱信息从多个烹饪计划中确定所述多个菜谱对应的目标烹饪计划,其中,所述目标烹饪计划为所述多个烹饪计划中消耗时间最少的烹饪计划。S2, determining a target cooking plan corresponding to the multiple recipes from multiple cooking plans according to the recipe information corresponding to each recipe in the multiple recipes, wherein the target cooking plan is a cooking plan that consumes the least time among the multiple cooking plans.

在一个示例性实施例中,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。In an exemplary embodiment, the electronic device may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.

本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

显然,本领域的技术人员应该明白,上述的本公开的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本公开不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present disclosure can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the present disclosure is not limited to any specific combination of hardware and software.

以上所述仅是本公开的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本公开原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本公开的保护范围。The above is only a preferred embodiment of the present disclosure. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present disclosure. These improvements and modifications should also be regarded as the protection scope of the present disclosure.

Claims (16)

一种烹饪计划的确定方法,包括:A method for determining a cooking plan, comprising: 获取多个菜谱,并确定所述多个菜谱中每个菜谱对应的菜谱信息,其中,所述每个菜谱对应一个菜品;Acquire multiple recipes, and determine recipe information corresponding to each recipe in the multiple recipes, wherein each recipe corresponds to a dish; 根据所述多个菜谱中每个菜谱对应的菜谱信息从多个烹饪计划中确定所述多个菜谱对应的目标烹饪计划,其中,所述目标烹饪计划为所述多个烹饪计划中消耗时间最少的烹饪计划。A target cooking plan corresponding to the multiple recipes is determined from multiple cooking plans according to the recipe information corresponding to each recipe in the multiple recipes, wherein the target cooking plan is a cooking plan that consumes the least time among the multiple cooking plans. 根据权利要求1所述的方法,其中,确定所述多个菜谱中每个菜谱对应的菜谱信息,包括:The method according to claim 1, wherein determining the recipe information corresponding to each recipe in the plurality of recipes comprises: 确定所述每个菜谱对应的多个烹饪流程、所述多个烹饪流程的顺序关系、所述多个烹饪流程中每个烹饪流程所需的时长;Determine a plurality of cooking processes corresponding to each recipe, a sequence relationship of the plurality of cooking processes, and a duration required for each of the plurality of cooking processes; 确定所述每个烹饪流程所对应的多个烹饪资源以及所述每个烹饪流程使用对应的多个烹饪资源中每个烹饪资源所消耗的时长。A plurality of cooking resources corresponding to each cooking process and a duration consumed by each cooking process using each of the corresponding plurality of cooking resources are determined. 根据权利要求1所述的方法,其中,根据所述多个菜谱中每个菜谱对应的菜谱信息从多个烹饪计划中确定所述多个菜谱对应的目标烹饪计划,包括:The method according to claim 1, wherein determining the target cooking plan corresponding to the plurality of recipes from the plurality of cooking plans according to the recipe information corresponding to each of the plurality of recipes comprises: 确定目标决策变量、目标约束条件以及目标函数,并通过所述目标决策变量、所述目标约束条件以及所述目标函数建立线性规划模型;Determine target decision variables, target constraints and target functions, and establish a linear programming model through the target decision variables, the target constraints and the target functions; 利用所述线性规划模型对所述多个菜谱中每个菜谱对应的菜谱信息进行线性规划,以多个烹饪计划中确定所述多个菜谱对应的目标烹饪计划。The linear programming model is used to perform linear programming on recipe information corresponding to each recipe in the multiple recipes, so as to determine a target cooking plan corresponding to the multiple recipes from multiple cooking plans. 根据权利要求3所述的方法,其中,确定目标决策变量,包括:The method according to claim 3, wherein determining the target decision variable comprises: 确定每个菜谱对应的多个烹饪流程中每个烹饪流程的开始时刻与结束时刻;Determine the start time and the end time of each cooking process in the multiple cooking processes corresponding to each recipe; 确定每个菜谱对应的多个烹饪流程中每个烹饪流程使用对应的多个烹饪资源中每个烹饪资源的开始时刻与结束时刻。The start time and the end time of each cooking resource among the corresponding multiple cooking resources used by each cooking process among the multiple cooking processes corresponding to each recipe are determined. 根据权利要求3所述的方法,其中,确定目标约束条件,包括:The method according to claim 3, wherein determining the target constraint comprises: 确定时间约束条件,其中,所述时间约束条件包括:每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的结束时刻与开始时刻的差值大于或等于所述每个烹饪流程使用对应的每个烹饪资源所消耗的时间;Determine a time constraint condition, wherein the time constraint condition includes: the difference between the end time and the start time of each cooking process corresponding to each recipe using each corresponding cooking resource is greater than or equal to the time consumed by each cooking process using each corresponding cooking resource; 确定顺序约束条件,其中,所述顺序约束条件包括:每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的开始时刻小于或等于所述每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的结束时刻、每个菜谱对应的每个烹饪流程使用对应的第N-1个烹饪资源的结束时刻小于或等于所述每个菜谱对应的每个烹饪流程使用对应的第N个烹饪资源的结束时刻、每个菜谱对应的每个烹饪流程的开始时刻小于或等于每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的开始时刻、所述每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的结束时刻小于或等于所述每个菜谱对应的每个烹饪流程的结束时刻;所述N大于或等于2,所述N为正整数;Determine a sequence constraint condition, wherein the sequence constraint condition includes: the start time of each cooking resource corresponding to each cooking process corresponding to each recipe is less than or equal to the end time of each cooking resource corresponding to each cooking process corresponding to each recipe, the end time of each cooking process corresponding to each recipe using the corresponding N-1th cooking resource is less than or equal to the end time of each cooking process corresponding to each recipe using the corresponding Nth cooking resource, the start time of each cooking process corresponding to each recipe is less than or equal to the start time of each cooking resource corresponding to each cooking process corresponding to each recipe, and the end time of each cooking resource corresponding to each cooking process corresponding to each recipe is less than or equal to the end time of each cooking process corresponding to each recipe; N is greater than or equal to 2, and N is a positive integer; 确定资源约束条件,其中,所述资源约束条件包括:在多个烹饪资源中存在目标烹饪资源的数量为M个的情况下,不存在M个以上的烹饪流程在同一时间段使用所述目标烹饪资源。A resource constraint condition is determined, wherein the resource constraint condition includes: when there are M target cooking resources among the plurality of cooking resources, no more than M cooking processes use the target cooking resources in the same time period. 根据权利要求3所述的方法,其中,确定目标函数,包括:The method according to claim 3, wherein determining the objective function comprises: 确定所述每个菜谱对应的菜品的烹饪结束时刻,其中,所述每个菜谱对应的菜品的烹饪结束时刻在线性规划的过程中为变量;Determine the cooking end time of the dish corresponding to each recipe, wherein the cooking end time of the dish corresponding to each recipe is a variable in the linear programming process; 将所述目标函数的函数关系式确定为求所述每个菜谱对应的菜品的烹饪结束时刻的最大值。The functional relationship of the objective function is determined to obtain the maximum value of the cooking end time of the dish corresponding to each recipe. 根据权利要求1-6中任一项所述的方法,其中,所述目标烹饪计划,包括:The method according to any one of claims 1 to 6, wherein the target cooking plan comprises: 所述每个菜谱对应的多个烹饪流程中每个烹饪流程的目标开始时刻与目标结束时刻、以及所述每个烹饪流程使用对应的多个烹饪资源中每个烹饪资源的目标开始时刻与目标结束时刻。The target start time and the target end time of each cooking process among the multiple cooking processes corresponding to each recipe, and the target start time and the target end time of each cooking resource among the multiple cooking resources corresponding to each cooking process. 一种烹饪计划的确定装置,包括:A cooking plan determination device, comprising: 第一确定模块,被设置为获取多个菜谱,并确定所述多个菜谱中每个菜谱对应的菜谱信息,其中,所述每个菜谱对应一个菜品;A first determining module is configured to obtain a plurality of recipes and determine recipe information corresponding to each of the plurality of recipes, wherein each of the recipes corresponds to a dish; 第二确定模块,被设置为根据所述多个菜谱中每个菜谱对应的菜谱信息从多个烹饪计划中确定所述多个菜谱对应的目标烹饪计划,其中,所述目标烹饪计划为所述多个烹饪计划中消耗时间最少的烹饪计划。The second determination module is configured to determine a target cooking plan corresponding to the multiple recipes from the multiple cooking plans according to the recipe information corresponding to each recipe in the multiple recipes, wherein the target cooking plan is the cooking plan that consumes the least time among the multiple cooking plans. 根据权利要求8所述的装置,其中,所述第一确定模块,还被设置为确定所述每个菜谱对应的多个烹饪流程、所述多个烹饪流程的顺序关系、所述多个烹饪流程中每个烹饪流程所需的时长;确定所述每个烹饪流程所对应的多个烹饪资源以及所述每个烹饪流程使用对应的多个烹饪资源中每个烹饪资源所消耗的时长。The device according to claim 8, wherein the first determination module is further configured to determine the multiple cooking processes corresponding to each recipe, the sequential relationship of the multiple cooking processes, and the duration required for each of the multiple cooking processes; determine the multiple cooking resources corresponding to each cooking process and the duration consumed by each of the multiple cooking resources corresponding to each cooking process. 根据权利要求8所述的装置,其中,所述第二确定模块,还被设置为确定目标决策变量、目标约束条件以及目标函数,并通过所述目标决策变量、所述目标约束条件以及所述目标函数建立线性规划模型;利用所述线性规划模型对所述多个菜谱中每个菜谱对应的菜谱信息进行线性规划,以多个烹饪计划中确定所述多个菜谱对应的目标烹饪计划。According to the device according to claim 8, wherein the second determination module is further configured to determine target decision variables, target constraints and objective functions, and establish a linear programming model through the target decision variables, the target constraints and the objective function; use the linear programming model to perform linear programming on the recipe information corresponding to each recipe in the multiple recipes, so as to determine the target cooking plans corresponding to the multiple recipes from the multiple cooking plans. 根据权利要求10所述的装置,其中,所述第二确定模块,还被设置为确定每个菜谱对应的多个烹饪流程中每个烹饪流程的开始时刻与结束时刻;确定每个菜谱对应的多个烹饪流程中每个烹饪流程使用对应的多个烹饪资源中每个烹饪资源的开始时刻与结束时刻。According to the device of claim 10, wherein the second determination module is further configured to determine the start time and the end time of each cooking process among the multiple cooking processes corresponding to each recipe; determine the start time and the end time of each cooking resource among the corresponding multiple cooking resources used by each cooking process among the multiple cooking processes corresponding to each recipe. 根据权利要求10所述的装置,其中,所述第二确定模块,还被设置为确定时间约束条件,其中,所述时间约束条件包括:每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的结束时刻与开始时刻的差值大于或等于所述每个烹饪流程使用对应的每个烹饪资源所消耗的时间;确定顺序约束条件,其中,所述顺序约束条件包括:每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的开始时刻小于或等于所述每个菜谱对应的每个烹饪流程使用对应的每个烹 饪资源的结束时刻、每个菜谱对应的每个烹饪流程使用对应的第N-1个烹饪资源的结束时刻小于或等于所述每个菜谱对应的每个烹饪流程使用对应的第N个烹饪资源的结束时刻、每个菜谱对应的每个烹饪流程的开始时刻小于或等于每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的开始时刻、所述每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的结束时刻小于或等于所述每个菜谱对应的每个烹饪流程的结束时刻;所述N大于或等于2,所述N为正整数;确定资源约束条件,其中,所述资源约束条件包括:在多个烹饪资源中存在目标烹饪资源的数量为M个的情况下,不存在M个以上的烹饪流程在同一时间段使用所述目标烹饪资源。The device according to claim 10, wherein the second determining module is further configured to determine a time constraint condition, wherein the time constraint condition comprises: the difference between the end time and the start time of each cooking process corresponding to each recipe using each cooking resource is greater than or equal to the time consumed by each cooking process using each cooking resource; and determine a sequence constraint condition, wherein the sequence constraint condition comprises: the start time of each cooking process corresponding to each recipe using each cooking resource is less than or equal to the time consumed by each cooking process corresponding to each recipe using each cooking resource. The end time of the cooking resource, the end time of each cooking process corresponding to each recipe using the corresponding N-1th cooking resource is less than or equal to the end time of each cooking process corresponding to each recipe using the corresponding Nth cooking resource, the start time of each cooking process corresponding to each recipe is less than or equal to the start time of each cooking resource used by each cooking process corresponding to each recipe, and the end time of each cooking process corresponding to each recipe using the corresponding cooking resource is less than or equal to the end time of each cooking process corresponding to each recipe; N is greater than or equal to 2, and N is a positive integer; determine resource constraints, wherein the resource constraints include: when there are M target cooking resources among multiple cooking resources, no more than M cooking processes use the target cooking resources in the same time period. 根据权利要求10所述的装置,其中,所述第二确定模块,还被设置为确定所述每个菜谱对应的菜品的烹饪结束时刻,其中,所述每个菜谱对应的菜品的烹饪结束时刻在线性规划的过程中为变量;将所述目标函数的函数关系式确定为求所述每个菜谱对应的菜品的烹饪结束时刻的最大值。According to the device according to claim 10, wherein the second determination module is further configured to determine the cooking completion time of the dish corresponding to each recipe, wherein the cooking completion time of the dish corresponding to each recipe is a variable in the linear programming process; and the functional relationship of the objective function is determined as the maximum value of the cooking completion time of the dish corresponding to each recipe. 根据权利要求8-13中任一项所述的装置,其中,所述每个菜谱对应的多个烹饪流程中每个烹饪流程的目标开始时刻与目标结束时刻、以及所述每个烹饪流程使用对应的多个烹饪资源中每个烹饪资源的目标开始时刻与目标结束时刻。The device according to any one of claims 8-13, wherein the target start time and the target end time of each cooking process in the multiple cooking processes corresponding to each recipe, and the target start time and the target end time of each cooking resource in the corresponding multiple cooking resources used by each cooking process. 一种计算机可读的存储介质,所述计算机可读的存储介质包括存储的程序,其中,所述程序运行时执行权利要求1至7中任一项所述的方法。A computer-readable storage medium, comprising a stored program, wherein the program executes the method according to any one of claims 1 to 7 when executed. 一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为通过所述计算机程序执行权利要求1至7中任一项所述的方法。An electronic device comprises a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.
PCT/CN2022/141197 2022-09-29 2022-12-22 Cooking plan determination method and apparatus, storage medium, and electronic apparatus Ceased WO2024066089A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211203429.1A CN115631832B (en) 2022-09-29 2022-09-29 Method and device for determining cooking plan, storage medium and electronic device
CN202211203429.1 2022-09-29

Publications (1)

Publication Number Publication Date
WO2024066089A1 true WO2024066089A1 (en) 2024-04-04

Family

ID=84905111

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/141197 Ceased WO2024066089A1 (en) 2022-09-29 2022-12-22 Cooking plan determination method and apparatus, storage medium, and electronic apparatus

Country Status (2)

Country Link
CN (1) CN115631832B (en)
WO (1) WO2024066089A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115631832B (en) * 2022-09-29 2024-03-22 海尔优家智能科技(北京)有限公司 Method and device for determining cooking plan, storage medium and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160098465A1 (en) * 2014-10-07 2016-04-07 National Tsing Hua University Method, apparatus and computer program product for presenting cooking schedule
CN111045347A (en) * 2018-10-12 2020-04-21 宁波方太厨具有限公司 Multi-kitchen electric cooperative cooking method and system based on intelligent menu
CN113919722A (en) * 2021-10-19 2022-01-11 珠海格力电器股份有限公司 Dish cooking management method and device, electronic equipment and computer readable storage medium
WO2022124747A1 (en) * 2020-12-10 2022-06-16 삼성전자주식회사 Electronic apparatus and control method thereof
CN114747924A (en) * 2020-12-25 2022-07-15 珠海优特智厨科技有限公司 Cooking track planning method, storage medium and cooking equipment
CN115016296A (en) * 2021-03-03 2022-09-06 佛山市顺德区美的电热电器制造有限公司 Cooking method, electronic equipment, multi-cooking-appliance system and cooking control device
CN115631832A (en) * 2022-09-29 2023-01-20 海尔优家智能科技(北京)有限公司 Cooking plan determination method and device, storage medium and electronic device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111209482A (en) * 2020-01-10 2020-05-29 珠海格力电器股份有限公司 Menu pushing method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160098465A1 (en) * 2014-10-07 2016-04-07 National Tsing Hua University Method, apparatus and computer program product for presenting cooking schedule
CN111045347A (en) * 2018-10-12 2020-04-21 宁波方太厨具有限公司 Multi-kitchen electric cooperative cooking method and system based on intelligent menu
WO2022124747A1 (en) * 2020-12-10 2022-06-16 삼성전자주식회사 Electronic apparatus and control method thereof
CN114747924A (en) * 2020-12-25 2022-07-15 珠海优特智厨科技有限公司 Cooking track planning method, storage medium and cooking equipment
CN115016296A (en) * 2021-03-03 2022-09-06 佛山市顺德区美的电热电器制造有限公司 Cooking method, electronic equipment, multi-cooking-appliance system and cooking control device
CN113919722A (en) * 2021-10-19 2022-01-11 珠海格力电器股份有限公司 Dish cooking management method and device, electronic equipment and computer readable storage medium
CN115631832A (en) * 2022-09-29 2023-01-20 海尔优家智能科技(北京)有限公司 Cooking plan determination method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN115631832A (en) 2023-01-20
CN115631832B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
CN115167164B (en) Device scene determination method and device, storage medium and electronic device
WO2016173189A1 (en) Smart household control method, device and system
WO2024021407A1 (en) Knowledge graph updating method and apparatus, and storage medium and electronic apparatus
CN112698869B (en) Instruction determining method and device, storage medium and electronic device
CN115482820A (en) Device control method and apparatus, storage medium, and electronic apparatus
CN107909605A (en) Control method, device, storage medium and the server of cooking equipment
WO2024066089A1 (en) Cooking plan determination method and apparatus, storage medium, and electronic apparatus
CN112782996B (en) Equipment linkage method and device, storage medium and electronic device
CN104901724B (en) A kind of data transmission method
CN115356937A (en) Device control method, device, storage medium, and electronic apparatus
WO2024016506A1 (en) Gateway device control method and apparatus, and storage medium and electronic apparatus
CN116484083A (en) Method and device for displaying dish information, storage medium and electronic device
CN115314332B (en) Device theme setting method and device, storage medium and electronic device
WO2024021546A1 (en) Behavior preference table generation method and apparatus, storage medium and electronic apparatus
CN110856639B (en) Partitioned washing method and device for dish washing machine and computer readable storage medium
CN115309062B (en) Device control method, device, storage medium and electronic device
CN116107975A (en) Equipment control method and device, storage medium and electronic device
WO2024001196A1 (en) Household appliance control method and apparatus, storage medium, and electronic apparatus
CN114839887A (en) Equipment attribute configuration method and device, storage medium and electronic device
CN115167160A (en) Device control method and apparatus, device control system, and storage medium
CN116382107A (en) Method, device, storage medium and electronic device for acquiring equipment instructions
CN115993784A (en) Household equipment setting method, storage medium and electronic device
CN115174297A (en) Attribute information updating method and device, storage medium and electronic device
CN117667199A (en) Equipment control instruction processing method, storage medium and electronic device
CN113674740A (en) Response method and device of household appliance, storage medium and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22960684

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22960684

Country of ref document: EP

Kind code of ref document: A1