Manuscript Offprint
arXiv:2609.07275Mathematical Modeling of a Cognitive Continuum Digital Shadow for Large-Scale, Cross-Facility Workflows
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.
MARK ASCH, LAMFA, Université de Picardie Jules Verne, France
MARIUS GARÉNAUX GRUAU, IRISA, France
FRANÇOIS BODIN, IRISA, France
We present the mathematical foundations of a Cognitive Continuum Digital Shadow (CCDS), a decision-support layer between users and the cross-facility infrastructure—instruments, networks, data stores and compute centers—of exascale and post-exascale scientific workflows. The CCDS couples a state-space representation of the continuum with multistage stochastic programming, so that deployment scenarios can be explored and optimized before jobs are launched. This allows operators and users to quantify the cost, makespan and energy trade-offs of a workflow under uncertain resource availability, and hedge their decisions accordingly. We formulate the underlying optimization as a multimode, resource-constrained, stochastic supply-chain network design problem and demonstrate it on a realistic genomics workflow scheduled across heterogeneous HPC and data-center resources. This is the first of three papers; the second treats the underlying software architecture and the third reports large-scale use-cases.
1 Introduction
A digital twin (DT) is a numerical model that exchanges two-way data with its real-world counterpart [2]. Digital twins of cyberinfrastructure itself remain rare; we are aware of the ORNL ExaDigiT platform¹, the White Label Digital Twin library², and the survey [5]. With instruments such as SKA and HL-LHC coming online and their reliance on increasingly onerous cross-facility workflows, the moment is ripe to address a DT of the so-called digital continuum [4]: the complete, end-to-end path along which data emanates from a large instrument, is pre-processed at the edge, transmitted over a network, stored in a data center, processed in an HPC center, and results (products) are finally returned to the scientist for analysis and archiving.
Such a workflow is, by construction, executed on a cross-facility infrastructure [1, 11]—with data locality a persistent, defining constraint [24]— whose components are subject to uncertainty in availability, maintenance and cost, and to strict cybersecurity access conditions. Sustainability and the energy consumption of cyberinfrastructure [16] add a further, increasingly critical constraint. A digital twin—or shadow—of the continuum (CDS) therefore offers a testbed where scheduling choices, i.e. which facilities to use under which conditions, can be explored before the jobs are run.
This requires three software components: one to model and simulate a workflow’s execution, one to schedule its sub-jobs, and one to optimize—possibly multi-objective and stochastic. The first rests on the classical state-space representation [12, 18]; the second on established scheduling theory from industrial engineering [8, 20] and its stochastic extension [21]; the third on standard stochastic-programming theory and algorithms [6, 22]. A complete, executable treatment of the scheduling and optimization material used here, with pyomo implementations of every example, is provided in the open companion guide [3].
This paper is organized as follows. In Section 2 we define the concept of a digital twin, and then describe the state-space model used for the digital continuum. Then, in Section 3, we present a detailed formulation of the stochastic, multi-stage optimization problem applied to a generic continuum setting. Section 4 presents examples of stochastic multi-stage workflow optimization,
Authors' Contact Information: Mark Asch, LAMFA, Université de Picardie Jules Verne, Amiens, France; Marius Garénaux Gruau, IRISA, Rennes, France; François Bodin, IRISA, Rennes, France.
Mark Asch, Marius Garénaux Gruau, and François Bodin
applied to an academic problem and then to a realistic genomics workflow. Finally, we draw conclusions and discuss perspectives in Section 5.
The notion of a digital twin has been refined, and should rather be declined at three levels: models, shadows and twins. Models are a fixed representation, shadows are dynamic, and twins are bi-directional. A digital model is a static, virtual representation of a physical object, system, or process. A digital shadow is an evolving digital representation that mirrors the current state and behaviour of the physical entity or system. It collects data from the asset through sensors, Internet of Things (IoT) devices, or other sources that provide a feed of information that is fed into the model. This means that a digital shadow is up-to-date with the physical entity. Finally, digital twins integrate the virtual and physical realms by creating a real-time connection between the physical entity and its digital counterpart, where the physical object gives information to the digital replica and vice versa. Digital twins can then simulate, monitor, and control physical objects or systems, facilitating analysis, optimisation, and predictive maintenance. They enable live feedback loops and foster insights for improving performance, efficiency, and reliability.
We note that in the context of the digital continuum, given cybersecurity considerations, it is highly unlikely that a digital twin could actually control the system. For this reason, in the sequel, we will concentrate on a digital shadow representation, though the term "twin" is employed.
2.1 Mathematical Formulation: State-Space Model
Suppose that our overarching continuum twin, the CDT, is composed of interacting twins (or shadows)
where each is itself an interacting system of sub-twins
Examples of twins are HPC centers, data centers, data communication networks, large measurement and observation instruments (satellites, telescopes, synchrotrons, etc.) Each twin will have its particular set of sub-twins, depending on the context and the available data.
The state of the CDT, containing values of all pertinent state variables, is described by a concatenated state vector
where each component vector, , corresponds to the state of the -th twin . The state of each twin will evolve from time (or stage) to following the classical state-space system formulation,
(2)
where
Mathematical Modeling of a Cognitive Continuum Digital Shadow for Large-Scale, Cross-Facility Workflows
3
-
is the state transition matrix describing the system “dynamics” as it evolves from time to time . This matrix could be constant, even the identity (in which case, ), could be an approximation of the dynamics, could be a linearization of more complex nonlinear dynamics, or possibly a machine-learning approximation of the state, eg. a neural network.
-
is the control matrix and the control vector. In a classical feedback loop, we would have . Note that in the absence of any control, we simply set .
-
is the observed/measured state and selects the observable state variables.
-
Finally, and represent (optional) noise, or error terms in the state and observations respectively. The presence of these terms enables a much more detailed quantification of the system uncertainty and the subsequent risk analysis.
2.2 Fully coupled representation
In reality, we need to express the coupling between components and sub-components. At the level of the individual twin (1), the interaction between its sub-components can be accounted for through an interaction matrix, or by suitable modification of the state matrix in (2). A new formulation can be obtained for the coupled system by simply concatenating the individual sub-system dynamics.
Let us consider a given system (twin), , with sub-systems, , and we have dropped the index for simplicity. Each sub-system is governed by its own state and observations equations, denoted here by the corresponding lower-case letters,
where , the state and we suppose that the (linear) coupling between sub-systems and is expressed by the binary-valued term in the coupling matrix , where is the state dimension of the sub-system . Then, for the overall coupled system we concatenate the sub-system states into a combined state vector . If coupling is also required at the global level of the CDT, between the , then a suitably extended form of (3) can be used instead of the system (2). Full details are provided in [14].
This representation facilitates straightforward implementation in a computer simulator, development of control algorithms, system analysis (stability, controllability, observability), state estimation techniques like Kalman filtering, multi-input, multi-output (MIMO) system analysis, and general exploration of diverse operational scenarios.
2.3 Scheduling problem: a resource-constrained supply chain network design
There are two ways to view the Cognitive Continuum Digital Shadow: a facility- or machine-centered view, and a job-centered view. The first is best modelled by a supply chain model. The second is principally a scheduling problem.
Scheduling allocates limited resources to competing tasks over time. We adopt the standard definition [20].
Mark Asch, Marius Garénaux Gruau, and François Bodin
Definition 2.1. Scheduling is a decision-making process that deals with the allocation of (limited) resources to tasks over given time periods. Its goal is to optimize one or more objectives. A schedule is a job sequence determined for every machine of the processing system.
A supply chain analog provides a model for the CCDS.
Definition 2.2. A supply chain is a network of suppliers, manufacturing plants, warehouses, and distribution channels organized to acquire raw materials, convert these raw materials to finished products, and distribute these products to customers. In the CCDS context, we can consider: user-jobs, facilities, data storage, networks, job-processing and job-product delivery to end-users, respectively.
Problem definition. We propose a combined model for the CCDS, composed of a Supply Chain Network Design (SCND) coupled with a Resource Constrained Process Scheduling (RCPSP) model. In such a fused system, the supply chain model allocates jobs to the best facilities, and the scheduling model then (optimally) sequences jobs among facilities and within a given facility. Supply chain optimization emphasizes "where" (facility choice, data transfer mode). Scheduling emphasizes "when" and "in what order."
The resource-constrained project scheduling problem is a classical, well-known problem in operations research, and started with the CPM (Critical Path Method) that was developed in the 1950's. A number of activities are to be scheduled. Each activity has a duration and cannot be interrupted. There are a set of precedence relations between pairs of activities which state that the second activity must start after the first has finished. The set of precedence relations are usually defined by a directed acyclic graph (DAG), where the edge represents a precedence relation where job must finish before job begins. The DAG contains two additional dummy activities with duration 0, the source and sink. Each non-renewable resource has a capacity for the entire schedule. An example would be a financial, or human resources budget that applies to the entire project.
The multi-mode resource-constrained project scheduling problem (MRCPSP) is an extension of the resource-constrained project scheduling problem, where each task can be executed in one of a number of alternative modes. The problem aims to select a single mode from a set of available modes in order to construct a precedence- and resource-feasible project schedule with a minimal makespan. This is the similarity to a supply chain.
State variables and Objective function. The state of the system at a given time , is represented by a set of binary-valued state variables that designate the facilities that are used, at each stage, by each job to be performed in the workflow. The overall objective is then to combine location decisions—which centers to use—with allocation decisions—how to distribute the workloads and jobs among the chosen centers (data and compute). Various project performance metrics can be optimized, including task-based, resource-based, financial-based and user-based metrics. One can minimize makespan, tardiness, resource consumption, or maximize total NPV with respect to environmental sustainability, for example.
There can be a single objective, such as minimizing (any function of) the total of fixed and variable costs, or minimizing the completion time (makespan). Multiple objective optimization (MOO) seeks a trade-off between minimum cost and maximum sustainability (minimum environmental impact). Finally, stochastic optimization takes into account the uncertainties of resource availabilities and delays, maintenance and failures, resource allocations, variable energy costs, project costs (HR, budget).
The overall, deterministic cost function can be expressed either as a bottleneck objective, where we seek to minimize the longest or most expensive job, or as a weighted sum over all jobs of
Mathematical Modeling of a Cognitive Continuum Digital Shadow for Large-Scale, Cross-Facility Workflows
5
makespan, cost and any functions of these. Some terms can be ignored by setting the coefficients to zero, depending on the context.
RCPSP. The Resource-Constrained Project Scheduling Problem (RCPSP) is an NP-hard combinatorial optimization problem that consists of finding a feasible scheduling for a set of jobs subject to resource and precedence constraints. Each job has a processing time, a set of successor jobs and a required amount of different resources. Resources may be scarce but are renewable at each time period. Precedence constraints between jobs mean that no jobs may start before all its predecessors are completed. The jobs must be scheduled non-preemptively, i.e., once started, their processing cannot be interrupted.
The RCPSP has the following input data:
-
set of jobs.
-
set of renewable resources.
-
set of precedences. These can be rigorously defined using an order relation, , between jobs .
-
planning horizon: set of possible processing times for jobs.
-
processing time of job .
-
amount of (renewable) resource required for processing job .
-
capacity of renewable resource .
There are many different Mixed Integer Linear Programming (MILP) formulations for the RCPSP. We choose the most suitable, discrete-time formulation. This is a binary formulation, where we have a binary variable for each activity and starting time/date ,
The binary programming formulation, proposed by Pritsker et al. in 1986 can be written as follows.
The objective function (4) represents the sum of all possible start dates for the final sink job (dummy variable) . We know that only one of these variables will equal 1 for a specific . Therefore, by minimizing the sum of the product , we are effectively minimizing the total project duration. Constraint (5) ensures that each activity has exactly one start date, i.e. a single execution. Constraint (6) guarantees that for any time period , the schedule does not exceed the capacity for any renewable resource . Non-renewable resources will be introduced below in the multi-mode formulation. Finally, constraint (7) ensures that if an activity follows another activity , then
Mark Asch, Marius Garénaux Gruau, and François Bodin
activity must start after the finish time of activity , which is equal to the start time of activity plus its duration . This is the precedence constraint.
MRCPSP. The above formulation is restricted to temporal scheduling on a single machine, and for a single project, or a collection of jobs. This formulation can be generalized to deal with multiple machines and multiple projects. In this case, the formulation resembles that of a supply chain. It is referred to in the literature as the multi-mode resource-constrained multi-project scheduling problem or MRCMPSP.
The single-mode RCPSP assumed that each activity has only one way to be executed, whereas the multi-mode RCPSP considers multiple ways to execute an activity, which often have tradeoffs in duration, cost, or resource requirement.
Let the decision variable denote the execution of job in mode completed in period . Then the MRCPSP with tight, time-indexed formulation can be written as
where is the set of predecessors of job , the earliest finish and latest finish times of job are denoted , , an upper bound on the project's makespan is given by , and we have denoted renewable resources by the index and non-renewables by .
Note that objective (8) is the minimization of the makespan, to which we can add any cost function of the duration, such as energy consumption. The constraints (9) indicate that each activity is assigned exactly one mode and exactly one finish time; (10) ensures that no activity is started until all its predecessors are finished; (11) ensures that the per-period levels of the renewable resources are met; consumption of the nonrenewable resources is limited to their availabilities by (12). Finally, restricting the summation produces what is known as a tighter formulation over time to the intervals that reduces drastically the number of variables and gives better convergence. These time windows can be computed by simple forward and backward recursion loops.
Mathematical Modeling of a Cognitive Continuum Digital Shadow for Large-Scale, Cross-Facility Workflows
7
To include infrastructure costs in the objective function, we just add a term, or terms, if other costs are to be taken into account, e.g. related to sustainability,
where is the cost associated with the use of facility m for task j.
We can also perform simultaneous scheduling of a set of multiple projects taking into account the availability of local and global resources under different time and resource constraints. This has practical importance, at national and European levels, when cross-facility implies exploitation of cyberinfrastructure resources across different countries, for example, as would be the case for EuroHPC at the European level, or GENCI for France.
This general formulation of the RCPSP is then mathematically equivalent to the supply chain configuration problem SCCP with the addition of resource constraints. The loop is closed. This formulation is the basis for the multistage stochastic model of Section 3 below.
Sensitivity analysis. Duality theory in linear-programming makes the model interpretable [7, 19]. By strong duality, the optimal Lagrange multiplier associated with a binding constraint satisfies the sensitivity identity
where is the optimal objective value and the right-hand side of constraint j. Applied to the capacity constraints (11-12), these multipliers are shadow prices: the marginal reduction in total cost obtainable from one additional unit of capacity at facility m, with signaling slack, realocatable capacity. These sensitivities give facility operators and funding agencies a principled, quantitative basis for capacity-planning decisions; the duality and KKT background, with worked pyomo examples, is given in [3].
2.4 Three-Module Software Framework
The global software framework for the CDT is composed of a set of three modules: simulation (SIM), scheduling (SCD) and optimization (OPT), as shown in Figure 1. They can be used independently, or be chained together. These three are fed by a shared database, based on a common ontology that contains descriptions of all the jobs to perform, resources available, constraints to be respected, and any objectives to be attained, which together constitute the cognitive part. This database is connected to, and communicates with the real world—see Figure 1. This communication can take the form of a MADPP (machine actionable data project plan), a user-interface, or a combination of the two [14].
SIM The simulation module implements the state-space model (2). It is fully detailed in [14].
SCD The scheduling module (SCD) computes optimal scheduling models, adapted to the infrastructure and the choice of objectives. This module proposes a stochastic approach.
OPT The optimization module (OPT) serves as a basis for the scheduling module, and can also be used independently. For example, the user may prefer a heuristic approach, such as first in first out (FIFO), that does not require any scheduling as such. Multi-objective optimization (MOO) can also be performed directly, without scheduling. In the most general case, a stochastic optimization based on a multistage formulation is implemented—see Section 3.
https://www.eurohpc-ju.europa.eu
Mark Asch, Marius Garénaux Gruau, and François Bodin

