MEKAWIRE
ExpertarXiv

Learning Dynamic Games for Cooperative Iterative Tasks

Mark Pustilnik, Francesco Borrelli
From the abstract

We consider cooperative and iterative tasks involving multiple agents whose interactions are modeled as a dynamic game with shared constraints. We propose a general learning framework applicable to nonlinear and nonconvex dynamic games that uses previously executed feasible trajectories to construct a sampled joint safe set and player-specific cost-to-go functions.

From the abstract. Our summary is in progress.

Full paper

Learning Dynamic Games for Cooperative Iterative Tasks

Mark Pustilnik, Francesco Borrelli

Published under CC BY 4.0. Reproduced with attribution; original at arXiv:2610.28901 (PDF).

Abstract

We consider cooperative and iterative tasks involving multiple agents whose interactions are modeled as a dynamic game with shared constraints. We propose a general learning framework applicable to nonlinear and nonconvex dynamic games that uses previously executed feasible trajectories to construct a sampled joint safe set and player-specific cost-to-go functions. At each time step, the agents jointly select a previously sampled terminal state and a Generalized Nash equilibrium used to reach it. A new solution is adopted only if it satisfies a cooperative acceptance rule agreed upon by the players. The framework accommodates individual non-degradation requirements and selection criteria such as weighted costs and Nash bargaining. We show that the proposed framework guarantees recursive feasibility and characterize conditions under which each player’s cost is non-increasing across iterations.

I Introduction

Many robotic systems repeatedly perform cooperative tasks from identical initial conditions, including payload transport and coordinated assembly using multiple manipulators. Previous executions provide trajectory data that can improve subsequent performance. Although the agents cooperate, each may retain its own dynamics, constraints, and objective, while shared constraints couple their decisions. Dynamic games model these interactions. Learning Model Predictive Control (LMPC) exploits repeated single agent tasks by constructing terminal safe sets and cost-to-go functions from successful trajectories, enabling improvement while preserving recursive feasibility [1]. Extending this principle to dynamic games requires addressing multiple equilibria with different player trade-offs: improving one player’s cost may worsen another’s. Learning must therefore determine both how to improve previously executed trajectories and how the players agree on which new solution to adopt. In this work, we consider cooperative iterative tasks in which the players agree in advance on rules for selecting new solutions. Cooperation does not require a common objective: each player retains its individual cost function, while candidate solutions are evaluated according to a jointly agreed criterion. Individual non-degradation can determine admissibility, while weighted costs or Nash bargaining (NB) select among admissible candidates. We propose a general learning framework for dynamic games where each agent uses previously executed feasible joint trajectories to construct a sampled joint safe set. At each time step, candidate solutions connect the current joint state to a previously visited joint state, after which the remainder of a trajectory from a previous successful iteration can be reused. Since the terminal state is selected from a finite set of previously sampled states, the learning problem naturally includes a discrete decision layer in addition to the continuous dynamic-game equilibrium computation.

The framework accommodates nonlinear dynamics and nonconvex costs and constraints, starting from an initial successful feasible trajectory. The resulting performance depends on the initial trajectory, sampled states, and candidates returned by the game solver. The contributions of this paper are:

  1. A learning framework for cooperative iterative dynamic games with shared constraints, jointly selecting terminal occurrences and equilibrium candidates using a pre-agreed cooperative rule.
  2. Recursive-feasibility and individual non-degradation guarantees under stated conditions, supported by an explicitly retained feasible continuation.
  3. A nonlinear, nonconvex three-player demonstration comparing equilibrium exploration and cooperative selection under shared collision-avoidance constraints.

II Related Work

Learning from repeated tasks has been studied through Iterative Learning Control (ILC) [2, 3], including robust formulations that account for non-repetitive disturbances [4], as well as through Batch-MPC [5, 6]. Extensions of LMPC have considered simultaneous improvement of multiple objectives [7], decentralized multi-agent control under shared constraints [8], and non-cooperative distributed MPC with iterative learning [9]. In games with coupled feasible sets, generalized Nash equilibria (GNEs) provide the corresponding solution concept. Normalized equilibria impose a common structure on the shared-constraint multipliers across players [10, 11], whereas non-normalized equilibria enlarge the set of candidate solutions by allowing more general multiplier allocations [12]. Learned terminal information has also been incorporated into generalized Nash games [13], while cooperative criteria such as Nash bargaining can be used to compare candidate outcomes [14].

Iterative learning exploits repeated executions to improve performance, while equilibrium selection addresses trade-offs among players. This work combines these perspectives through cooperative selection of terminal occurrences and equilibrium candidates using stored joint trajectories. Feasible continuations and player-wise acceptance support recursive feasibility and individual non-degradation, even when candidate generation is incomplete. The retained backup need not itself be an equilibrium; equilibrium selection determines which candidate trade-offs are explored.

III Problem Formulation

We consider a cooperative task that is executed repeatedly. Each execution, referred to as an iteration, starts from the same initial joint state and terminates when the players reach a common target joint state. The iterations are indexed by j, and time within an iteration is indexed by k. The task is modeled as a discrete-time dynamic game with players i\in\mathcal{M}:=\{1,\ldots,M\}, deterministic and exactly known dynamics, and game data that remain unchanged across iterations. At time k of iteration j, the joint state and input are

x_{k}^{j}:=\operatorname{col}(x_{1,k}^{j},\ldots,x_{M,k}^{j}),\qquad u_{k}^{j}:=\operatorname{col}(u_{1,k}^{j},\ldots,u_{M,k}^{j}).

Every iteration starts from x_{0}^{j}=x_{S} and seeks to reach x_{F}:=\operatorname{col}(x_{1,F},\ldots,x_{M,F}). For an iteration completed in finite time, define

T^{j}:=\min\{k\geq 0:x_{k}^{j}=x_{F}\}.
(1)
Assumption 1 (Nonnegative Stage Costs)

For every player i, the stage cost satisfies

\ell_{i}(x,u)\geq 0,\qquad\ell_{i}(x_{F},u_{F})=0
(2)

for all feasible (x,u), where u_{F} is a feasible terminal input that maintains the system at x_{F}.

At time k of iteration j, given a prediction horizon N, player i solves

