When a General-Purpose APS Stops Being Enough for Pharma
Most GMP constraints can be configured into a general-purpose scheduling tool. The question worth asking is what that configuration costs to maintain once the protocols behind it start to change.

A planner looks at two campaigns of the same product sitting three weeks apart and does what any scheduler would do, which is pull them together. The tool suggested it because the arithmetic works out, with one fewer changeover and one fewer validated clean standing between the plant and more run time. What nobody notices is that the combined campaign is now longer than the one the cleaning validation was performed against. Nothing on the screen said so, because the tool was never told that campaign length is a limit rather than a lever.
A general-purpose APS already does most of this
Finite-capacity scheduling is a solved problem. A general-purpose advanced planning and scheduling tool will model machines, labour, tooling and materials at once. It sequences jobs against real shift calendars, handles sequence-dependent setups through a changeover matrix, and replans when something slips. Several of these tools have been doing it for decades across industries with hard sequencing problems of their own.
None of that is in question here. A pharmaceutical site that buys one is not making a mistake; plenty of them run successfully on exactly that footing. The question is narrower; it is what happens to the constraints that have a regulatory basis rather than an operational one, and whether a tool designed around the second can be configured to respect the first.
The question that comes before sequencing
Most scheduling tools begin from the assumption that any product can run on any qualified line, with a changeover between. In a multi-product GMP site that assumption is the output of a risk assessment rather than a given.
Chapter 5 of EudraLex Volume 4 sets out how that assessment works. A quality risk management process, including a potency and toxicological evaluation, determines how far premises and equipment must be dedicated to a particular product or product family. The outcome might be a dedicated facility, or a self-contained area with its own air handling. It might be dedication of the product contact parts alone, or campaign working, which Chapter 5 lists among the organisational measures and describes as dedication by separation in time.
In Europe that evaluation runs through the EMA guideline on health based exposure limits, which derives a permitted daily exposure for each active substance and uses it to decide what can safely share equipment. Products with a high sensitising potential, where the risk cannot be controlled by organisational or technical measures, require dedicated facilities outright.
Health Canada’s GMP guide takes the same approach and reaches the same place, naming penicillins and cephalosporins among the classes for which a self-contained facility is required. In the United States the rule is stated without the risk assessment at all: 21 CFR 211.42(d) requires penicillin operations to be performed in facilities separate from those used for other human drug products. Representing that in a changeover matrix as a very expensive transition misses what it actually is.
So before a tool sequences anything, somebody has decided which products may share which equipment and under what conditions. A scheduling model that does not carry those decisions will cheerfully propose a sequence that the site's own containment strategy forbids.
Four constraints that behave differently
Within whatever the risk assessment allows, four things govern the schedule in ways that have no equivalent in discrete manufacturing. Each has a regulatory document behind it setting a limit. That document is the part a scheduling tool has no way of inferring on its own.
- Cleaning is validated, not estimated. Under 21 CFR 211.67, equipment must be cleaned at appropriate intervals and written procedures must be established and followed. Annex 15 of EudraLex Volume 4 defines the two clocks a planner actually works to; section 10.8 says the time between manufacture and cleaning and the time between cleaning and use should both be taken into account to define dirty and clean hold times. Those are validated windows with documented limits. A changeover duration in a generic matrix is an estimate a good planner refines over time, and the two look identical in a scheduling tool while being opposite in kind. Health Canada makes that distinction in its vocabulary, defining a changeover procedure as a logical series of validated steps ensuring proper cleaning of suites and equipment before a different product begins.
- Campaign length is a ceiling. This is the one that catches people. Annex 15 section 10.9 says that where campaign manufacture is carried out, the maximum length of a campaign, in time or in number of batches, should be the basis for the cleaning validation exercise. Health Canada builds the same limit into its definition of the term, describing campaign production as a series of batches of the same product run in sequence within a given period or maximum number of batches, followed by a validated cleaning procedure, and accepting it only where the justification, validation and controls are in place product by product. Extending a campaign past that length is therefore not a more efficient version of the same plan. It changes a control measure that was validated at a specific length, which makes it a deviation rather than an optimisation.
- Time limits apply inside the process, not only between batches. 21 CFR 211.111 requires that time limits be established, where appropriate, for the completion of each phase of production. The clause then says something a scheduling tool needs to know: deviation from those limits may be acceptable where it does not compromise quality, and such deviation shall be justified and documented. A bulk waiting too long between granulation and compression is therefore not simply late. It has crossed a limit that can be crossed, at the price of a justification somebody has to write. A tool that models queue time as a cost will minimise it, which is usually right and gives no signal at all on the occasions when it is wrong.
- Qualification applies to people as well as equipment. 21 CFR 211.25 requires that each person has the education, training and experience to perform their assigned functions, and separately that there be an adequate number of qualified personnel. Where a tool models labour as a capacity pool with skills attached, that is usually enough. A GMP plant also needs the schedule to know that a specific operator's qualification for a specific operation expires on a specific date, and that the plan beyond that date is not executable until somebody requalifies them.
QA release is a decision rather than a duration
Most scheduling tools handle quality testing as a lead time, so the batch is sampled, the clock runs, the release lands and the plan moves on. The number can be tuned from historical data and the result looks reasonable on a Gantt chart.
What the regulation describes is different in kind. Under 21 CFR 211.22, the quality control unit holds the responsibility and authority to approve or reject components, in-process materials and finished products, and under 211.192 production records must be reviewed and approved before a batch is released or distributed. That is a decision point with a named authority behind it. The outcome is not always yes.
The same authority applies before the batch is finished. Under 211.110(c), in-process materials are tested and approved or rejected by the quality control unit during production, including after storage for long periods, so a decision point sits in the middle of the process as well as at the end of it.
The scheduling consequence shows up when either answer is no, or not yet. A plan built on an average release time has no representation of what happens downstream when a batch is held, and a tool that cannot distinguish a queue from a gate will keep committing capacity against material that is not going anywhere.
What the inspection data shows
None of this sits at the edge of what inspectors look at. FDA publishes the regulations cited on its system-generated Form 483s each year, and the equipment and cleaning clauses sit near the top of the drug product list.
Read those alongside the clause texts and a pattern appears. The citations are not about plants failing to clean. They are about cleaning not happening at the right interval, equipment not being suitable for the operation it was given, and written procedures not being followed. Every one of those is a scheduling decision as much as a quality one, because the schedule is what decides the interval, the equipment and whether the procedure had time to run.
Where configuration stops being configuration
Most of the constraints above can be represented in a general-purpose tool by an implementation partner who knows the domain. Hold times become time windows and qualification becomes a resource calendar, while forbidden sequences become transitions priced high enough that the solver avoids them. On day one the result schedules perfectly well.
The difficulty arrives afterwards, in three places that a day-one demonstration will not show you. None of them is about whether the tool can hold the rule; all three are about what happens to the rule over time.
First, the constraints keep moving underneath the configuration. Annex 15 section 11 requires written procedures covering any planned change to equipment, premises, process, product range or batch size, with the impact on validated status assessed. Every one of those changes has a scheduling parameter attached to it. In a configured generic tool those parameters live somewhere nobody owns, and the model drifts away from the protocols quietly, which is the same failure a departing planner leaves behind.
Then there is what happens when the plan breaks. Replanning against a cleaning matrix is arithmetic. Replanning against validated windows means knowing which rules can bend and which cannot, and which of them require a deviation to be raised before the shift can proceed. Where every constraint is held as a cost, the solver will find the cheapest answer rather than the only compliant one, and 211.111 shows why that distinction is not academic: some limits bend with a documented justification and others do not bend at all.
Finally there is the question of the trail. When an inspector asks why a sequence ran as it did, the answer has to name the constraint that governed the decision and point at the document it came from. A configured generic tool records the schedule it produced. Whether it records the rule behind each decision depends entirely on how it was configured, and that is a question worth asking before the contract rather than after.
Six questions to ask any vendor
- How does a hold time get into the system, and what happens when the protocol behind it changes? The answer should involve the source document, not a parameter screen.
- Can the tool hold a campaign maximum as a limit rather than a target? Ask what it does when the optimiser wants to exceed it.
- How are forbidden sequences represented? A very high cost and an actual prohibition behave differently when the solver is under pressure.
- Does the schedule know when an operator qualification expires? And does it know before the plan is published, or after.
- When the plan breaks, what does it tell the planner about which rules can move? Replanning that treats every constraint as a cost will find the cheapest answer rather than the compliant one.
- If an inspector asks why a batch ran when it did, what does the system produce? The schedule is not an answer. The rule that governed the decision is.
Where that leaves the decision
A general-purpose APS can be made to schedule a GMP plant correctly, and many do. The real question is what the configuration costs and who maintains it, and what happens the first time a protocol changes and nobody updates the parameter it maps to.
A GMP-native tool is one where those rules are first-class objects with sources attached rather than values somebody typed in. That distinction does not matter on day one and it matters enormously in year three, which is roughly when most sites discover whether the model they bought still matches the protocols they run.
Alexandre Clarizio is founder and CEO of Kaster Technologies, which builds AIM, a decision intelligence platform for GMP pharmaceutical manufacturing.
Frequently asked questions
- Can a general-purpose APS be configured for pharmaceutical manufacturing?
- In most cases yes, and plenty of sites run one successfully. Hold times become time windows, qualification becomes a resource calendar, and forbidden sequences become prohibitive transitions in the changeover matrix. The question worth asking is not whether it can be configured but what the configuration costs to build and, more importantly, to maintain as protocols change.
- What makes pharmaceutical scheduling constraints different?
- They have a regulatory basis rather than an operational one. A changeover duration is an estimate a planner refines; a clean hold window is a validated limit traced to a protocol. Both look like numbers in a scheduling tool, and only one of them creates a deviation when the schedule crosses it.
- Is a longer campaign always more efficient?
- Not in a GMP plant. Annex 15 of EudraLex Volume 4 says the maximum campaign length, in time or in number of batches, should be the basis for cleaning validation, and Chapter 5 lists campaign working as a control measure against cross-contamination. Extending a campaign past its validated length changes a control measure rather than saving a changeover.
- How often does FDA cite equipment and cleaning problems?
- Often. In FY2025, cleaning and maintenance at appropriate intervals under 21 CFR 211.67(a) was cited 95 times on drug product Form 483s, equipment design and location under 211.63 was cited 81 times, and written cleaning procedures under 211.67(b) were cited 70 times. FDA notes that the data set covers system-generated 483s only, so these are floors rather than totals.
- Does a pharma-specific tool mean giving up general scheduling capability?
- It should not. Finite-capacity scheduling, campaign sequencing and changeover optimisation are table stakes, and a tool that cannot do them is not worth evaluating regardless of how well it handles GMP constraints. The difference is whether the regulatory constraints are first-class objects with sources attached or values somebody configured once.
Sources
- Electronic Code of Federal Regulations, 21 CFR 211.22: Responsibilities of quality control unit, 2026
- Electronic Code of Federal Regulations, 21 CFR 211.25: Personnel qualifications, 2026
- Electronic Code of Federal Regulations, 21 CFR 211.42: Design and construction features, 2026
- Electronic Code of Federal Regulations, 21 CFR 211.67: Equipment cleaning and maintenance, 2026
- Electronic Code of Federal Regulations, 21 CFR 211.110: Sampling and testing of in-process materials and drug products, 2026
- Electronic Code of Federal Regulations, 21 CFR 211.111: Time limitations on production, 2026
- Electronic Code of Federal Regulations, 21 CFR 211.192: Production record review, 2026
- European Commission, EudraLex Volume 4, Annex 15: Qualification and Validation, 2015
- European Commission, EudraLex Volume 4, Chapter 5: Production, 2015
- European Medicines Agency, Guideline on setting health based exposure limits for use in risk identification in the manufacture of different medicinal products in shared facilities, 2014
- U.S. Food and Drug Administration, Inspection Observations, FY 2025 data set, 2025
- Health Canada, Good manufacturing practices guide for drug products (GUI-0001), 2020