Fig. 1. Global software architecture of the CDT, consisting of three modules: simulation (SIM), scheduling (SCD), optimization (OPT).
We envisage two roles for the OPT and SCD modules in the CDT:
(1) A strategic, offline role.
(2) A tactical, online role.
The first is to be used for planning a very large scale workflow, before its execution. The second will serve as a real time optimizer or scheduler to be used in conjunction with the SIM module. As a result, different approaches will be used for each role: stochastic, multi-stage programming for the former, simpler heuristics for the latter, such as FIFO, fair share, backfill, etc. The former will be illustrated below in the examples Section 4, and the latter in [13, 14].
Practical realization. The SCD/OPT pipeline is realized in four steps: (i) a generic json description of the problem instance—resources with renewable and non-renewable capacities, jobs with release times and deadlines, alternative execution modes per job (the candidate facilities, with their durations, costs and resource requirements), and the precedence DAG—validated against a published JSON schema; (ii) a model-generator function that translates this description into (iii) a pyomo [9] optimization model; whose solution yields (iv) the optimal schedule, exported as csv/json. The deterministic scheduling kernel is a multi-mode resource-constrained project scheduling problem (MRCPSP) [8, 20], with machine-conflict disjunctions handled by big-M or generalized disjunctive programming reformulations. The complete data model, schema, code and worked examples—from economic dispatch through two-stage and multistage stochastic programs to risk-averse dispatch—are available in the open, executable companion guide [3]. Programmatic access to the facilities themselves can rely on existing RESTful interfaces to HPC systems such as FireREST [10].
Commonly used by batch schedulers in HPC centers.
Mathematical Modeling of a Cognitive Continuum Digital Shadow for Large-Scale, Cross-Facility Workflows
9
3 Stochastic, multistage programming
3.1 Background
Stochastic programming addresses decision-making under uncertainty: some decisions must be taken now, before the information that would justify them becomes available [21, 22]. Its central notion is the stage—a point in time at which decisions are made, separating what is known from what is not. A two-stage problem makes one major decision now and adapts the rest once uncertainty is revealed; a multistage problem repeats this here-and-now/wait-and-see pattern over several stages. In the CCDS, the first stage fixes the major facility commitments and later stages adapt job routing as availability is observed.
3.2 Mathematical Formulation