\displaystyle\min_{\mathbf{x}_{i,k}^{j},\mathbf{u}_{i,k}^{j}}\quad \\ \displaystyle J_{i,k}^{j}:=\sum_{\tau=k}^{k+N-1}\ell_{i}(x_{\tau|k}^{j},u_{\tau|k}^{j})+V_{i}(x_{k+N|k}^{j}) \\ \displaystyle x_{i,k|k}^{j}=x_{i,k}^{j} \\ \displaystyle x_{i,\tau+1|k}^{j}=f_{i}(x_{i,\tau|k}^{j},u_{i,\tau|k}^{j}),~\tau=k,...,k+N-1 \\ \displaystyle g_{i}(x_{i,\tau|k}^{j},u_{i,\tau|k}^{j})\leq 0,~\tau=k,...,k+N-1 \\ \displaystyle s(x_{\tau|k}^{j},u_{\tau|k}^{j})\leq 0,~\tau=k,...,k+N-1
(3a) (3b) (3c) (3d) (3e)

Here, \ell_{i} and V_{i} are player i’s stage and terminal costs, which may depend on the joint state and input (no objective separability is assumed). The functions f_{i}, g_{i}, and s describe individual dynamics, private constraints, and shared constraints, respectively. Additive cost terms independent of a player’s own strategy do not affect its best response, but remain part of its realized cost and stored cost-to-go and can therefore influence cooperative candidate selection.

III-A Generalized Nash Equilibrium

Let \mathbf{z}_{i,k}^{j}:=(\mathbf{x}_{i,k}^{j},\mathbf{u}_{i,k}^{j}) denote player i’s predicted strategy, and let \mathcal{Z}_{i,k}^{j}(\mathbf{z}_{-i,k}^{j}) be its feasible set defined by (3b)-(3e) where the subscript -i denotes all players except i. A joint strategy \mathbf{z}_{k}^{j,\star} is a generalized Nash equilibrium (GNE) if

\mathbf{z}_{i,k}^{j,\star}\in\underset{\mathbf{z}_{i,k}^{j}\in\mathcal{Z}_{i,k}^{j}(\mathbf{z}_{-i,k}^{j,\star})}{\arg\min}J_{i,k}^{j}\bigl(\mathbf{z}_{i,k}^{j},\mathbf{z}_{-i,k}^{j,\star}\bigr),\quad\forall i\in\mathcal{M}.
(4)

Thus, no player can lower its cost through a feasible unilateral action. For differentiable games, equilibrium candidates can be computed using the players’ combined KKT conditions [10, 11]. For compactness, let h_{i}(\mathbf{z}_{i})=0 collect player i’s dynamics and other equality constraints over the prediction horizon, let g_{i}(\mathbf{z}_{i})\leq 0 collect its private inequality constraints, and let s(\mathbf{z})\leq 0 collect the shared constraints. The Lagrangian of player i is then

\displaystyle\mathcal{L}_{i}= \\ \displaystyle J_{i,k}^{j}+\mu_{i}^{\top}h_{i}+\lambda_{i}^{\top}g_{i}+\sigma_{i}^{\top}s,

where \mu_{i}, \lambda_{i}, and \sigma_{i} are the dual variables associated with the equality, private inequality, and shared inequality constraints, respectively. Under a suitable constraint qualification (see [11] for details), every GNE satisfies the combined KKT conditions:

\displaystyle\nabla_{\mathbf{z}_{i}}\mathcal{L}_{i}=0, \\ \displaystyle\forall i\in\mathcal{M}, \\ \displaystyle h_{i}(\mathbf{z}_{i})=0, \\ \displaystyle\forall i\in\mathcal{M}, \\ \displaystyle 0\leq\lambda_{i}\perp-g_{i}(\mathbf{z}_{i})\geq 0, \\ \displaystyle\forall i\in\mathcal{M}, \\ \displaystyle 0\leq\sigma_{i}\perp-s(\mathbf{z}_{1},\ldots,\mathbf{z}_{M})\geq 0, \\ \displaystyle\forall i\in\mathcal{M}.
(6a) (6b) (6c) (6d)

These conditions are sufficient when each player’s problem is convex in its own strategy, otherwise they identify stationary candidates that need not be GNEs. The dynamic game may admit multiple GNEs. The learning framework developed in this work does not require the equilibrium to be unique.

III-B Cooperative Iterative Learning Objective

For an iteration completed at time T^{j}, player i’s realized cost is

\mathcal{J}_{i}^{j}:=\sum_{k=0}^{T^{j}-1}\ell_{i}(x_{k}^{j},u_{k}^{j})+V_{i}(x_{T^{j}}^{j}).
(7)

Starting from an initial successful feasible trajectory from x_{S} to x_{F}, the objective is to use previous executions to improve performance while ensuring:

  1. Recursive feasibility: a feasible continuation to x_{F} remains available at every time step.
  2. Cooperative acceptance: new strategies satisfy the players’ pre-agreed admissibility rule.
  3. Individual non-degradation: under the corresponding acceptance rule, successive completed iterations satisfy \mathcal{J}_{i}^{j}\leq\mathcal{J}_{i}^{j-1},\qquad\forall i\in\mathcal{M}. (8)

In the learning formulation below, each GNE is an open-loop equilibrium of the finite-horizon game conditional on the selected terminal joint state. This does not imply that the concatenated full-task trajectory or the resulting receding-horizon policy is a Nash equilibrium.

IV Learning Dynamic Game Method

At each time step, the players jointly select a terminal joint state from the sampled safe set and an equilibrium candidate that reaches it. These two choices are coupled: each terminal state defines a distinct terminal-constrained game, and hence its own set of equilibria, which may be infinite. Each equilibrium candidate is an N-step predicted joint trajectory ending at the selected terminal state. Appending to it the stored trajectory from that terminal state to x_{F} yields a complete joint trajectory from the current state to the target, which is evaluated under the agreed admissibility and selection rules. If no candidate is accepted, the players continue along the retained feasible backup.

IV-A Sampled Joint Safe Set and Cost-to-Go

Terminal safe sets provide feasible continuations beyond the prediction horizon, while terminal cost-to-go information accounts for the remaining task cost. Computing these quantities directly can be difficult for nonlinear, constrained systems. Following LMPC [1], we construct a sampled joint safe set and player-specific costs-to-go from previously successful trajectories. An iteration is successful if it reaches x_{F} in finite time while satisfying all private and shared constraints. Let \mathcal{I}^{j} denote the successful iterations available up to iteration j, with T^{l} the completion time of iteration l. The sampled joint safe set is

