AI, robotics and crypto, in context Deutsch

AI

AI Optimization Tools Only Know the Rules You Write Down

Scheduling, routing and stock planning tools promise better plans in seconds. They deliver only when goals and constraints are spelled out, including the unwritten rules planners carry in their heads.

AI Optimization Tools Only Know the Rules You Write Down

A regional delivery company introduces a new route planning tool. On the first morning it produces routes shorter than anything the dispatchers have managed. By noon the complaints arrive. One driver has been sent into a narrow old town street that the company's trucks cannot enter. Another has two stops at a customer who only accepts goods before ten. A third has a route that leaves no time for the legally required break.

The tool did not fail at mathematics. It found an excellent answer to the question it was given. The question was simply incomplete. That is the central lesson of AI optimization tools: they are powerful at searching through possible plans and blind to every rule nobody told them about.

This article looks at what these tools do, where they pay off and why writing down objectives and constraints matters more than the choice of software.

The label AI optimization covers many products, but most of them combine two parts. The first part predicts: how many customers will call on Monday, how long a drive will take at four in the afternoon, how much of an item will sell next month. Machine learning trained on historical data is often used here.

The second part decides. Given the forecasts, it searches for the best plan among a vast number of possibilities. Which nurse works which shift, in which order a machine produces twenty products, how much stock each warehouse should hold. This search uses mathematical optimization methods that have existed for decades and have become faster and easier to use. The combination is what vendors sell as AI optimization.

Knowing the two parts helps when things go wrong. A bad plan can come from a wrong forecast, a wrong objective or missing rules. Each needs a different fix.

The objective is a business decision

An optimizer needs a definition of better. Lower cost, fewer late deliveries, less overtime, higher machine use, fewer empty shelves. These goals pull against each other. Cutting cost usually means less spare capacity, which raises the risk of being late when something goes wrong.

Tools handle this by combining goals with weights or by turning some goals into limits. Either way, someone has to decide how much a late delivery is worth compared with an hour of overtime. When nobody makes that decision consciously, the default settings of the software make it instead. Planners and managers should agree on the weights, write them down and check whether the resulting plans match what they actually want.

Fairness belongs in this conversation too. A staffing plan that is cheapest overall may give the same people every weekend shift. A plan that is technically optimal but feels unfair will be resisted, worked around or quietly ignored.

An optimizer will exploit every rule you forgot to tell it about.

The constraints nobody wrote down

Constraints are the rules a plan must respect. Some are hard, such as legal working time limits or the capacity of a machine. Others are soft, such as a preference for keeping the same driver on the same route. Hard constraints are usually captured because they are obvious. The trouble lies with the rules that experienced staff apply without thinking.

  • Physical limits: vehicles that cannot enter certain streets, machines that need cleaning between certain products.
  • Customer habits: delivery windows, preferred contacts, sites that close early on Fridays.
  • Skills and permissions: which employees may operate a forklift or handle hazardous goods.
  • Informal agreements: a supplier who receives orders on Tuesdays, a team that never works two night shifts in a row.
  • Stability needs: plans that should not change at short notice because people have arranged their lives around them.

Collecting these rules takes time with the people who do the planning today. Asking them why they changed a computer-generated plan often reveals more than asking them to list their rules from memory.

Where these tools pay off

Optimization tools do best on problems with many interacting decisions that repeat often: daily vehicle routes, weekly shift plans, production sequences, inventory across many locations, energy use in large buildings. Here a computer can explore far more options than a person, and small improvements add up across thousands of decisions.

They help less when the problem is small enough for a planner to solve well by hand, when data is missing or unreliable, or when conditions change so often that any plan is outdated within the hour. In those cases, better information or simpler rules often bring more than a sophisticated solver.

Costs deserve a sober look as well. Licenses are only part of the bill. Data preparation, integration with existing systems and the time planners spend teaching and checking the tool usually make up a large share of the effort.

Introducing a tool without losing the planners

The safest introduction runs the tool in parallel at first. For several weeks it produces plans that are compared with the human ones but not put into action. Differences are discussed. Sometimes the tool found a genuinely better option, and sometimes it missed a rule. Each missed rule is added before the next round.

Once the tool goes live, planners should be able to see why a plan looks the way it does and to override it. Every override is valuable information. If the same kind of change happens again and again, it usually points to a missing constraint or a badly chosen weight. Tracking overrides, and reducing them by fixing the model rather than by restricting the planners, keeps the tool honest.

The goal is not a plan nobody touches. It is a plan good enough that people spend their time on the exceptions that really need judgment, while the routine combinations are left to the machine.

Questions and answers

What is the difference between prediction and optimization?

Prediction estimates what will happen, such as demand next week or travel time at a certain hour. Optimization decides what to do given those estimates, such as which shifts to schedule or which routes to drive. Most AI optimization tools combine both steps.

Do we need a lot of data to use an optimization tool?

The forecasting part needs reasonable historical data. The optimization part needs accurate current data, such as capacities, orders and staff availability, plus a complete set of rules. Missing rules usually cause more trouble than a short history.

Why do planners keep changing the plans the tool produces?

Often because the tool does not know about rules or preferences the planners apply. Each change is a clue. Recording the reasons for overrides and adding the missing constraints or adjusting the weights usually reduces them over time.

Can an optimization tool make plans unfair to employees?

Yes, if fairness is not part of the objective or the constraints. A plan that minimizes cost alone may load unpopular shifts onto the same people. Rules on rotation, rest periods and the distribution of weekend work can be added explicitly.

How long should a parallel test run?

Long enough to cover typical variation, such as several weeks for shift planning or a full seasonal cycle for some inventory decisions. The aim is to see the tool handle ordinary days, busy days and unusual situations. Stopping too early hides the cases that matter most.