Fig. 2. A multistage decision process with uncertainty. Uncertain, exogenous inputs arrive, starting from stage t = 2, and trigger subsequent recourse actions.
In Figure 2, we depict a generic multistage decision process with state that evolves over time, starting at stage , and then receives uncertain, exogenous inputs, , at given stages . At stage 1, a here-and-now (deterministic) decision is taken. The subsequent sequence of wait-and-see decision functions constitutes a policy, . The policy thus obtained, provides a decision rule for all stages . The aim of the decision process (stochastic multistage optimization) is then to compute an optimal policy subject to a given objective and constraints.
We will describe in detail the two-stage problem, since the multistage is a straightforward generalisation. In the stochastic setting, we can naturally classify as the first-stage decision variables, since the major centres are fixed, and as the second-stage decision variables, since the job-flow operating conditions are uncertain.
The two-stage stochastic linear program [6, 22] is then
where is the optimal value of the second-stage problem
where is the (uncertain) demand, is the (uncertain) supply, the random vector and . The expectation in (13) is taken with respect to the joint probability distribution
Mark Asch, Marius Garénaux Gruau, and François Bodin
function of . In the terminology of state-space, as used in Section 2, we can consider as the state variable, and as the control variable.
To treat the occurrence of infeasibility, where the first-stage solution does not satisfy the second-stage constraints, e.g. , we can introduce a recourse action that supplies the deficit at some penalty cost. Then the second-stage problem becomes
where represents the vector of (positive) recourse costs.
Remark. Scheduling—via the module SCD—provides the cost function, then stochastic linear programming—via the module OPT—performs the minimization.
In the multistage case, we have a succession of recourse stages, yielding the multistage program [21],
subject to
where is a policy, a discount factor, a stage cost, the stage decision and its constraint set. A policy is a decision rule that optimizes the objective over all stages.
The sense in which the objective is minimized must be specified. The weakest is the expectation sense, e.g. minimizing ; a stronger stochastic sense requires to be smaller in distribution than under any other policy [20].
3.3 Beyond expectation: chance constraints, risk and robustness
Minimizing an expectation is risk-neutral. Cross-facility deployments often require stronger guarantees. Three standard extensions, all expressible within the OPT module, are treated in detail—with runnable pyomo implementations—in the companion guide [3].
Chance constraints require uncertain constraints to hold with prescribed probability,
for a tolerance —for example, guaranteeing that a deadline is met in at least 95% of availability scenarios.
Risk measures replace the expectation by a functional that penalizes dispersion or tail losses: the mean–variance criterion with risk-aversion parameter , or the conditional value-at-risk
which controls the expected cost in the worst fraction of scenarios [22]. CVaR admits a linear-programming reformulation and thus integrates directly into the supply-chain model of Section 2.
Robust optimization dispenses with distributions altogether and optimizes against the worst case over an uncertainty set; it yields stabler but, on average, more conservative schedules. The choice
Mathematical Modeling of a Cognitive Continuum Digital Shadow for Large-Scale, Cross-Facility Workflows
11
among these formulations is a modeling decision exposed to the CCDS user, who can trade average performance against protection in the tail—precisely the trade-off faced when an urgent-computing deadline coexists with energy budgets.
4 Examples of workflow optimization
In this section we present two examples. The first is a well-known academic example that expresses, in a simple way, the basic principles and interest of stochastic optimization. The second example represents a realistic case of a cross-facility genomics workflow.
4.1 Newsvendor problem as a prototype
We choose this problem because of its simplicity, the fact that it can be solved analytically, and its representativity of a wide diversity of stochastic optimization problems. In particular, those that arise in the context of the CCDS.
The simplest stochastic multistage decision problem is the two-stage setting defined in (13). The newsvendor has to decide, at stage 1, how many newspapers to purchase. Then, at the later stage 2, the stochastic demand is revealed that will determine his overall profit or loss. The vendor wants to take a decision that will hedge their exposure to the risk of under- or overstocking, while taking into account the uncertain demand.
It can readily be shown that the optimal order quantity, , is given by
where the critical (cost) ratio (CR) is defined as
the ratio between understocking costs and overstocking costs. These costs are defined in terms of the basic pricing parameters: purchase price, selling price, salvage price, and is the cumulative probability distribution function of the randomly varying demand .
For illustration, suppose that the demand, , follows a Gaussian distribution
with mean and variance , whose values are estimated from past sales data. Stochastic optimization results for this case are shown in Figure 3, where the vendor can evaluate the trade-off by modifying their stock risk aversion, CR, and the demand variance . This produces a stochastically optimal hedging position, as well as clearly showing the expected excess inventory and lost sales.
This foundational model can then be readily applied to different elements within the CCDS context. For example, how many servers, or partitions, to allocate to a workflow, while taking into account uncertainty in availability, or waiting times, or any other factor that has an incidence on the global cost of the workflow, or its makespan.
4.2 A Genomics Workflow Use-Case
We now consider a slightly simplified, but nonetheless realistic example of a genomics workflow [17, 23]. Suppose that we have four jobs to perform: preprocessing (), alignment (), variant calling (), and annotation (). These have the following DAG structure:
Mark Asch, Marius Garénaux Gruau, and François Bodin