\mathcal{SS}^{j}:=\bigcup_{l\in\mathcal{I}^{j}}\bigcup_{t=0}^{T^{l}}\left\{x_{t}^{l}\right\}
(9)

Every state in \mathcal{SS}^{j} has a known feasible continuation to x_{F}. For each sampled occurrence x_{t}^{l}, player i’s realized cost-to-go is

Q_{i,t}^{l}:=\sum_{\tau=t}^{T^{l}-1}\ell_{i}(x_{\tau}^{l},u_{\tau}^{l})+V_{i}(x_{T^{l}}^{l})
(10)

To associate each occurrence with its continuation and cost vector, define the trajectory database

\mathcal{D}^{j}:=\left\{(l,t)\;\middle|\;l\in\mathcal{I}^{j},\quad t=0,\ldots,T^{l}\right\}.
(11)

Each entry (l,t)\in\mathcal{D}^{j} identifies the joint state x_{t}^{l}, the costs Q_{i,t}^{l}, and the stored state-input suffix from that state to x_{F}. Repeated visits to the same joint state remain distinct entries because their continuations and cost vectors may differ. Reconnecting a feasible predicted trajectory to an entry therefore provides a complete feasible continuation, without requiring a new equilibrium to be found at every subsequent step.

Remark 1 (Retained Feasible Backup)

An executed trajectory may combine segments generated using different terminal states and GNE parameterizations. Its continuation therefore need not be a GNE for any single parameterization and may not be recovered by resolving a dynamic game. The method explicitly retains the feasible state-input continuation as a backup.

IV-B Mixed-Integer Dynamic Game Formulation

At time k of iteration j, the players select a terminal occurrence from \mathcal{D}^{j-1}=\{q_{1},\ldots,q_{n_{s}}\}, where q_{r}=(j_{r},k_{r}) identifies a stored joint state, its continuation, and player-specific costs-to-go. The common binary vector \bm{\delta}=(\delta_{1},\ldots,\delta_{n_{s}}) satisfies

\sum_{r=1}^{n_{s}}\delta_{r}=1,\qquad\delta_{r}\in\{0,1\},
(12)

selecting exactly one occurrence to be reached after N prediction steps. For fixed \bm{\delta}, player i solves

\displaystyle\min_{\mathbf{x}_{i,k}^{j},\mathbf{u}_{i,k}^{j}} \\ \displaystyle~J_{i,k}^{j}(\bm{\delta})=\sum_{\tau=k}^{k+N-1}\ell_{i}\left(x_{\tau|k}^{j},u_{\tau|k}^{j}\right)+\sum_{r=1}^{n_{s}}\delta_{r}Q_{i,k_{r}}^{j_{r}} \\ \displaystyle x_{i,\tau+1|k}^{j}=f_{i}\left(x_{i,\tau|k}^{j},u_{i,\tau|k}^{j}\right),~\tau=k,\ldots,k+N-1 \\ \displaystyle x_{i,k|k}^{j}=x_{i,k}^{j} \\ \displaystyle g_{i}\left(x_{i,\tau|k}^{j},u_{i,\tau|k}^{j}\right)\leq 0,~\tau=k,...,k+N-1 \\ \displaystyle s\left(x_{\tau|k}^{j},u_{\tau|k}^{j}\right)\leq 0,~\tau=k,...,k+N-1 \\ \displaystyle x_{i,k+N|k}^{j}=\sum_{r=1}^{n_{s}}\delta_{r}x_{i,k_{r}}^{j_{r}}
(13a) (13b) (13c) (13d) (13e) (13f)

The objective combines the predicted horizon cost with the selected continuation cost, while (13f) enforces exact reconnection to the stored joint state. For fixed \bm{\delta}, the continuation cost is constant in the inner game, but it influences what terminal joint state is eventually selected. In the ideal formulation, a candidate is a pair

\left(\bm{\delta},\mathbf{z}_{k}^{j,\star}(\bm{\delta})\right),
(14)

where \bm{\delta} satisfies (12) and \mathbf{z}_{k}^{j,\star}(\bm{\delta}) is a selected GNE of (13). Terminal selection is discrete, while the corresponding strategies are continuous. Since each terminal selection may admit multiple GNEs, the cooperative rule selects among both terminal occurrences and equilibrium candidates.

IV-C GNE Parameterization

For a given terminal-state selection, the corresponding dynamic game may admit multiple GNEs. We explore equilibrium candidates using the shared-multiplier parameterization of [12]. For a common multiplier \sigma\in\mathbb{R}_{+}^{m_{s}}, define

A_{i}=\operatorname{diag}(a_{i,1},\ldots,a_{i,m_{s}}),\qquad a_{i,r}>0,
(15)

and player-specific shared multipliers

\sigma_{i}=A_{i}\sigma.
(16)

For each fixed terminal selection, the parameterized Lagrangian is (h_{i} also includes the terminal equality (13f)).

\mathcal{L}_{i}=J_{i,k}^{j}(\bm{\delta})+\mu_{i}^{\top}h_{i}+\lambda_{i}^{\top}g_{i}+(A_{i}\sigma)^{\top}s.
(17)

For fixed \mathcal{A}:=\{A_{1},\ldots,A_{M}\}, candidates are computed from the KKT conditions:

\displaystyle\nabla_{\mathbf{z}_{i}}\mathcal{L}_{i}=0, \\ \displaystyle\forall i\in\mathcal{M} \\ \displaystyle h_{i}(\mathbf{z}_{i})=0, \\ \displaystyle\forall i\in\mathcal{M} \\ \displaystyle 0\leq\lambda_{i}\perp-g_{i}(\mathbf{z}_{i})\geq 0, \\ \displaystyle\forall i\in\mathcal{M} \\ \displaystyle 0\leq\sigma\perp-s(\mathbf{z}_{1},\ldots,\mathbf{z}_{M})\geq 0
(18a) (18b) (18c) (18d)

Positive diagonal scaling preserves shared-constraint complementarity while allowing different player multipliers. Varying \mathcal{A} explores candidate equilibria, although a solution need not exist for every allocation. In nonconvex games, KKT solutions remain stationary candidates and do not certify GNEs. To reduce the parameter dimension, we restrict

