A model begins with an action and its alternative
A dashboard can describe hundreds of quantities while leaving a manager unsure what to do. Begin with the action that can actually change: schedule a crew, reserve stock, send a reminder or postpone an investment. Identify the person with authority, the decision deadline and the outcome horizon. The no-action alternative also needs a definition; continuing the current schedule may have costs and service consequences rather than a zero payoff.
Use a fictional Harbor Services planning file. Let x be routine jobs and y complex jobs completed during one planning period. Each routine job consumes two crew-hours and yields contribution 80; each complex job consumes three hours and yields contribution 150. There are twelve usable crew-hours, demand ceilings of four routine and three complex jobs, and jobs are indivisible. Contributions are dollars per completed job after the stipulated incremental operating costs. Committed overhead is unchanged across the modeled schedules.
The objective is maximize 80x+150y subject to 2x+3y≤12, 0≤x≤4, 0≤y≤3 and integer x, y. The demand ceilings are supplied parameters, not controllable sales. Available crew-hours are not the same as the number of employees; breaks, skills and travel could reduce usable capacity in a real file. This small model deliberately postpones those complications until evidence shows which constraints matter.
Use a data contract that respects the decision clock
For each input, record its definition, unit, source, owner, effective date and time when it became available. A dispatch forecast made Monday morning cannot use Wednesday's completed-job outcome or a later corrected label as though it were known on Monday. Store the forecast origin and data cutoff separately from the eventual outcome date. Revisions may be legitimate but must remain traceable.
One row might represent a job, a customer-period or a crew-shift. Mixing these units can duplicate hours or make a customer with many visits appear to be many independent customers. Define keys and joins before aggregating. A missing duration is not a zero-hour job; a canceled job is not necessarily completed demand. Reconcile input counts and totals to the operational records within authorized access.
These lessons use only synthetic data. No actual customer, employee, account or learner record is needed to reproduce them. A production analysis should collect only appropriate authorized information and restrict who can see it. Florida is the default jurisdiction for state-law questions; this teaching model does not assert a specific legal retention, employment or privacy rule.
Check feasibility before interpreting a score
A plan with x=4, y=3 appears attractive at contribution 770, but uses seventeen hours and is infeasible. Comparing it directly with a twelve-hour schedule would reward a resource that is not available. At x=3, y=2, hours are twelve and contribution is 540. At x=1, y=3, hours are eleven and contribution is 530. A plan can leave capacity unused because indivisible jobs do not fit the remaining interval.
Check bounds, integrality and every resource row independently from the objective calculation. Specify whether demand is a firm order ceiling, a forecast mean or an uncertain realization. Treating expected demand as guaranteed orders changes the decision problem. If service deadlines, skill requirements or callback work are material, add them explicitly rather than hiding them in an unexplained safety factor.
Optimization over a wrong objective can make the wrong plan look precise. Revenue, contribution, cash, timeliness and risk are different outcomes. Define the principal objective and any minimum acceptable service or safety conditions. A larger profit coefficient cannot compensate for violating a hard requirement unless the organization actually permits that tradeoff.
Verify the code and validate the decision separately
Verification asks whether the calculations implement the stated model. Enumeration of this small integer feasible set, independent totals and deliberate invalid-input checks can expose a coding or sign error. Validation asks whether the model's assumptions are adequate for its intended decision. Accurate enumeration cannot establish that hours, demand or contributions match real operations.
Begin with a transparent baseline and retain it as an alternative. Compare the model's decision with existing practice, explain the mechanism behind any improvement and test the parameter that could reverse the ranking. A complicated model is justified when the extra detail changes or strengthens an important decision, not simply because a tool can fit it.
The preserved statistics readings support summaries, variation and visualization; the added laboratory supplies the decision model itself. Later units distinguish causal and predictive questions, evaluate future forecasts, solve the constrained schedule and test uncertainty. Keep an assumption register and a reproducible model version throughout, so another reader can challenge the reasoning without relying on a presentation's confidence.
Worked example: A high score can be infeasible
The apparent x=4, y=3 score is 80(4)+150(3)=770, but hours are 2(4)+3(3)=17. Under twelve hours it is excluded before ranking feasible choices.
Worked example: Unused hours can be rational
At x=1, y=3, contribution is 530 and one hour remains. Another routine job needs two hours, and complex demand is already capped. Unused capacity is not automatically a calculation error.