Fig. 3. Simulation of 2-stage stochastic optimization for the newsvendor problem. By modifying CR and , it is possible to explore different hedging positions, i.e. whether to buy more or less than the average demand (depends on the value of CR), and by how much (depends on magnitude of ).

The descriptions of the jobs, their resulting datasets and the CPU times needed for processing are summarized in Table 1.
The cyberinfrastructure is composed of two datacenters, say AWS and Google cloud, and two computing infrastructures, say a local university server (cheaper, but less reliable/available) and a cloud HPC service (expensive, but high availability). These are denoted , , and , , respectively.
Mathematical Modeling of a Cognitive Continuum Digital Shadow for Large-Scale, Cross-Facility Workflows
13
| Job | Description | Input | Output | Processing time |
|---|---|---|---|---|
| Preprocessing raw sequencing data | raw read 100 GB | cleaned reads 80 GB | 10h | |
| Read alignment | 80 GB | aligned BAM 50 GB | 20h | |
| Variant calling | 50 GB | VCF 5 GB | 15h | |
| Functional annotation | 50 GB | annotated 10 GB | 10h |
Table 1. Specifications for jobs and datasets in a genomics workflow. All terms and abbreviations are standard [17, 23].
When the probability distributions for the random parameters (events) are discrete, there are only a finite number of outcomes in each stage of the stochastic program. With each random parameter fixed to one of its possible outcomes, one can create a scenario representing one possible realization of the future. Enumeration of all possible combinations of outcomes allows us to represent all scenarios in a tree, with each scenario being a path from the root of the tree to one of its leaves. The nodes visited by each path correspond to values assumed by random parameters in the model.
The scenario tree, shown in Figure 4, has two branching stages: at each of t = 1 and t = 2, the system is either Good (G, all centers available) with probability 0.6, or Bad (B, HP unavailable) with probability 0.4.