A_{i}=a_{i}I,\qquad\sigma_{i}=a_{i}\sigma,\qquad a_{i}>0.
(19)

A common rescaling of all a_{i} can be absorbed into \sigma, so imposing

\sum_{i=1}^{M}a_{i}=1
(20)

removes this redundancy and leaves M-1 independent allocation parameters. This scalar parameterization recovers the KKT structure of Rosen’s r-normalized equilibria [10], with r_{i}\propto 1/a_{i}.

IV-D Cooperative Solution Selection

At each time k of iteration j, the players must decide whether to replace the retained backup and, if so, with which candidate. Because each player keeps its own cost function, candidates cannot in general be ranked by a single objective. Instead, before the task begins, the players agree on two rules:

  1. an admissibility rule, which determines the candidates acceptable to every player, and
  2. a selection rule, which chooses one candidate among the admissible ones.

The selected candidate becomes the new backup. If no candidate is admissible, the players continue along the current backup.

Candidate costs: Let \mathcal{C}^{j}_{k} denote the set of primal-feasible candidates computed at time k of iteration j. Although the database \mathcal{D}^{j-1} is finite, continuous multiplier allocations and equilibrium non-uniqueness may yield infinitely many candidates. Each candidate c\in\mathcal{C}^{j}_{k} selects a terminal occurrence q_{r}=(j_{r},k_{r}) and, together with the stored trajectory from x^{j_{r}}_{k_{r}} to x_{F}, defines a complete joint trajectory from the current state to the target. Player i’s cost along this trajectory is

\hat{J}^{j}_{i,k}(c):=\sum_{\tau=k}^{k+N-1}\ell_{i}\big(x^{j,c}_{\tau|k},u^{j,c}_{\tau|k}\big)+Q^{j_{r}}_{i,k_{r}}.
(21)

Let J^{B,j}_{i,k} denote player i’s remaining cost along the retained backup. The rules below compare each candidate with the backup through these quantities.

Admissibility rule (individual non-degradation): A candidate is admissible if it does not increase any player’s remaining cost relative to the backup:

\mathcal{C}^{j}_{k,\mathrm{adm}}:=\big\{c\in\mathcal{C}^{j}_{k}\;:\;\hat{J}^{j}_{i,k}(c)\leq J^{B,j}_{i,k},\ \forall i\in\mathcal{M}\big\}.
(22)

This rule underlies the non-degradation guarantee of Theorem 2.

Selection rule: Among admissible candidates, we consider two alternatives.

(a) Weighted cost. The players minimize a weighted sum of their costs,

c^{\star}\in\arg\min_{c\in\mathcal{C}^{j}_{k,\mathrm{adm}}}\sum_{i=1}^{M}w_{i}\hat{J}^{j}_{i,k}(c),\qquad w_{i}\geq 0,\ \sum_{i=1}^{M}w_{i}=1.
(23)

(b) Nash bargaining. Following [14], each candidate is evaluated by the improvements it offers the players relative to a disagreement point. Here, disagreement means continuing along the current backup, so

d_{i}:=J^{B,j}_{i,k},\qquad\Delta_{i}(c):=d_{i}-\hat{J}^{j}_{i,k}(c).
(24)

Admissibility guarantees \Delta_{i}(c)\geq 0 for all i. The standard Nash product \prod_{i}\Delta_{i}(c) rewards improvements for all players without requiring them to be equal. However, if some player cannot improve under any admissible candidate, the product is identically zero and cannot distinguish candidates that benefit the other players. We therefore use the regularized criterion

c^{\star}\in\arg\max_{c\in\mathcal{C}^{j}_{k,\mathrm{adm}}}\prod_{i=1}^{M}\big(\Delta_{i}(c)+\epsilon\big),\qquad\epsilon>0.
(25)

The regularization affects only the ranking of admissible candidates. It does not relax admissibility, so candidates that increase any player’s cost remain excluded. Because the disagreement point is the current backup, it is updated whenever a candidate is accepted or the backup is advanced.

Definition 1 (Adopted Candidate)

Let c\in\mathcal{C}^{j}_{k} be a candidate with terminal occurrence q_{r}=(j_{r},k_{r}) and predicted trajectory \{x^{j,c}_{\tau|k},u^{j,c}_{\tau|k}\}_{\tau=k}^{k+N-1}, x^{j,c}_{k+N|k}. The candidate c is adopted at time k of iteration j if:

  1. it is verified primal feasible, i.e., its predicted trajectory satisfies the dynamics (13b), the initial condition (13c), the private constraints (13d), the shared constraints (13e), and the terminal condition (13f);
  2. it is admissible, i.e., c\in\mathcal{C}^{j}_{k,\mathrm{adm}}; and
  3. it is chosen by the agreed selection rule.

Upon adoption, the retained backup is replaced by the complete trajectory of c, obtained by following its predicted trajectory from x^{j}_{k} to x^{j_{r}}_{k_{r}} and then the stored trajectory \{x^{j_{r}}_{t},u^{j_{r}}_{t}\}_{t=k_{r}}^{T^{j_{r}}} from x^{j_{r}}_{k_{r}} to x_{F}. If no candidate satisfies 1)–3), no candidate is adopted and the current backup is retained.

Proposition 1 (Feasibility of Adopted Candidates)

If a candidate c is adopted at time k of iteration j, then its complete trajectory is a feasible joint trajectory from x^{j}_{k} to x_{F}, i.e., it satisfies the dynamics, private constraints, and shared constraints at every time step. Moreover, its cost for player i equals \hat{J}^{j}_{i,k}(c) in (21).

Proof:

By condition 1) of Definition 1, the predicted trajectory of c starts at x^{j}_{k}, satisfies the dynamics, private constraints, and shared constraints over the horizon, and ends at x^{j,c}_{k+N|k}=x^{j_{r}}_{k_{r}}. Since q_{r}\in\mathcal{D}^{j-1} belongs to a successful iteration, the stored trajectory from x^{j_{r}}_{k_{r}} satisfies the same constraints and reaches x_{F}. The two segments share the state x^{j_{r}}_{k_{r}}, so their concatenation is a feasible joint trajectory from x^{j}_{k} to x_{F}. Its cost for player i is the predicted stage cost over the horizon plus the stored cost-to-go Q^{j_{r}}_{i,k_{r}} in (10), which is \hat{J}^{j}_{i,k}(c). ∎

