Lawfare Group → Knowledge Institute → Lawfare Academy

← Course syllabus · Related lesson

Translate an operating decision into a model that can be checked

Current complete on-site edition 3

Required teaching and complete optional models are supplied on LawfareGroup.com. Publisher and primary links are optional provenance or further reading. Florida is the contemporary state-law default; federal rules and explicitly comparative material are distinguished. Independent subject review and observed human learner testing remain pending.

Cumulative information-system dossier, transfer models and 30-point rubric

Preserved original teaching integrated with complete current on-site preparation. Independent human subject review and observed learner testing remain pending.

Learning objectives

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.

Progressive optional practice

Attempt each problem before opening its model. Then revise the reasoning under the changed conditions.

Guided

State the decision variables and the crew constraint.

Compare the model reasoning

x and y are integer jobs completed; 2x+3y≤12 is usable crew-hours.

Changed conditions

A job duration was entered in minutes.

Compare the revised analysis

Convert to a common unit and recompute before solving; do not mix hours with minutes.

Independent

Can the Wednesday completion flag predict a Monday scheduling decision?

Compare the model reasoning

It is future information at that forecast origin and creates leakage if treated as known.

Changed conditions

The same field is a historical completion flag from the previous month.

Compare the revised analysis

It may be usable if its timestamp proves it was available, with a definition appropriate to the prediction target.

Transfer

Does successful enumeration validate the contributions?

Compare the model reasoning

No. It verifies the model’s arithmetic; the economic inputs and operating constraints need evidence.

Changed conditions

Callbacks consume a material extra hour for complex jobs.

Compare the revised analysis

Revise duration or model uncertain rework explicitly, recheck feasibility and compare the resulting schedule with the baseline.

Preserved historical development snapshot · Course content review

Source readings and scope

Principles of Finance — 13.1 Measures of Center — Optional preserved publisher provenance; all required concepts, derivations, worked examples and practice are supplied in the complete current on-site studios. The original route-check date is historical.

Principles of Finance — 13.2 Measures of Spread — Optional preserved publisher provenance; all required concepts, derivations, worked examples and practice are supplied in the complete current on-site studios. The original route-check date is historical.

Principles of Finance — 13.5 Probability Distributions — Optional preserved publisher provenance; all required concepts, derivations, worked examples and practice are supplied in the complete current on-site studios. The original route-check date is historical.

Principles of Finance — 13.6 Data Visualization and Graphical Displays — Optional preserved publisher provenance; all required concepts, derivations, worked examples and practice are supplied in the complete current on-site studios. The original route-check date is historical.

Reproduce the worked examples in Python 3. Standard library only; synthetic data; no production records or network access.