Fig. 4. Scenario tree for the genomics workflow. G: all centers available, ; B: HP unavailable, jobs route to HP at . Leaves define the four scenarios .
The four leaf nodes define the scenarios:
• (GG): , all systems available, normal costs.
• (GB): , t = 1 good, t = 2 HP unavailable.
• (BG): , t = 1 bad, t = 2 recovery.
• (BB): , persistent outages.
Mark Asch, Marius Garénaux Gruau, and François Bodin
The operational costs—these could also be expressed in terms of energy consumption if required—for the job execution and network transfers are:
| Job | HP | HP | From To | Cost |
|---|---|---|---|---|
| €100 | €250 | DC DC | €0.50/GB | |
| €200 | €500 | DC DC | €0.50/GB | |
| €150 | €400 | DC HP | €0.20/GB | |
| €100 | €300 | HP DC | €0.10/GB |
In addition, there are fixed storage costs, , for dataset at location in € per GB per stage for any location, equal to €0.05/GB/day.
We can now formulate the multistage stochastic optimization problem in compact formulation, according to the scenario tree, based on (8-12) and (13). Let index the leaf scenarios. Then the three decision variables are:
(1) denoting execution of job j on HPC h in stage t under scenario n,
(2) denoting the transfer of dataset i from d to k in stage t,
(3) denoting the storage of dataset i at location d at the end of stage t.
The objective function is the expectation—probability weighted sum—of the global processing costs , the global transfer costs and the global (fixed coefficient) storage costs,
subject to the following constraints for each scenario n.
(1) Job execution once:
(2) Precedence before :
(3) Data availability needs at execution site):
(4) Data balance at DC :
(5) Output generation creates :
(6) Availability constraints:
where the availability of HPC center h at stage t is a binary value that expresses the availability (0 or 1) as defined in the scenario tree.
Mathematical Modeling of a Cognitive Continuum Digital Shadow for Large-Scale, Cross-Facility Workflows
15

