{"ok": true, "next": null, "next_url": null, "rows": [{"report_rcn": "1511497", "result_id": "101150714_PSHORIZON", "report_id": "434225", "project_id": "101150714", "project_rcn": "260683", "content_type": "result", "language": "en", "available_languages": "en", "title": "Periodic Reporting for period 1 - CompoundingPharma (Dynamic production sequencing to minimize patient delays for compounded medications)", "teaser": "When standard medications are not appropriate for a patient's needs \u2014 for example, due to allergies, sensitivities, or drug shortages \u2014 retail pharmacies must turn to compounding pharmacies. These specialised facilities produce customised medications to order by blending...", "description": "periodic", "summary": "When standard medications are not appropriate for a patient's needs \u2014 for example, due to allergies, sensitivities, or drug shortages \u2014 retail pharmacies must turn to compounding pharmacies. These specialised facilities produce customised medications to order by blending raw chemical compounds according to individual prescriptions. Driven by growing demand for personalised medicine and increasingly common drug shortages, the global compounding pharmacy market is projected to nearly double from $16.9 billion in 2024 to $31.8 billion over the next decade.\n\nA key operational challenge for compounding pharmacies is ensuring timely access to medications. Compounding involves complex processes requiring specialised equipment, trained pharmacists, and time-consuming cleaning procedures between batches to prevent cross-contamination and ensure exact dosages.  The combination of cleaning procedures and equipment changes that depend on medication characteristics means that the sequencing of production affects the total production time.  Given that regulations typically require a prescription before compounding can begin, medication sequencing must be done dynamically while requests must wait in a queue, where delays in medication availability are associated with poorer health outcomes, making production control a problem with direct consequences for patient welfare.\n\nThe CompoundingPharma project aimed to improve timely access to compounded medications. In collaboration with Roseway Labs, the partnering compounding pharmacy, the main objective was to develop and evaluate a dynamic production control policy that sequences medication production to minimize delays for patients.   By modifying an optimal control technique traditionally used in robotics as well as guidance systems and applying it to dynamic production control we develop a production control policy that can significantly reduce production delays.  Specifically, when tested on historical data and compared to the status-quo policy of producing a batch of the medication that has been waiting the longest, a policy that works to minimize the maximum waiting time, we find that a modified version of our policy can reduce average production delays by 32.5% without sacrificing maximum waiting times. \n\nMore efficient production management will not only help to improve timely access to compounded medications, but given the expected growth in demand means less compounding capacity will be needed to meet that demand.  This may also help enable faster recovery from drug shortages when compounded versions are available.", "work_performed": "The project developed a novel theory-based heuristic policy for dynamically sequencing production in compounding pharmacies. The approach combines a fluid (deterministic) model of batch production dynamics with a modified technique from optimal control theory \u2014 the State-Dependent Riccati Equation (SDRE) approach \u2014 which is widely used in aerospace and robotics but had not previously been applied to production management.\n\nWe first develop a fluid model to capture the production dynamics, from which we derive a theoretical lower bound on the best possible performance (minimum average waiting cost), providing a benchmark against which any heuristic can be evaluated.  We then construct our heuristic by modifying the SDRE approach for use as a value function approximation, providing a simple index policy.  By designing the cost function to approximate the original intractable problem, we unexpectedly find that in our setting there is a closed-form solution to the SDRE which simplifies the computational requirements and implementation dramatically.  \n\nThe resulting algorithm \u2014 the SDRE-Index policy \u2014 works by computing a simple score for each medication at each decision point, based on the current queue lengths, arrival rates, and switchover times, and then producing the medication with the lowest score. It requires only basic operational data and can be implemented using free open-source software.\n\nThe SDRE-index policy was then evaluated through three progressively more realistic numerical experiments relative to the status-quo policy of producing batches of medication based on what request is the oldest (waiting the longest), a simple policy that performs well at minimizing the maximum waiting times. In a fluid (deterministic) setting with up to 124 medications, the SDRE-Index performed within 11% of the theoretical lower bound on average, while the oldest request policy was approximately 70% greater than the lower bound,   demonstrating strong theoretical performance. In a calibrated stochastic simulation using data from a partnering UK compounding pharmacy \u2014 covering 1,192 distinct medications \u2014 the policy can reduce average waiting times by 49.3%, but increases maximum waiting times substantially.  We then show that this can be addressed with a simple a hybrid version of the policy (combining the SDRE-Index with a maximum waiting time limit) which reduced the average cost of waiting by 41% without sacrificing performance on maximum waiting times. In a data-driven simulation using approximately four years of actual historical order data, where arrival rates are unknown and must be estimated, the hybrid algorithm reduced average waiting costs by 32.5% and cut the average time medications spend in the production queue from 40.1 hours to 27.0 hours, with roughly 70% of all medication requests filled faster \u2014 all without increasing maximum waiting times.", "final_results": "The project produced results that advance the state of the art in several ways.\nThe SDRE-Index policy is the first fully dynamic production sequencing heuristic for systems with both sequence-dependent setup times and batch processing in a make-to-order setting. Existing heuristics in the operations management literature address some of these features in isolation but none handles the full combination that characterizes compounding pharmacy operations. The heuristic fills this gap with a theory-driven approach that is both computationally simple and in numerical experiments using real data reduced production delays for compounded medications by 32.5% on average.  Additionally, the closed-form solution in this setting is a further technical contribution that ensures the heuristic scales efficiently to large systems \u2014 a practical necessity given that real compounding pharmacies may produce thousands of distinct medications. \n\nFor compounding pharmacies, the potential impact is a substantial reduction in production delays for patients. The policy could be incorporated into existing pharmacy management software as a decision support tool. It requires only basic operational data (order arrival information, switchover times, and production times) and runs on free open-source software, making it accessible to pharmacies of varying sizes. The full replication package is openly available, enabling any interested pharmacy or researcher to reproduce the results and adapt the approach to their own setting.\n\nFurther uptake would benefit from pilot implementation studies to measure real-world impact, and from collaboration with pharmacy management software providers to integrate the heuristic into existing systems. Extension to multi-server environments \u2014 reflecting pharmacies with multiple production stations operating in parallel \u2014 is a natural direction for future research.\n\nMore generally, the methodological contribution extends beyond the specific application. The project demonstrates that the SDRE approach \u2014 a family of nonlinear controllers from the optimal control literature \u2014 can be repurposed as a value function approximation technique within the framework of approximate dynamic programming. This is a novel connection between two established fields. By using the solution of the Riccati equation to evaluate the cost-to-go under each possible decision, the algorithm sidesteps the need to learn the value function or search for a policy, which are typically the most complex and computationally demanding steps in approximate dynamic programming. This idea is generalizable: by changing the fluid model dynamics and cost function, the same technique could be applied to other challenging production control and queueing problems where optimal solutions are intractable.", "period_number": 1, "period_from": "2024-04-01", "period_to": "2026-03-31", "report_type_description": "Periodic Reporting for period 1", "source_update_date": "2026-06-23 11:46:59", "content_creation_date": "2026-06-29 10:44:16", "content_update_date": "2026-06-29 10:44:12", "last_update_date": "2026-06-29 10:44:16", "archive_filename": "cordis-HORIZONreports-xml.zip", "source_member": "result-rcn-1511497_en.xml", "cordis_url": "https://cordis.europa.eu/project/id/101150714/reporting"}], "truncated": false}