Assumption 2 (Synchronous Decisions)

All players share the trajectory database \mathcal{D}^{j-1} and the current backup, apply the admissibility and selection rules to the same candidate set with a common deterministic tie-breaking rule, and adopt a new candidate at the same time step. Communication is reliable and synchronous.

IV-E Practical Solution Considerations

The learning problem combines discrete terminal selection with continuous allocation and equilibrium selection. Let \Phi denote the cooperative criterion in minimization form, such as the negative regularized Nash product. Writing c=(\bm{\delta},\mathbf{z}_{k}^{j,\star}), the problem can be written as

\displaystyle\min_{\bm{\delta},\mathbf{a},\mathbf{z}_{k}^{j,\star}} \\ \displaystyle\Phi\!\left(\hat{J}_{1,k}^{j}(c),\ldots,\hat{J}_{M,k}^{j}(c)\right) \\ \displaystyle\text{s.t.} \\ \displaystyle\sum_{r=1}^{n_{s}}\delta_{r}=1,\qquad\delta_{r}\in\{0,1\}, \\ \displaystyle\sum_{i=1}^{M}a_{i}=1,\qquad a_{i}>0, \\ \displaystyle\mathbf{z}_{k}^{j,\star}\in\operatorname{GNE}(\bm{\delta},\mathbf{a}), \\ \displaystyle\hat{J}_{i,k}^{j}(c)\leq J_{i,k}^{B,j},\qquad\forall i\in\mathcal{M}.

Here, \operatorname{GNE}(\bm{\delta},\mathbf{a}) denotes equilibria of the selected terminal-constrained game admitting shared-constraint multipliers \sigma_{i}=a_{i}\sigma. In practice, we sample the dual variables scaling factors using a finite grid \mathcal{A}_{\mathrm{grid}}=\{\mathbf{a}^{(1)},\ldots,\mathbf{a}^{(n_{a})}\} satisfying (20). For each pair (q_{r},\mathbf{a}^{(p)})\in\mathcal{D}^{j-1}\times\mathcal{A}_{\mathrm{grid}}, we formulate (18) as a mixed complementarity problem (MCP) and solve it using PATH [15]. Candidates are checked for primal feasibility and individual admissibility, and the accepted candidate minimizing \Phi is selected. Its prefix and stored suffix become the new backup, whose first input is applied. If no candidate is accepted, the existing backup is retained. With one MCP attempt per pair, each update requires at most n_{s}n_{a} solves. These problems can be solved in parallel. A finer grid samples the allocation space more densely but increases computation. The present implementation is a proof of concept and is not intended for real-time execution. Nonnegative stage costs also permit pruning before candidate generation. If

Q_{i,k_{r}}^{j_{r}}>J_{i,k}^{B,j}
(27)

for any player i, every candidate using occurrence q_{r} violates individual non-degradation. That occurrence can therefore be skipped at the current update.

V Theoretical Guarantees

We establish recursive feasibility and individual non-degradation by extending the LMPC continuation argument [1] to joint trajectories. The key object is an explicitly retained feasible backup: an adopted candidate replaces it with a predicted prefix concatenated with a stored successful suffix. Otherwise, the current backup is followed. This construction preserves a feasible continuation independently of whether a new equilibrium candidate can be computed. Let J_{i,k}^{\mathrm{B},j} denote player i’s remaining cost under the retained backup at time k of iteration j. At the beginning of iteration j, the previous successful trajectory initializes the backup, so that

J_{i,0}^{\mathrm{B},j}=\mathcal{J}_{i}^{j-1}.
(28)

For a candidate connecting to occurrence q_{r}=(j_{r},k_{r}), the predicted prefix and stored suffix define a complete continuation whose cost is \hat{J}_{i,k}^{j}(c) in (21).

Theorem 1 (Recursive Feasibility)

Suppose that an initial feasible joint trajectory from x_{S} to x_{F} is available. Assume that the system dynamics are deterministic and exactly known, and that the dynamics and constraints are unchanged across iterations. Then the proposed learning scheme is recursively feasible, i.e., at every time step of every iteration a feasible continuation from the current joint state to x_{F} is available.

Proof:

The proof follows the standard shift-and-concatenation argument underlying LMPC recursive feasibility [1], extended here to joint trajectories of the dynamic game. At time k=0 of the first learning iteration, the initially available successful trajectory provides a feasible backup from x_{S} to x_{F}. Suppose a feasible backup from x_{k}^{j} to x_{F} is available at time k of iteration j. If no new candidate is adopted, the backup is retained. If a new candidate c is adopted, the backup is replaced by the complete trajectory of c, which is a feasible trajectory from x^{j}_{k} to x_{F} by Proposition 1. In both cases, the first input of the resulting backup is applied. Since the dynamics are deterministic and exactly known, the realized state x^{j}_{k+1} coincides with the next state of the backup, so its remaining portion is a feasible continuation from x^{j}_{k+1} to x_{F}. The claim follows by induction over time steps and iterations. ∎

Theorem 2 (Individual Non-Degradation)

Suppose the conditions of Theorem 1 hold. Furthermore, suppose that a new candidate c is adopted only if

\hat{J}_{i,k}^{j}(c)\leq J_{i,k}^{\mathrm{B},j},\qquad\forall i\in\mathcal{M},
(29)

where J_{i,k}^{\mathrm{B},j} is the remaining cost of the currently retained feasible backup. Then, for every iteration j completed in finite time, the realized cost of every player satisfies,

\mathcal{J}_{i}^{j}\leq\mathcal{J}_{i}^{j-1},\qquad\forall i\in\mathcal{M}.
(30)
Proof:

The argument extends the LMPC iteration-cost monotonicity construction of [1] to player-specific costs in the cooperative dynamic-game setting. For player i, define the cost accumulated during iteration j up to, but not including, time k as

S_{i,k}^{j}:=\sum_{\tau=0}^{k-1}\ell_{i}(x_{\tau}^{j},u_{\tau}^{j}).
(31)

Consider the sum of the cost already incurred and the remaining cost of the currently retained backup,

S_{i,k}^{j}+J_{i,k}^{\mathrm{B},j}.
(32)

Suppose first that no new candidate is adopted at time k. The first input of the current backup is applied and the backup is shifted by one time step. Therefore,