Fig. 5. Multistage stochastic optimization of the genomics workflow. (a) Optimal job placement in each scenario: the reliable but costlier is chosen as a hedge in stage 2, with recourse to the cheaper once availability is observed; only the persistent-outage scenario retains for . (b) Cost decomposition per scenario; the dashed line marks the expected total cost. Scenarios and variables are defined in the text.
(7) Non-anticipativity (critical): at t = 1, scenarios sharing same history must have same decisions,
We execute the program using pyomo [9, 15] and the GLPK LP/MIP Solver 5.0. Execution time on a laptop, for 1888 variables and 976 constraints, is less than 0.1 seconds. The optimal scheduling results for the above data are presented in Figure 5. We observe the following (see details in the Appendix):
• In Stage 1, hedging leads to the choice of the more reliable initially, despite higher cost.
-
Adaptive recourse switches to cheaper when available at stage 2.
-
Data locality is privileged by keeping intermediate data at execution sites to minimize transfers.
-
Non-anticipativity is ensured since the solution cannot “cheat” by using future information.
-
Finally, we obtain a risk-return tradeoff, since the stochastic solution balances expected cost vs. robustness.
The value of this stochastic formulation is quantified by two standard diagnostics [6]. Let RP denote the optimal value of the recourse problem above, WS the (clairvoyant) wait-and-see value obtained by solving each scenario with perfect foresight, and EEV the expected cost of naively implementing the solution of the mean-value problem. Then the expected value of perfect information, EVPI = RP - WS, bounds what one should pay for better availability forecasts—directly pricing the predictive applications of the CCDS—while the value of the stochastic solution, VSS = EEV - RP, measures the cost of ignoring uncertainty altogether. Both are computed routinely by the OPT module; implementations are provided in [3].
We can also perform a multi-objective optimization for this workflow. This would be deterministic case, where we seek an optimal trade-off—or Pareto front—between (for example) minimum time to completion and minimum energy costs, supposing we have such data for each data center and HPC center. Another trade-off could be energy costs vs. center utilization, for example when urgent computing is requested. All of these problems can be formulated and solved by the OPT and SCD modules of the CCDS.
https://www.gnu.org/software/glpk/
Mark Asch, Marius Garénaux Gruau, and François Bodin
16
Admittedly the modeling is the greatest challenge here, but starting from a simple setting—such as the one just described above—it is relatively easy to complexify the model and attain more and more realism. A structured approach for this is proposed in [21].
Detailed use-case applications of the CCDS are presented in [13].
5 Conclusions and outlook
A full exascale workflow cannot be tested or optimized before deployment, since access to HPC, networks and data centers is constrained by cybersecurity and resource-allocation policies, and availability is uncertain. A digital shadow of the continuum is therefore an indispensable planning tool. We have presented its mathematical foundations—a state-space model of the continuum coupled with multistage stochastic and multi-objective optimization—and a software framework realizing them, validated here on a genomics workflow and, at full scale, in the companion use-cases [13].
5.1 Impact
By integrating simulation, scheduling and stochastic optimization into a single Continuum Digital Twin, the CCDS turns ad-hoc, expert-driven deployment choices into a reproducible, quantitative decision process. Its main contributions are robust planning under uncertain resource availability, explicit cost–makespan–energy trade-offs, and a generic System-of-Systems formulation that transfers across HPC centers, large instruments and global cyberinfrastructure.
5.2 Outlook and perspectives
The framework presented here is just a start. The real challenge lies in its adoption by existing (and future) large-scale scientific projects. In this optic, we are currently in contact with the following project groups:
(1) SKA (https://www.skao.int/).
(2) CERN-LHC (https://home.cern/).
(3) GAIA-data (https://www.gaia-data.org/).
Prototypes of the CCDS are currently under development [13] for two concrete pipelines, also documented in [3]: DDFacet, a wide-field radio-interferometric imaging workflow relevant to SKA-precursor data, and NSBAS, an InSAR time-series processing chain within GAIA-Data. Discussions are underway with LHC. These will lead us to work with EuroHPC (https://www.eurohpc-ju.europa.eu/) as the underlying digital infrastructure.
Acknowledgements
As part of the France 2030 initiative, this work has benefited from a national grant managed by the French National Research Agency (Agence Nationale de la Recherche) attributed to the ExaAToW project of the NumPEX PEPR program, under the reference ANR-22-EXNU-0005.
Software and Data Availability
All code, together with explanations and worked examples, is available in the open, executable companion guide Optimal Scheduling for Cross-Facility Workflows [3], https://markasch.github.io/RCP4CDT/, with sources at https://github.com/markasch/RCPSP4CDT.
Mathematical Modeling of a Cognitive Continuum Digital Shadow for Large-Scale, Cross-Facility Workflows
17
AI Disclosure
The code for the example of the genomics workflow was partially generated using Claude 3.5 Sonnet (accessed November 2025). All AI-generated code was reviewed, modified, tested, and revised by the authors, who confirm accuracy and reproducibility of results.
References
[1] ANTYPAS, K. B., BARD, D. J., BLASCHKE, J. P., SHANE CANON, R., ENDERS, B., SHANKAR, M. A., SOMNATH, S., STANSBERRY, D., URAM, T. D., AND WILKINSON, S. R. Enabling discovery data science through cross-facility workflows. In 2021 IEEE International Conference on Big Data (Big Data) (Orlando, FL, USA, Dec. 2021), IEEE, pp. 3671–3680.
[2] ASCH, M. A Toolbox for Digital Twins: From Model-Based to Data-Driven. SIAM, Society for Industrial and Applied Mathematics, Philadelphia, PA, 2022.
[3] ASCH, M. Optimal Scheduling for Cross-Facility Workflows. Online, 2026. Executable companion guide; code at https://github.com/markasch/RCPSP4CDT.
[4] ASCH, M., MOORE, T., BADIA, R., BECK, M., BECKMAN, P., BIDOT, T., BODIN, F., CAPPELLO, F., CHOUDHARY, A., DE SUPINSKI, B., DEELMAN, E., DONGARRA, J., DUBEY, A., FOX, G., FU, H., GIRONA, S., GROPP, W., HEROUX, M., ISHIKAWA, Y., KEAHEY, K., KEYES, D., KRAMER, W., LAVIGNON, J.-F., LU, Y., MATSUOKA, S., MOHR, B., REED, D., REQUENA, S., SALTZ, J., SCHULTESS, T., STEVENS, R., SWANY, M., SZALAY, A., TANG, W., VAROQUAUX, G., VILOTTE, J.-P., WISNIEWSKI, R., XU, Z., AND ZACHAROV, I. Big data and extreme-scale computing: Pathways to convergence-toward a shaping strategy for a future software and data ecosystem for scientific inquiry. The International Journal of High Performance Computing Applications 32, 4 (2018), 435–479.
[5] ATHAVALE, J., BASH, C., BREWER, W., MAITERTH, M., MILOJICIC, D., PETTY, H., AND SARKAR, S. Digital Twins for Data Centers. Computer 57, 10 (Oct. 2024), 151–158.
[6] BIRGE, J. R., AND LOUVEAUX, F. Introduction to Stochastic Programming, Second edition ed. Springer New York, NY, 2011.
[7] BOYD, S., AND VANDENBERGHE, L. Convex Optimization. Cambridge University Press, 2004.
[8] BRUCKER, P. Scheduling Algorithms, Fifth edition ed. Springer Berlin, Heidelberg, 2007.
[9] BYNUM, M. L., HACKEBEIL, G. A., HART, W. E., LAIRD, C. D., NICHOLSON, B. L., SIROLA, J. D., WATSON, J.-P., AND WOODRUFF, D. L. Pyomo-optimization modeling in python, third ed., vol. 67. Springer Science & Business Media, 2021.
[10] CRUZ, F. A., MARTINASSO, M., ET AL. FireREST: a RESTful API to HPC systems. In IEEE/ACM International Workshop on Interoperability of Supercomputing and Cloud Technologies (SuperCompCloud) (2020), pp. 21–26.
[11] ENDERS, B., BARD, D., SNAVELY, C., GERHARDT, L., LEE, J., TOTZKE, B., ANTYPAS, K., BYNA, S., CHEEMA, R., CHOLIA, S., ET AL. Cross-facility science with the Superfacility Project at LBNL. In 2nd IEEE/ACM Annual Workshop on Large-Scale Experiment-in-the-Loop Computing (XLOOP) (2020), pp. 1–7.
[12] FRIEDLAND, B., AND DIRECTOR, S. W. Control Systems Design: An Introduction to State-Space Methods. McGraw-Hill Higher Education, 1985.
[13] GARÉNAUX-GRUAU, M., CERTENAIS, M., BODIN, F., AND ASCH, M. Cognitive continuum digital shadow—use cases, 2026. In preparation.
[14] GARÉNAUX-GRUAU, M., MARTINEAU, O., BODIN, F., AND ASCH, M. Cognitive continuum digital shadow—implementation, 2026. In preparation.
[15] HART, W. E., WATSON, J.-P., AND WOODRUFF, D. L. Pyomo: modeling and solving mathematical programs in python. Mathematical Programming Computation 3, 3 (2011), 219–260.
[16] IEA, P. Energy and ai, 2025.
[17] LI, J., BATCHA, A. M. N., GAINING, B., AND MANSMANN, U. R. An ngs workflow blueprint for dna sequencing data and its application in individualized molecular oncology. Cancer Informatics 14s5 (2015), CIN.S30793. PMID: 27081306.
[18] LUENBERGER, D. G. Introduction to Dynamic Systems, Theory, Models, and Applications. John Wiley & Sons, 1979.
[19] NOCEDAL, J., AND WRIGHT, S. J. Numerical Optimization, 2 ed. Springer Series in Operations Research and Financial Engineering. Springer, 2006.
[20] PINEDO, M. L. Scheduling: Theory, Algorithms, and Systems, 6th edition ed. Springer Cham, 2022.
[21] POWELL, W. B. Reinforcement learning and stochastic optimization: A unified framework for sequential decisions. John Wiley & Sons, 2022.
[22] SHAPIRO, A., DENTCHEVA, D., AND RUSZCZYŃSKI, A. Lectures on Stochastic Programming. SIAM, Society for Industrial and Applied Mathematics, 2009.
[23] TANJO, T., KAWAI, Y., TOKUNAGA, K., OGASAWARA, O., AND NAGASAKI, M. Practical guide for managing large-scale human genome data in research. Journal of Human Genetics 66, 1 (Jan. 2021), 39–52.
[24] UNAT, D., DUBEY, A., JEANNOT, E., AND SHALF, J. The persistent challenge of data locality in the post-exascale era. Computing in Science & Engineering 27, 4 (2025), 19–27.
Mark Asch, Marius Garénaux Gruau, and François Bodin
Appendix: Optimal schedule for the genomics workflow
The model (1888 variables, 976 constraints, of which 208 binary) is solved to integer optimality by GLPK 5.0 in under 0.1 s on a laptop. The expected total cost is €3 995.53. The optimal first-stage decision is identical across scenarios (non-anticipativity): no job is launched at stage 1 and is hedged onto the reliable center HP at stage 2. Recourse then routes , , to the cheaper HP, except in the persistent-outage scenario where remains on HP.
| Scenario | Execution | Transfer | Storage | Total (€) | |
|---|---|---|---|---|---|
| (GG) | 0.36 | 700 | 32.0 | 3 216.25 | 3 948.25 |
| (GB) | 0.24 | 700 | 32.0 | 3 216.25 | 3 948.25 |
| (BG) | 0.24 | 700 | 32.0 | 3 216.25 | 3 948.25 |
| (BB) | 0.16 | 1 000 | 27.5 | 3 216.25 | 4 243.75 |
| Expected total cost | 3 995.53 | ||||
Table 2. Per-scenario cost decomposition (€) of the optimal multistage stochastic schedule. Storage dominates ( 81% of total cost), an immediate, actionable insight for this workflow: reducing intermediate-data retention has far greater leverage than execution-site selection.