Abstract: Disclosed is a cooking device having a flexible sequence control for automatic cleaning of an oven cavity. A customizing aspect allows for the inputting of values for a combination of parameters of a cleaning system. These parameters may include degree of soiling, cleaning time, energy consumption, water consumption, cleaner consumption, rinse agent consumption, and/or overall cost of cleaning. The sets of parameters can be entered, saved and recalled, or deleted. While setting values of the parameters, any undefined parameter(s) are automatically changed accordingly to achieve an optimal result. Unreasonable or impossible combinations of parameters are blocked. The parameters may be visualized as user friendly touch-activated bars. Selection can be made from several optimizing options, such as cost optimization, time optimization, resource optimization, and ecological optimization that reduce the consumption of resources.