\displaystyle J_{i,k+1}^{\mathrm{B},j} \\ \displaystyle=J_{i,k}^{\mathrm{B},j}-\ell_{i}(x_{k}^{j},u_{k}^{j}), \\ \displaystyle S_{i,k+1}^{j} \\ \displaystyle=S_{i,k}^{j}+\ell_{i}(x_{k}^{j},u_{k}^{j}).
(33) (34)

Consequently,

S_{i,k+1}^{j}+J_{i,k+1}^{\mathrm{B},j}=S_{i,k}^{j}+J_{i,k}^{\mathrm{B},j}.
(35)

Suppose instead that a candidate c is adopted. Its predicted prefix and stored suffix become the new backup. By (29), applying its first input gives

J_{i,k+1}^{\mathrm{B},j}=\hat{J}_{i,k}^{j}(c)-\ell_{i}(x_{k}^{j},u_{k}^{j})\leq J_{i,k}^{\mathrm{B},j}-\ell_{i}(x_{k}^{j},u_{k}^{j}).
(36)

Hence,

S_{i,k+1}^{j}+J_{i,k+1}^{\mathrm{B},j}\leq S_{i,k}^{j}+J_{i,k}^{\mathrm{B},j}.
(37)

Thus, in either case, S_{i,k}^{j}+J_{i,k}^{\mathrm{B},j} is non-increasing along the iteration. At the beginning of iteration j, using (28),

S_{i,0}^{j}+J_{i,0}^{\mathrm{B},j}=\mathcal{J}_{i}^{j-1}.
(38)

If iteration j completes at time T^{j}, any remaining backup suffix ends at x_{F} and has nonnegative stage costs by Assumption 1. Its remaining cost therefore satisfies J_{i,T^{j}}^{\mathrm{B},j}\geq V_{i}(x_{F}). Combining this with the preceding inequalities gives

\mathcal{J}_{i}^{j}=S_{i,T^{j}}^{j}+V_{i}(x_{F})\leq S_{i,T^{j}}^{j}+J_{i,T^{j}}^{\mathrm{B},j}\leq\mathcal{J}_{i}^{j-1},
(39)

for every player i\in\mathcal{M}. ∎

Remark 2

The guarantees of Theorems 1 and 2 do not require exhaustive exploration of the GNE set or a globally optimal solution of the outer selection problem. The discretization of the scaling parameters affects which improving candidates can be discovered, but not recursive feasibility or individual non-degradation. The individual non-degradation argument allows non-separable objectives and follows from additive costs and player-wise acceptance (29), with Assumption 1 ensuring that discarding any remaining suffix at completion cannot increase the cost. Under Assumption 1, finite-time completion additionally follows if \sum_{i}\ell_{i}(x,u)\geq\rho(x) for every feasible (x,u), where \rho(x_{F})=0 and \rho(x)\geq c>0 whenever x\neq x_{F}. Indeed, every backup has remaining cost at least V_{i}(x_{F}), so the proof of Theorem 2 gives

kc\leq\sum_{i}S_{i,k}^{j}\leq\sum_{i}\bigl(\mathcal{J}_{i}^{j-1}-V_{i}(x_{F})\bigr)

for every k before completion. Since the right-hand side is finite, infinitely many non-terminal steps are impossible. Nonnegative stage costs also justify the terminal-state pruning rule. For nonconvex games, the recursive-feasibility and non-degradation guarantees apply to any computed KKT/MCP candidate that is verified to satisfy the primal constraints and the acceptance condition; certification of global best-response optimality is not required for these two guarantees. If no acceptable candidate is found, the existing feasible backup is retained.

VI Numerical Example and Results

VI-A Three-Player Cooperative Motion Planning

This example is based on the example from [1]. We consider three agents repeatedly moving between initial and final states in a shared planar environment containing an elliptical obstacle. Each agent has its own target and cost function, while collision avoidance and shared bounds on speed and longitudinal actuation couple the players’ decisions. The example uses a nonlinear unicycle model with heading as a state and heading rate as a control input. For player i\in\{1,2,3\}, the state and input are

x_{i}=[p_{x,i},\;p_{y,i},\;v_{i},\;\psi_{i}]^{\top},\qquad u_{i}=[a_{i},\;\omega_{i}]^{\top},
(40)

where v_{i} is the forward speed, \psi_{i} is the heading, a_{i} is the commanded longitudinal acceleration, and \omega_{i} is the heading rate. The continuous-time dynamics include quadratic drag:

\displaystyle\dot{p}_{x,i} \\ \displaystyle=v_{i}\cos\psi_{i}, \\ \displaystyle\dot{p}_{y,i} \\ \displaystyle=v_{i}\sin\psi_{i}, \\ \displaystyle\dot{v}_{i} \\ \displaystyle=a_{i}-c_{D}v_{i}^{2}, \\ \displaystyle\dot{\psi}_{i} \\ \displaystyle=\omega_{i},

with c_{D}=0.25\,\mathrm{m}^{-1}. The dynamics are discretized by fourth-order Runge-Kutta integration with sampling time \Delta t=0.25\,\mathrm{s} and piecewise-constant inputs.

The private constraints are

\displaystyle v_{i}\geq 0,\qquad|\omega_{i}|\leq\frac{\pi}{2}\,\mathrm{rad/s}, \\ \displaystyle\frac{(p_{x,i}-1)^{2}}{6^{2}}+\frac{p_{y,i}^{2}}{2^{2}}\geq 1,

where the position coordinates in the obstacle constraint are expressed in meters. Thus, the obstacle is centered at (1,0)\,\mathrm{m} and has semi-axes 6\,\mathrm{m} and 2\,\mathrm{m}. The players are coupled through the shared constraints

\displaystyle\sum_{i=1}^{3}v_{i}^{2}\leq 30[m/s]^{2},\quad\sum_{i=1}^{3}a_{i}^{2}\leq 5[m/s^{2}]^{2}, \\ \displaystyle\|p_{i}-p_{j}\|_{2}^{2}\geq d_{\mathrm{sep}}^{2},\quad i\neq j,\quad d_{\mathrm{sep}}=2[m]

where p_{i}=[p_{x,i},p_{y,i}]^{\top}. The speed bound is a joint quadratic budget. These budgets create interactions even when collision avoidance is inactive. The obstacle and pairwise separation constraints make the feasible set nonconvex, in addition to the nonlinear dynamics. Constraints are imposed at the discrete prediction nodes. The initial and target positions and headings are listed in Table I. Headings are shown in degrees for readability and expressed in radians in the dynamics.

