WO2024066089A1 - 烹饪计划的确定方法及装置、存储介质及电子装置 - Google Patents
烹饪计划的确定方法及装置、存储介质及电子装置 Download PDFInfo
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H20/00—ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance
- G16H20/60—ICT 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
本公开提供了一种烹饪计划的确定方法及装置、存储介质及电子装置,涉及智慧家庭技术领域,该烹饪计划的确定方法包括:获取多个菜谱,并确定所述多个菜谱中每个菜谱对应的菜谱信息,其中,所述每个菜谱对应一个菜品;根据所述多个菜谱中每个菜谱对应的菜谱信息从多个烹饪计划中确定所述多个菜谱对应的目标烹饪计划,其中,所述目标烹饪计划为所述多个烹饪计划中消耗时间最少的烹饪计划。
Description
本公开要求于2022年09月29日提交中国专利局、申请号为202211203429.1、发明名称“烹饪计划的确定方法及装置、存储介质及电子装置”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。
本公开涉及智慧家庭技术领域,具体而言,涉及一种烹饪计划的确定方法及装置、存储介质及电子装置。
随着人们对健康越来越关注,大部分家庭都选择在家自己做饭,但在智慧家居场景下,只考虑根据用户偏好向用户推荐菜品以及对应的菜谱,进而用户根据菜谱进行烹饪。而当需要做多个菜时,用户则需要协调每个菜各个工序的开始结束时间。但用户自己协调每个菜的烹饪流程对多个菜品进行烹饪所消耗的时候往往不是最短的,使得用户浪费了很多时间。
针对相关技术中,用户在烹饪多个菜品的过程中,容易浪费较多时间的问题,目前尚未提出有效的解决方案。
因此,有必要对相关技术予以改良以克服相关技术中的所述缺陷。
发明内容
根据本公开实施例的一方面,提供一种烹饪计划的确定方法,包括:获取多个菜谱,并确定所述多个菜谱中每个菜谱对应的菜谱信息,其中,所述每个菜谱对应一个菜品;根据所述多个菜谱中每个菜谱对应的菜谱信息从多个烹饪计划中确定所述多个菜谱对应的目标烹饪计划,其中,所述目标烹饪计划为所述多个烹饪计划中消耗时间最少的烹饪计划。
根据本公开实施例的另一方面,还提供了一种烹饪计划的确定装置,包括:第一确定模块,被设置为获取多个菜谱,并确定所述多个菜谱中每个菜谱对应的菜谱信息,其中,所述每个菜谱对应一个菜品;第二确定模块,被设置为根据所述多个菜谱中每个菜谱对应的菜谱信息从多个烹饪计划中确定所述多个菜谱对应的目标烹饪计划,其中,所述目标烹饪计划为所述多个烹饪计划中消耗时间最少的烹饪计划。
根据本公开实施例的又一方面,还提供了一种计算机可读的存储介质,该计算机可读的存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述烹饪计划的确定方法。
根据本公开实施例的又一方面,还提供了一种电子装置,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,上述处理器通过计算机程序执行上述烹饪计划的确定方法。
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是根据本公开实施例的一种烹饪计划的确定方法的硬件环境示意图;
图2是根据本公开实施例的烹饪计划的确定方法的流程图(一);
图3是根据本公开实施例的烹饪计划的确定方法的整体框架图;
图4是根据本公开实施例的烹饪计划的确定方法的流程图(二);
图5是根据本公开实施例的烹饪计划的确定装置的结构框图;
图6是根据本公开实施例的一种可选的电子装置的结构框图。
为了使本技术领域的人员更好地理解本公开方案,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分的实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本公开保护的范围。
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
根据本公开实施例的一个方面,提供了一种烹饪计划的确定方法。该烹饪计划的确定方法广泛应用于智慧家庭(Smart Home)、智能家居、智能家用设备生态、智慧住宅(IntelligenceHouse)生态等全屋智能数字化控制应用场景。可选地,在本实施例中,上述烹饪计划的确定方法可以应用于如图1所示的由终端设备102和服务器104所构成的硬件环境中。如图1所示,服务器104通过网络与终端设备102进行连接,可被设置为为终端或终端上安装的客户端提供服务(如应用服务等),可在服务器上或独立于服务器设置数据库,被设置为为服务器104提供数据存储服务,可在服务器上或独立于服务器配置云计算和/或边缘计算服务,被设置为为服务器104提供数据运算服务。
上述网络可以包括但不限于以下至少之一:有线网络,无线网络。上述有线网络可以包括但不限于以下至少之一:广域网,城域网,局域网,上述无线网络可以包括但不限于以下至少之一:WIFI(Wireless Fidelity,无线保真),蓝牙。终端设备102可以并不限定于为PC、手机、平板电脑、智能空调、智能烟机、智能冰箱、智能烤箱、智能炉灶、智能洗衣机、智能热水器、智能洗涤设备、智能洗碗机、智能投影设备、智能电视、智能晾衣架、智能窗帘、智能影音、智能插座、智能音响、智能音箱、智能新风设备、智能厨卫设备、智能卫浴设备、智能扫地机器人、智能擦窗机器人、智能拖地机器人、智能空气净化设备、智能蒸箱、智能微波炉、智能厨宝、智能净化器、智能饮水机、智能门锁等。
为了解决上述问题,在本实施例中提供了一种烹饪计划的确定方法,图2是根据本公开实施例的烹饪计划的确定方法的流程图(一),该流程包括如下步骤:
步骤S202,获取多个菜谱,并确定所述多个菜谱中每个菜谱对应的菜谱信息,其中,所述每个菜谱对应一个菜品;
在一个示例性的实施例中,确定所述多个菜谱中每个菜谱对应的菜谱信息,包括:确定所述每个菜谱对应的多个烹饪流程、所述多个烹饪流程的顺序关系、所述多个烹饪流程中每个烹饪流程所需的时长;确定所述每个烹饪流程所对应的多个烹饪资源以及所述每个烹饪流程使用对应的多个烹饪资源中每个烹饪资源所消耗的时长。
例如,有A菜品对应的A菜谱,则需要解析A菜谱,确定制作A菜品所需的烹饪流程,假设有X、Y两个烹饪流程,其顺序关系为先执行X流程(需要耗时2分钟),再执行Y流程(需要耗时3分钟)。此外,在执行X流程的时候,需要用到M、N两个烹饪资源,使用M烹饪资源的时间为2分钟,使用N烹饪资源的时间为1分钟,在执行Y流程的时候,需要用到M烹饪资源,需要使用3分钟。
需要说明的是,在确定了一个烹饪流程中使用每个烹饪资源所需的时间以后,就可以确定此烹饪流程的时间,具体的,可以为使用每个烹饪资源的时间的最大值。例如,在执行X流程的时候,需要用到M、N两个烹饪资源,使用M烹饪 资源的时间为2分钟,使用N烹饪资源的时间为1分钟,则执行X烹饪流程的所需的时间为max(1,2),即2分钟。
需要说明的是,烹饪流程包括但不限于:煮、抄、蒸、烤、备菜等等。烹饪资源包括一般资源以及特殊资源,其中,一般资源包括但不限于:锅、人、烤箱。特殊资源包括空间资源等等。
需要说明的是,在解析菜谱确定菜谱信息以后,可以对菜谱信息进行分类标识,例如:n:菜编号;p:烹饪流程编号;r:烹饪流程所需的烹饪资源列表。并确定Thres
{npr}(第n个菜第p个流程使用资源r需要的时间),n=1,...,N;p=1,...,P;r=1,...,R;以及确定Thres
{np}(第n个菜第p个流程需要的时间)。
需要说明的是,Thres
{np}=max{Thres
{npr},r=1,...,R.}。
步骤S204,根据所述多个菜谱中每个菜谱对应的菜谱信息从多个烹饪计划中确定所述多个菜谱对应的目标烹饪计划,其中,所述目标烹饪计划为所述多个烹饪计划中消耗时间最少的烹饪计划。
需要说明的是,所述目标烹饪计划,包括:每个菜谱对应的多个烹饪流程中每个烹饪流程的目标开始时刻与目标结束时刻、以及所述每个烹饪流程使用对应的多个烹饪资源中每个烹饪资源的目标开始时刻与目标结束时刻。
即假设有X、Y二个烹饪流程,则需要确定X、Y两个烹饪流程何时开始、何时结束、假设在执行X流程的时候,需要用到M、N两个烹饪资源,则需要确定使用M烹饪资源的目标开始时刻与目标结束时刻,使用N烹饪资源的目标开始时间与目标结束时间,同理,还需要确定Y烹饪流程使用对应的每个烹饪资源的目标开始时刻与目标结束时刻。
通过上述步骤,获取多个菜谱,并确定多个菜谱中每个菜谱对应的菜谱信息,进而根据多个菜谱中每个菜谱对应的菜谱信息从多个烹饪计划中确定多个菜谱对应的目标烹饪计划,其中,目标烹饪计划为多个烹饪计划中消耗时间最少的烹饪计划。由于可以根据多个菜谱中每个菜谱对应的菜谱信息确定烹饪多个菜品所需时间最短的烹饪计划,进而解决了用户在烹饪多个菜品的过程中,容易浪费较 多时间的问题,进而为用户节约了烹饪时间。
在一个示例性的实施例中,上述步骤S204可以通过以下步骤S11-S12实现:
步骤S11:确定目标决策变量、目标约束条件以及目标函数,并通过所述目标决策变量、所述目标约束条件以及所述目标函数建立线性规划模型;
在一个示例性的实施例中,确定目标决策变量包括:确定每个菜谱对应的多个烹饪流程中每个烹饪流程的开始时刻与结束时刻;确定每个菜谱对应的多个烹饪流程中每个烹饪流程使用对应的多个烹饪资源中每个烹饪资源的开始时刻与结束时刻。
也就是说,目标决策变量包括:每个菜谱中每个烹饪流程的开始时刻与结束时刻,每个烹饪流程使用对应的每个烹饪资源的开始时刻与结束时刻。
具体的,用数学符号表示,决策变量包括:S
{np}:第n个菜第p个流程开始时刻;E
{np}:第n个菜第p个流程结束时刻;S
{npr}:第n个菜第p个流程使用资源r开始时刻;E
{npr}:第n个菜第p个流程使用资源r结束时刻。
在一个示例性的实施例中,确定目标约束条件,包括:确定时间约束条件,确定顺序约束条件,确定资源约束条件。即目标约束条件包括:时间约束条件、顺序约束条件、资源约束条件。
需要说明的是,时间约束条件包括:每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的结束时刻与开始时刻的差值大于或等于所述每个烹饪流程使用对应的每个烹饪资源所消耗的时间;
示例性的是,时间约束条件用数学公式可以表示为E
{npr}–S
{npr}≥Thres
{npr}。
需要说明的是,顺序约束条件包括:每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的开始时刻小于或等于所述每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的结束时刻、每个菜谱对应的每个烹饪流程使用对应的第N-1个烹饪资源的结束时刻小于或等于所述每个菜谱对应的每个烹饪流程使用对应的第N个烹饪资源的结束时刻、每个菜谱对应的每个烹饪流程的开始时刻小于 或等于每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的开始时刻、所述每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的结束时刻小于或等于所述每个菜谱对应的每个烹饪流程的结束时刻;所述N大于或等于2,所述N为正整数;
示例性的,顺序约束条件用数学公式可以表示为:E
{npr}≥S
{npr}≥0;E
{npr}≤E
{n(p+1)r};S
{np}≤S
{npr}≤E
{npr}≤E
{np}。
需要说明的是,资源约束条件包括:在多个烹饪资源中存在目标烹饪资源的数量为M个的情况下,不存在M个以上的烹饪流程在同一时间段使用所述目标烹饪资源。
为了更好的理解,以烹饪资源为烤箱为例,假设厨房中烤箱只有一个,则不可能有两个以上菜品的烹饪流程在同一时刻使用烤箱。用数学符号表示为在烹饪资源r为M个的情况下,[S
{npr},E
{npr}]对所有np不能重复M次。
在一个示例性的实施例中,确定目标函数,包括:确定所述每个菜谱对应的菜品的烹饪结束时刻,其中,所述每个菜谱对应的菜品的烹饪结束时刻在线性规划的过程中为变量;将所述目标函数的函数关系式确定为求所述每个菜谱对应的菜品的烹饪结束时刻的最大值。
用数学符号进行表示,则目标函数T=max{E
{npr},{n=1,...,N.p=1,...,P.r=1,...,R.}}。
步骤S12:利用所述线性规划模型对所述多个菜谱中每个菜谱对应的菜谱信息进行线性规划,以多个烹饪计划中确定所述多个菜谱对应的目标烹饪计划。
需要说明的是,在进行线性规划的时候,通过在目标函数的函数值最小的情况下决策变量的值来确定目标烹饪计划。
为了更好的理解,图3是根据本公开实施例的烹饪计划的确定方法的整体框架图,即通过构建线性规划模型,进而通过多个菜谱中每个菜谱对应的菜谱信息得到目标烹饪计划。
显然,上述所描述的实施例仅仅是本公开一部分的实施例,而不是全部的实施例。为了更好的理解上述方法,以下结合实施例对上述过程进行说明,但不用 于限定本公开实施例的技术方案,具体地:
在一个可选的实施例中,图4是根据本公开实施例的烹饪计划的确定方法的流程图(二),具体的:
S1:获取菜谱;
例如:获取A菜谱,B菜谱,C菜谱。
S2:解析菜谱流程;具体的包括确定菜谱的菜谱信息。
S3:优化求解;具体的,根据菜谱的菜谱信息进行线性规划,确定烹饪计划。
S4:输出;具体的,输出烹饪计划。
需要说明的是,为了更好的进行线性规划,在获取到菜谱信息以后,约定:n:菜品编号;p:烹饪流程编号;r:烹饪资源列表,烹饪资源列表包括多个一般资源:比如烤箱(r1),人(r2),锅(r3)等;特殊资源:r0表示空间资源,和其它资源不同,它不用考虑约束,但需要时间来完成。
在进行线性规划的时候,希望最小化烹饪总时间,其中的约束条件包括:
时间约束:每个菜的每个流程时间大于某个给定值(输入);
顺序约束:每个菜的流程需要按照顺序来进行;
资源约束:除特殊资源,其它资源同一时间只能用一次。
在进行线性规划的时候,其输入包括:Thres
{npr}和做菜时间上限,其中,Thres
{npr}表示第n个菜品第p个烹饪流程使用烹饪资源r需要的时间,n=1,...,N;p=1,...,P;r=1,...,R不参与的置0。
需要说明的是,Thres
{np}=max{Thres
{npr},r=1,...,R.},不需要的资源Thres
{npr}=0,其中,Thres
{np}表示第n个菜品第p个烹饪流程需要的时间。
需要说明的是,在进行优化求解的时候,可以转化成线性规划问题,然后输 入Python ortools求解器求解即可,其中,
1、目标:
min T,T=max{E
{npr},{n=1,...,N.p=1,...,P.r=1,...,R.}};
需要说明的是,给定一列数a
1,a
2,...,a
n求最大,等价于min~T,s.t。
2、决策变量(后续需要求解出来的变量)为:S
{np}:第n个菜第p个流程开始时间;E
{np}:第n个菜第p个流程结束时间;S
{npr}:第n个菜第p个流程使用资源r开始时间;E
{npr}:第n个菜第p个流程使用资源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不能重复。
需要说明的是,区间[a,b][c,d]不重复条件:d-a≤0或者b-c≤0,数学表达如下:d-a≤0+uM;b-c≤0+(1-u)*Ms;u∈{0,1}。
需要说明的是,对r∈{r
1,r
2,...,r
R},给定r资源,则对于r下面任何两个流程,需要加入上述顺序约束条件(因为同一个菜下流程顺序约束可以保证不重复,只需要考虑不同菜之间的重复性条件)。
4、结果输出
利用ORTOOLS整数规划优化器cp_model求解,即可得出每道菜每个流程的开始、结束时刻,每个流程使用每个烹饪资源的开始、结束时刻。
需要说明的是,本公开实施例给出了菜谱推荐场景下多道菜之间的流程自动协同方法,根据用户选取的推荐菜品,以及每道菜每个流程下的时间、资源要求,就能自动化的给出最快完成的烹饪计划,对用户来讲,可以输入菜谱后,就得到做菜的烹饪计划,节省自己的时间。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本公开各个实施例的方法。
在本实施例中还提供了一种烹饪计划的确定装置,该装置被设置为实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的设备较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图5是根据本公开实施例的烹饪计划的确定装置的结构框图,该装置包括:
第一确定模块52,被设置为获取多个菜谱,并确定所述多个菜谱中每个菜谱对应的菜谱信息,其中,所述每个菜谱对应一个菜品;
第二确定模块54,被设置为根据所述多个菜谱中每个菜谱对应的菜谱信息从多个烹饪计划中确定所述多个菜谱对应的目标烹饪计划,其中,所述目标烹饪计划为所述多个烹饪计划中消耗时间最少的烹饪计划。
通过上述装置,获取多个菜谱,并确定多个菜谱中每个菜谱对应的菜谱信息,进而根据多个菜谱中每个菜谱对应的菜谱信息从多个烹饪计划中确定多个菜谱对应的目标烹饪计划,其中,目标烹饪计划为多个烹饪计划中消耗时间最少的烹饪计划。由于可以根据多个菜谱中每个菜谱对应的菜谱信息确定烹饪多个菜品所需时间最短的烹饪计划,进而解决了用户在烹饪多个菜品的过程中,容易浪费较多时间的问题,进而为用户节约了烹饪时间。
在一个示例性的实施例中,第一确定模块52,还被设置为确定所述每个菜谱对应的多个烹饪流程、所述多个烹饪流程的顺序关系、所述多个烹饪流程中每个 烹饪流程所需的时长;确定所述每个烹饪流程所对应的多个烹饪资源以及所述每个烹饪流程使用对应的多个烹饪资源中每个烹饪资源所消耗的时长。
在一个示例性的实施例中,第二确定模块54,还被设置为确定目标决策变量、目标约束条件以及目标函数,并通过所述目标决策变量、所述目标约束条件以及所述目标函数建立线性规划模型;利用所述线性规划模型对所述多个菜谱中每个菜谱对应的菜谱信息进行线性规划,以多个烹饪计划中确定所述多个菜谱对应的目标烹饪计划。
在一个示例性的实施例中,第二确定模块54,还被设置为确定每个菜谱对应的多个烹饪流程中每个烹饪流程的开始时刻与结束时刻;确定每个菜谱对应的多个烹饪流程中每个烹饪流程使用对应的多个烹饪资源中每个烹饪资源的开始时刻与结束时刻。
在一个示例性的实施例中,第二确定模块54,还被设置为确定时间约束条件,其中,所述时间约束条件包括:每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的结束时刻与开始时刻的差值大于或等于所述每个烹饪流程使用对应的每个烹饪资源所消耗的时间;确定顺序约束条件,其中,所述顺序约束条件包括:每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的开始时刻小于或等于所述每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的结束时刻、每个菜谱对应的每个烹饪流程使用对应的第N-1个烹饪资源的结束时刻小于或等于所述每个菜谱对应的每个烹饪流程使用对应的第N个烹饪资源的结束时刻、每个菜谱对应的每个烹饪流程的开始时刻小于或等于每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的开始时刻、所述每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的结束时刻小于或等于所述每个菜谱对应的每个烹饪流程的结束时刻;所述N大于或等于2,所述N为正整数;确定资源约束条件,其中,所述资源约束条件包括:在多个烹饪资源中存在目标烹饪资源的数量为M个的情况下,不存在M个以上的烹饪流程在同一时间段使用所述目标烹饪资源。
在一个示例性的实施例中,第二确定模块54,还被设置为确定所述每个菜谱对应的菜品的烹饪结束时刻,其中,所述每个菜谱对应的菜品的烹饪结束时刻在 线性规划的过程中为变量;将所述目标函数的函数关系式确定为求所述每个菜谱对应的菜品的烹饪结束时刻的最大值。
在一个示例性的实施例中,所述每个菜谱对应的多个烹饪流程中每个烹饪流程的目标开始时刻与目标结束时刻、以及所述每个烹饪流程使用对应的多个烹饪资源中每个烹饪资源的目标开始时刻与目标结束时刻。
本公开的实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。
可选地,在本实施例中,上述存储介质可以被设置为存储被设置为执行以下步骤的计算机程序:
S1,获取多个菜谱,并确定所述多个菜谱中每个菜谱对应的菜谱信息,其中,所述每个菜谱对应一个菜品;
S2,根据所述多个菜谱中每个菜谱对应的菜谱信息从多个烹饪计划中确定所述多个菜谱对应的目标烹饪计划,其中,所述目标烹饪计划为所述多个烹饪计划中消耗时间最少的烹饪计划。
根据本公开实施例的又一个方面,还提供了一种被设置为实施上述烹饪计划的确定方法的电子装置,如图6所示,该电子装置包括存储器602和处理器604,该存储器602中存储有计算机程序,该处理器604被设置为通过计算机程序执行上述任一项方法实施例中的步骤。
可选地,在本实施例中,上述电子装置可以位于计算机网络的多个网络设备中的至少一个网络设备。
可选地,本领域普通技术人员可以理解,图6所示的结构仅为示意,电子装置也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌上电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。图6其并不对上述电子装置的结构造成限定。例如,电子装置还可包括比图6中所示更多或者更少的组件(如网络接口等),或者具有与图6所示不同的配置。
其中,存储器602可被设置为存储软件程序以及模块,如本公开实施例中的烹饪计划的确定方法和装置对应的程序指令/模块,处理器604通过运行存储在存储器602内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的烹饪计划的确定方法。存储器602可包括高速随机存储器,还可以包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器602可进一步包括相对于处理器604远程设置的存储器,这些远程存储器可以通过网络连接至终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。作为一种示例,上述存储器602可以如图6所示的包括但不限于包括上述烹饪计划的确定装置中的第一确定模块52、第二确定模块54。
此外,还可以包括但不限于上述烹饪计划的确定装置中的其他模块单元,本示例中不再赘述。
可选地,上述的传输装置606被设置为经由一个网络接收或者发送数据。上述的网络具体实例可包括有线网络及无线网络。在一个实例中,传输装置606包括一个网络适配器(Network Interface Controller,NIC),其可通过网线与其他网络设备与路由器相连从而可与互联网或局域网进行通讯。在一个实例中,传输装置606为射频(Radio Frequency,RF)模块,其被设置为通过无线方式与互联网进行通讯。
此外,上述电子装置还包括:显示器608和连接总线610,所述连接总线610被设置为连接上述电子装置中的各个模块部件。
在一个示例性实施例中,上述计算机可读存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。
本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。
本公开的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:
S1,获取多个菜谱,并确定所述多个菜谱中每个菜谱对应的菜谱信息,其中,所述每个菜谱对应一个菜品;
S2,根据所述多个菜谱中每个菜谱对应的菜谱信息从多个烹饪计划中确定所述多个菜谱对应的目标烹饪计划,其中,所述目标烹饪计划为所述多个烹饪计划中消耗时间最少的烹饪计划。
在一个示例性实施例中,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。
本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。
显然,本领域的技术人员应该明白,上述的本公开的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本公开不限制于任何特定的硬件和软件结合。
以上所述仅是本公开的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本公开原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本公开的保护范围。
Claims (16)
- 一种烹饪计划的确定方法,包括:获取多个菜谱,并确定所述多个菜谱中每个菜谱对应的菜谱信息,其中,所述每个菜谱对应一个菜品;根据所述多个菜谱中每个菜谱对应的菜谱信息从多个烹饪计划中确定所述多个菜谱对应的目标烹饪计划,其中,所述目标烹饪计划为所述多个烹饪计划中消耗时间最少的烹饪计划。
- 根据权利要求1所述的方法,其中,确定所述多个菜谱中每个菜谱对应的菜谱信息,包括:确定所述每个菜谱对应的多个烹饪流程、所述多个烹饪流程的顺序关系、所述多个烹饪流程中每个烹饪流程所需的时长;确定所述每个烹饪流程所对应的多个烹饪资源以及所述每个烹饪流程使用对应的多个烹饪资源中每个烹饪资源所消耗的时长。
- 根据权利要求1所述的方法,其中,根据所述多个菜谱中每个菜谱对应的菜谱信息从多个烹饪计划中确定所述多个菜谱对应的目标烹饪计划,包括:确定目标决策变量、目标约束条件以及目标函数,并通过所述目标决策变量、所述目标约束条件以及所述目标函数建立线性规划模型;利用所述线性规划模型对所述多个菜谱中每个菜谱对应的菜谱信息进行线性规划,以多个烹饪计划中确定所述多个菜谱对应的目标烹饪计划。
- 根据权利要求3所述的方法,其中,确定目标决策变量,包括:确定每个菜谱对应的多个烹饪流程中每个烹饪流程的开始时刻与结束时刻;确定每个菜谱对应的多个烹饪流程中每个烹饪流程使用对应的多个烹饪资源中每个烹饪资源的开始时刻与结束时刻。
- 根据权利要求3所述的方法,其中,确定目标约束条件,包括:确定时间约束条件,其中,所述时间约束条件包括:每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的结束时刻与开始时刻的差值大于或等于所述每个烹饪流程使用对应的每个烹饪资源所消耗的时间;确定顺序约束条件,其中,所述顺序约束条件包括:每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的开始时刻小于或等于所述每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的结束时刻、每个菜谱对应的每个烹饪流程使用对应的第N-1个烹饪资源的结束时刻小于或等于所述每个菜谱对应的每个烹饪流程使用对应的第N个烹饪资源的结束时刻、每个菜谱对应的每个烹饪流程的开始时刻小于或等于每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的开始时刻、所述每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的结束时刻小于或等于所述每个菜谱对应的每个烹饪流程的结束时刻;所述N大于或等于2,所述N为正整数;确定资源约束条件,其中,所述资源约束条件包括:在多个烹饪资源中存在目标烹饪资源的数量为M个的情况下,不存在M个以上的烹饪流程在同一时间段使用所述目标烹饪资源。
- 根据权利要求3所述的方法,其中,确定目标函数,包括:确定所述每个菜谱对应的菜品的烹饪结束时刻,其中,所述每个菜谱对应的菜品的烹饪结束时刻在线性规划的过程中为变量;将所述目标函数的函数关系式确定为求所述每个菜谱对应的菜品的烹饪结束时刻的最大值。
- 根据权利要求1-6中任一项所述的方法,其中,所述目标烹饪计划,包括:所述每个菜谱对应的多个烹饪流程中每个烹饪流程的目标开始时刻与目标结束时刻、以及所述每个烹饪流程使用对应的多个烹饪资源中每个烹饪资源的目标开始时刻与目标结束时刻。
- 一种烹饪计划的确定装置,包括:第一确定模块,被设置为获取多个菜谱,并确定所述多个菜谱中每个菜谱对应的菜谱信息,其中,所述每个菜谱对应一个菜品;第二确定模块,被设置为根据所述多个菜谱中每个菜谱对应的菜谱信息从多个烹饪计划中确定所述多个菜谱对应的目标烹饪计划,其中,所述目标烹饪计划为所述多个烹饪计划中消耗时间最少的烹饪计划。
- 根据权利要求8所述的装置,其中,所述第一确定模块,还被设置为确定所述每个菜谱对应的多个烹饪流程、所述多个烹饪流程的顺序关系、所述多个烹饪流程中每个烹饪流程所需的时长;确定所述每个烹饪流程所对应的多个烹饪资源以及所述每个烹饪流程使用对应的多个烹饪资源中每个烹饪资源所消耗的时长。
- 根据权利要求8所述的装置,其中,所述第二确定模块,还被设置为确定目标决策变量、目标约束条件以及目标函数,并通过所述目标决策变量、所述目标约束条件以及所述目标函数建立线性规划模型;利用所述线性规划模型对所述多个菜谱中每个菜谱对应的菜谱信息进行线性规划,以多个烹饪计划中确定所述多个菜谱对应的目标烹饪计划。
- 根据权利要求10所述的装置,其中,所述第二确定模块,还被设置为确定每个菜谱对应的多个烹饪流程中每个烹饪流程的开始时刻与结束时刻;确定每个菜谱对应的多个烹饪流程中每个烹饪流程使用对应的多个烹饪资源中每个烹饪资源的开始时刻与结束时刻。
- 根据权利要求10所述的装置,其中,所述第二确定模块,还被设置为确定时间约束条件,其中,所述时间约束条件包括:每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的结束时刻与开始时刻的差值大于或等于所述每个烹饪流程使用对应的每个烹饪资源所消耗的时间;确定顺序约束条件,其中,所述顺序约束条件包括:每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的开始时刻小于或等于所述每个菜谱对应的每个烹饪流程使用对应的每个烹 饪资源的结束时刻、每个菜谱对应的每个烹饪流程使用对应的第N-1个烹饪资源的结束时刻小于或等于所述每个菜谱对应的每个烹饪流程使用对应的第N个烹饪资源的结束时刻、每个菜谱对应的每个烹饪流程的开始时刻小于或等于每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的开始时刻、所述每个菜谱对应的每个烹饪流程使用对应的每个烹饪资源的结束时刻小于或等于所述每个菜谱对应的每个烹饪流程的结束时刻;所述N大于或等于2,所述N为正整数;确定资源约束条件,其中,所述资源约束条件包括:在多个烹饪资源中存在目标烹饪资源的数量为M个的情况下,不存在M个以上的烹饪流程在同一时间段使用所述目标烹饪资源。
- 根据权利要求10所述的装置,其中,所述第二确定模块,还被设置为确定所述每个菜谱对应的菜品的烹饪结束时刻,其中,所述每个菜谱对应的菜品的烹饪结束时刻在线性规划的过程中为变量;将所述目标函数的函数关系式确定为求所述每个菜谱对应的菜品的烹饪结束时刻的最大值。
- 根据权利要求8-13中任一项所述的装置,其中,所述每个菜谱对应的多个烹饪流程中每个烹饪流程的目标开始时刻与目标结束时刻、以及所述每个烹饪流程使用对应的多个烹饪资源中每个烹饪资源的目标开始时刻与目标结束时刻。
- 一种计算机可读的存储介质,所述计算机可读的存储介质包括存储的程序,其中,所述程序运行时执行权利要求1至7中任一项所述的方法。
- 一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为通过所述计算机程序执行权利要求1至7中任一项所述的方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211203429.1A CN115631832B (zh) | 2022-09-29 | 2022-09-29 | 烹饪计划的确定方法及装置、存储介质及电子装置 |
| CN202211203429.1 | 2022-09-29 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2024066089A1 true WO2024066089A1 (zh) | 2024-04-04 |
Family
ID=84905111
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2022/141197 Ceased WO2024066089A1 (zh) | 2022-09-29 | 2022-12-22 | 烹饪计划的确定方法及装置、存储介质及电子装置 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN115631832B (zh) |
| WO (1) | WO2024066089A1 (zh) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115631832B (zh) * | 2022-09-29 | 2024-03-22 | 海尔优家智能科技(北京)有限公司 | 烹饪计划的确定方法及装置、存储介质及电子装置 |
Citations (7)
| 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 (zh) * | 2018-10-12 | 2020-04-21 | 宁波方太厨具有限公司 | 基于智能菜谱的多厨电协同烹饪方法及系统 |
| CN113919722A (zh) * | 2021-10-19 | 2022-01-11 | 珠海格力电器股份有限公司 | 做菜管理方法、装置、电子设备及计算机可读存储介质 |
| WO2022124747A1 (ko) * | 2020-12-10 | 2022-06-16 | 삼성전자주식회사 | 전자 장치 및 그 제어 방법 |
| CN114747924A (zh) * | 2020-12-25 | 2022-07-15 | 珠海优特智厨科技有限公司 | 烹饪轨迹的规划方法、存储介质及烹饪设备 |
| CN115016296A (zh) * | 2021-03-03 | 2022-09-06 | 佛山市顺德区美的电热电器制造有限公司 | 烹饪方法、电子设备、多烹饪电器系统、烹饪控制装置 |
| CN115631832A (zh) * | 2022-09-29 | 2023-01-20 | 海尔优家智能科技(北京)有限公司 | 烹饪计划的确定方法及装置、存储介质及电子装置 |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111209482A (zh) * | 2020-01-10 | 2020-05-29 | 珠海格力电器股份有限公司 | 一种菜谱的推送方法和装置 |
-
2022
- 2022-09-29 CN CN202211203429.1A patent/CN115631832B/zh active Active
- 2022-12-22 WO PCT/CN2022/141197 patent/WO2024066089A1/zh not_active Ceased
Patent Citations (7)
| 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 (zh) * | 2018-10-12 | 2020-04-21 | 宁波方太厨具有限公司 | 基于智能菜谱的多厨电协同烹饪方法及系统 |
| WO2022124747A1 (ko) * | 2020-12-10 | 2022-06-16 | 삼성전자주식회사 | 전자 장치 및 그 제어 방법 |
| CN114747924A (zh) * | 2020-12-25 | 2022-07-15 | 珠海优特智厨科技有限公司 | 烹饪轨迹的规划方法、存储介质及烹饪设备 |
| CN115016296A (zh) * | 2021-03-03 | 2022-09-06 | 佛山市顺德区美的电热电器制造有限公司 | 烹饪方法、电子设备、多烹饪电器系统、烹饪控制装置 |
| CN113919722A (zh) * | 2021-10-19 | 2022-01-11 | 珠海格力电器股份有限公司 | 做菜管理方法、装置、电子设备及计算机可读存储介质 |
| CN115631832A (zh) * | 2022-09-29 | 2023-01-20 | 海尔优家智能科技(北京)有限公司 | 烹饪计划的确定方法及装置、存储介质及电子装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115631832B (zh) | 2024-03-22 |
| CN115631832A (zh) | 2023-01-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN115167164B (zh) | 设备场景的确定方法和装置、存储介质及电子装置 | |
| WO2016173189A1 (zh) | 智能家居控制方法、装置及系统 | |
| CN112698869B (zh) | 指令确定方法及装置、存储介质、电子装置 | |
| CN115358395A (zh) | 知识图谱的更新方法和装置、存储介质及电子装置 | |
| CN111103816A (zh) | 生成菜谱的方法、装置、电子设备及存储介质 | |
| CN115356937A (zh) | 设备控制方法、装置和存储介质及电子装置 | |
| WO2024016506A1 (zh) | 网关设备的控制方法、装置、存储介质及电子装置 | |
| CN104901724B (zh) | 一种数据传输方法 | |
| WO2024066089A1 (zh) | 烹饪计划的确定方法及装置、存储介质及电子装置 | |
| CN112782996B (zh) | 设备联动方法及装置、存储介质、电子装置 | |
| CN115001885A (zh) | 设备控制方法及装置、存储介质及电子装置 | |
| CN117573320A (zh) | 任务节点的执行方法、装置、存储介质及电子装置 | |
| CN110856639A (zh) | 洗碗机分区洗涤方法、装置及计算机可读存储介质 | |
| CN115314332B (zh) | 设备主题的设置方法及装置、存储介质及电子装置 | |
| WO2024021546A1 (zh) | 行为偏好表的生成方法和装置、存储介质及电子装置 | |
| CN115309062B (zh) | 设备的控制方法、装置、存储介质及电子装置 | |
| CN116107975A (zh) | 设备的控制方法和装置、存储介质及电子装置 | |
| CN115481317A (zh) | 一种工作台场景的推荐方法、存储介质及电子装置 | |
| CN115167160A (zh) | 设备控制方法和装置、设备控制系统及存储介质 | |
| CN116382107A (zh) | 设备指令的获取方法、装置、存储介质及电子装置 | |
| CN115993784A (zh) | 家居设备设置方法、存储介质及电子装置 | |
| CN116564472A (zh) | 菜谱确认方法和装置、存储介质及电子装置 | |
| CN115174297A (zh) | 属性信息的更新方法和装置、存储介质及电子装置 | |
| CN116382111A (zh) | 设备控制方法和装置、存储介质及电子装置 | |
| CN113674740A (zh) | 家电设备的响应方法和装置、存储介质及电子装置 |
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 |