TABLE I: Initial and target positions and headings.
  • 1
    State
    Initial
    Position [m]
    (0,-9)
    Velocity[m/s]
    0.25
    Heading
    135^{\circ}
  • No data
    State
    Target
    Position [m]
    (0,9)
    Velocity[m/s]
    0
    Heading
    90^{\circ}
  • 2
    State
    Initial
    Position [m]
    (4.5,4.5)
    Velocity[m/s]
    0.25
    Heading
    180^{\circ}
  • No data
    State
    Target
    Position [m]
    (-9,-9)
    Velocity[m/s]
    0
    Heading
    -135^{\circ}
  • 3
    State
    Initial
    Position [m]
    (-4.5,4.5)
    Velocity[m/s]
    0.25
    Heading
    45^{\circ}
  • No data
    State
    Target
    Position [m]
    (9,-9)
    Velocity[m/s]
    0
    Heading
    -90^{\circ}

Each player uses the stage cost

\ell_{i}(x_{i},u_{i})=(x_{i}-x_{i,F})^{\top}Q(x_{i}-x_{i,F})+u_{i}^{\top}Ru_{i}+\rho_{i}(x_{i}),
(44)

where

Q=\operatorname{diag}(0.1,0.1,0,0),\qquad R=\operatorname{diag}(0.1,0.1),

and

\rho_{i}(x_{i})=\begin{cases}\Delta t,&x_{i}\neq x_{i,F},\\
0,&\text{otherwise},\end{cases}
(45)

The cost penalizes position error, control effort and elapsed time outside the target joint state. Speed and heading are not directly penalized. \rho_{i}(x_{i}) is part of the cost function which is solved by the dynamic game numerical solver even though it is discontinuous.

VI-B Numerical Solution

The prediction horizon is N=5, corresponding to 1.25\,\mathrm{s}. Learning is initialized with a feasible trajectory that completes the task. Each sampled terminal occurrence is stored together with its joint continuation, which provides the backup plan. Let \bm{\alpha}=(\alpha_{1},\alpha_{2},\alpha_{3}) denote the multiplier allocation, with A_{i}=\alpha_{i}I and \alpha_{1}+\alpha_{2}+\alpha_{3}=1. The multiple-equilibrium configurations use 16 allocations:

\displaystyle\mathcal{A}_{\mathrm{grid}}={}\operatorname{Perm}\big\{ \\ \displaystyle(\tfrac{1}{3},\tfrac{1}{3},\tfrac{1}{3}),(0.50,0.25,0.25), \\ \displaystyle(0.80,0.10,0.10),(0.35,0.35,0.30), \\ \displaystyle(0.40,0.40,0.20),(0.40,0.30,0.30)\big\}

where \operatorname{Perm} includes all distinct permutations of each listed triple. Allocations remain fixed over the prediction horizon and need not yield distinct equilibria. The players’ KKT conditions are constructed using CasADi and assembled into an MCP, which is solved with PATH [15] with convergence tolerance 10^{-4}. Because the game is nonconvex, MCP convergence identifies a first-order equilibrium candidate and does not certify global best-response optimality. The implementation is available in [16]. We compare three configurations:

  1. Multiple GNE candidates with Nash bargaining (M-NB): explore \mathcal{A}_{\mathrm{grid}} and select an admissible candidate by maximizing the regularized Nash bargaining product.
  2. Normalized GNE candidates with Nash bargaining (N-NB): use only \bm{\alpha}=(1/3,1/3,1/3), corresponding to equal shared-constraint multipliers, with the same bargaining rule.
  3. Multiple GNE candidates with equally weighted cost (M-WS): explore \mathcal{A}_{\mathrm{grid}} and minimize \frac{1}{3}\sum_{i=1}^{3}\hat{J}_{i,k}^{j}(c) over admissible candidates c.

The disagreement costs are initialized from the preceding iteration and updated to reflect each newly accepted plan and its remaining continuation. Among admissible candidates, the selected plan maximizes the Nash bargaining product

\prod_{i=1}^{3}\left(\max\{d_{i,k}^{j}-\hat{J}_{i,k}^{j}(c),0\}+\epsilon\right),\qquad\epsilon=10^{-6}.
(47)

The individual acceptance condition is checked before evaluating the product: clipping negative improvements does not make a degrading candidate admissible.

VI-C Numerical Results

Figure 1 illustrates the evolution of the joint trajectory under M-NB. Successive iterations modify the players’ routes around the elliptical obstacle, with the final displayed iteration yielding costs of 450.78, 449.78, and 648.36 for Players 1-3, respectively. Figure 2 compares each player’s iteration cost across the three configurations. All exhibit a pronounced initial decrease, followed by smaller improvements. Their relative performance changes over the learning iterations, as quantified in Table II.

Fig. 1: Trajectory evolution under M-NB at iterations 1, 4, 8, and 15, with earlier trajectories shown faintly. Blue, orange, and green identify Players 1-3. Legend values give their iteration costs.
Fig. 2: Player costs across iterations for M-NB, M-WS, and N-NB. Initial costs are annotated because they lie outside the displayed ranges. N-NB terminates at iteration 6, with costs unchanged from iteration 5 to numerical tolerance.
TABLE II: Player and aggregate costs at initialization, iteration 5, and the final iteration of each method. Bold entries indicate the lowest cost within each comparison group.
  • 5
    Method All
    M-NB
    \mathcal{J}_{1}^{j} 1714.01
    475.29
    \mathcal{J}_{2}^{j} 1684.17
    475.15
    \mathcal{J}_{3}^{j} 2435.17
    680.94
    \sum_{i}\mathcal{J}_{i}^{j} 5833.35
    1631.37
  • 5
    Method All
    N-NB
    \mathcal{J}_{1}^{j} 1714.01
    498.16
    \mathcal{J}_{2}^{j} 1684.17
    504.96
    \mathcal{J}_{3}^{j} 2435.17
    697.14
    \sum_{i}\mathcal{J}_{i}^{j} 5833.35
    1700.26
  • 5
    Method All
    M-WS
    \mathcal{J}_{1}^{j} 1714.01
    484.27
    \mathcal{J}_{2}^{j} 1684.17
    493.34
    \mathcal{J}_{3}^{j} 2435.17
    685.54
    \sum_{i}\mathcal{J}_{i}^{j} 5833.35
    1663.14
  • 15
    Method All
    M-NB
    \mathcal{J}_{1}^{j} 1714.01
    450.78
    \mathcal{J}_{2}^{j} 1684.17
    449.78
    \mathcal{J}_{3}^{j} 2435.17
    648.36
    \sum_{i}\mathcal{J}_{i}^{j} 5833.35
    1548.92
  • 15
    Method All
    N-NB
    \mathcal{J}_{1}^{j} 1714.01
    498.16
    \mathcal{J}_{2}^{j} 1684.17
    504.96
    \mathcal{J}_{3}^{j} 2435.17
    697.14
    \sum_{i}\mathcal{J}_{i}^{j} 5833.35
    1700.26
  • 15
    Method All
    M-WS
    \mathcal{J}_{1}^{j} 1714.01
    445.69
    \mathcal{J}_{2}^{j} 1684.17
    470.66
    \mathcal{J}_{3}^{j} 2435.17
    671.87
    \sum_{i}\mathcal{J}_{i}^{j} 5833.35
    1588.22

All methods start from the same feasible trajectory, with aggregate cost 5833.35. At iteration 5, M-NB achieves the lowest aggregate cost, 1631.37, improving on M-WS and N-NB by 1.91% and 4.05%, respectively. Its costs are also lower for every individual player at this checkpoint. At iteration 15, M-NB retains the lowest aggregate cost, 1548.92, which is 2.47% below M-WS. Neither method dominates the other across all players: M-NB incurs a 1.14% higher cost for Player 1 relative to M-WS, while reducing the costs of Players 2 and 3 by 4.44% and 3.50%, respectively. Whereas M-NB reduces the costs of Players 2 and 3 by 4.44% and 3.50%, respectively, relative to M-WS. The final comparison therefore exhibits a trade-off between individual outcomes. N-NB terminates at iteration 6 because its costs remain unchanged from iteration 5 to numerical tolerance, with a final aggregate cost of 1700.26. M-NB continues to improve through iteration 15, reaching an aggregate cost 8.90% below N-NB’s final value. These results illustrate how allocation exploration and cooperative selection affect performance in this example, without establishing general superiority of either selection rule. Because accepted trajectories populate the terminal memory, selection decisions also affect the candidates available in subsequent iterations. The reported results do not establish asymptotic convergence or global optimality.

VII Conclusions

This paper presented a learning framework for cooperative iterative dynamic games with shared constraints. Stored joint trajectories provide a sampled safe set and player-specific costs-to-go for cooperative selection among terminal joint states and equilibrium candidates. Retaining a feasible continuation ensures recursive feasibility, while player-wise acceptance guarantees non-degradation across completed iterations under the stated assumptions. The framework accommodates nonlinear and nonconvex games through verified feasible candidates. A three-player motion-planning example illustrates the effects of multiplier exploration and cooperative selection. Future work will address computational efficiency and robustness to model uncertainty.

References

  1. [1] U. Rosolia and F. Borrelli (2018) Learning model predictive control for iterative tasks: a data-driven control framework. IEEE Transactions on Automatic Control 63 (7), pp. 1883–1896. External Links: Document
  2. [2] D. A. Bristow, M. Tharayil, and A. G. Alleyne (2006) A survey of iterative learning control. IEEE Control Systems Magazine 26 (3), pp. 96–114.
  3. [3] Y. Wang, F. Gao, and F. J. D. III (2009) Survey on iterative learning control, repetitive control, and run-to-run control. Journal of Process Control 19 (10), pp. 1589–1600.
  4. [4] C. Lin, L. Sun, and M. Tomizuka (2015) Robust principal component analysis for iterative learning control of precision motion systems with non-repetitive disturbances. In Proceedings of the American Control Conference, pp. 2819–2824.
  5. [5] K. S. Lee, I.-S. Chin, H. J. Lee, and J. H. Lee (1999) Model predictive control technique combined with iterative learning for batch processes. AIChE Journal 45 (10), pp. 2175–2187.
  6. [6] K. S. Lee and J. H. Lee (2000) Convergence of constrained model-based predictive control for batch processes. IEEE Transactions on Automatic Control 45 (10), pp. 1928–1932.
  7. [7] S. H. Nair, C. Vallon, and F. Borrelli (2025) Multi-objective learning model predictive control. In Systems Theory in Data and Optimization, pp. 261–276. External Links: Document
  8. [8] E. L. Zhu, Y. R. Stürz, U. Rosolia, and F. Borrelli (2020) Trajectory optimization for nonlinear multi-agent systems using decentralized learning model predictive control. In Proceedings of the 59th IEEE Conference on Decision and Control (CDC), pp. 6198–6203. External Links: Document
  9. [9] H. Hu, K. Gatsis, M. Morari, and G. J. Pappas (2020) Non-cooperative distributed mpc with iterative learning. IFAC-PapersOnLine 53 (2), pp. 5225–5232. External Links: Document
  10. [10] J. B. Rosen (1965) Existence and uniqueness of equilibrium points for concave N-person games. Econometrica 33 (3), pp. 520–534.
  11. [11] F. Facchinei and C. Kanzow (2010) Generalized nash equilibrium problems. Annals of Operations Research 175, pp. 177–211.
  12. [12] M. Pustilnik and F. Borrelli (2025) Generalized nash equilibrium solutions in dynamic games with shared constraints. arXiv preprint arXiv:2502.19569. External Links: 2502.19569
  13. [13] H. Kim, E. L. Zhu, C. S. Lim, and F. Borrelli (2025) Learning two-agent motion planning strategies from generalized nash equilibrium for model predictive control. In Proceedings of the 7th Annual Learning for Dynamics and Control Conference, Proceedings of Machine Learning Research, Vol. 283, pp. 112–123.
  14. [14] J. F. Nash (1950) The bargaining problem. Econometrica 18 (2), pp. 155–162.
  15. [15] M. C. Ferris, T. S. Munson, and S. P. Dirkse (1999) The path solver: a nonlinear complementarity problem code. Technical report Technical Report TR99-12, University of Wisconsin–Madison.
  16. [16] M. Pustilnik (2026) Learning dynamic games for cooperative iterative tasks: simulation code. Note: https://github.com/pukmark/LearningDynamicGames.git