diff --git a/.github/workflows/series-naming-gate.yml b/.github/workflows/series-naming-gate.yml index 056c68d677a..21676a2f0c3 100644 --- a/.github/workflows/series-naming-gate.yml +++ b/.github/workflows/series-naming-gate.yml @@ -42,6 +42,7 @@ on: - 'MyIA.AI.Notebooks/Probas/PyMC/**' - 'MyIA.AI.Notebooks/RL/**' - 'MyIA.AI.Notebooks/Search/Part1-Foundations/**' + - 'MyIA.AI.Notebooks/Search/Part2-CSP/**' - 'MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/**' - 'MyIA.AI.Notebooks/Search/Part4-Metaheuristics/**' - 'MyIA.AI.Notebooks/Sudoku/**' diff --git a/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-02-P-NP-Reduction-CSharp.ipynb b/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-02-P-NP-Reduction-CSharp.ipynb index 9184236789f..edc66c8a8de 100644 --- a/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-02-P-NP-Reduction-CSharp.ipynb +++ b/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-02-P-NP-Reduction-CSharp.ipynb @@ -1496,7 +1496,7 @@ "\n", "- **Carnet suivant** : [Complexity-03 — Plus de temps, plus de problèmes](Complexity-03-HierarchieTemporelle-Python.ipynb) — l'idée de hiérarchie temporelle : donner plus de temps peut ouvrir de nouveaux problèmes, mais il faut le **prouver**, pas seulement comparer deux programmes.\n", "- **Dans la même série** : [Complexity-02b — le seuil du 3-SAT](Complexity-02b-SAT-PhaseTransition-Python.ipynb) — la densité comme variable de contrôle, à $n$ fixé ; [Complexity-02c — le seuil sans mur](Complexity-02c-XOR-SAT-Phase-Transition-Python.ipynb) — un contre-exemple propre, où la transition de satisfaisabilité ne s'accompagne d'aucun mur de coût.\n", - "- **Carnet voisin d'une autre série** : [CSP-2 — Consistency](../../Search/Part2-CSP/CSP-2-Consistency.ipynb) — la satisfiabilité par propagation de contraintes, mesurée dans une autre série.\n", + "- **Carnet voisin d'une autre série** : [CSP-2 — Consistency](../../Search/Part2-CSP/CSP-02-Consistency-Python.ipynb) — la satisfiabilité par propagation de contraintes, mesurée dans une autre série.\n", "- **Lectures** : Impagliazzo et Paturi (2001), *On the Complexity of k-SAT*, J. Comput. Syst. Sci. 62-2 (copie archivée au gisement partagé, dossier `Bibliographie IA/Automata/`) ; Dechter, *Constraint Processing* (2003) — la famille des solveurs par retour arrière et la façon de mesurer leur coût (dossier `Bibliographie IA/Constraint Programming/`)." ] } diff --git a/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-02-P-NP-Reduction-Python.ipynb b/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-02-P-NP-Reduction-Python.ipynb index 1e837bae63a..728041a8672 100644 --- a/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-02-P-NP-Reduction-Python.ipynb +++ b/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-02-P-NP-Reduction-Python.ipynb @@ -1329,7 +1329,7 @@ "\n", "- **Carnet suivant** : [Complexity-03 — Plus de temps, plus de problèmes](Complexity-03-HierarchieTemporelle-Python.ipynb) — l'idée de hiérarchie temporelle : donner plus de temps peut ouvrir de nouveaux problèmes, mais il faut le **prouver**, pas seulement comparer deux programmes.\n", "- **Dans la même série** : [Complexity-02b — le seuil du 3-SAT](Complexity-02b-SAT-PhaseTransition-Python.ipynb) — la densité comme variable de contrôle, à $n$ fixé ; [Complexity-02c — le seuil sans mur](Complexity-02c-XOR-SAT-Phase-Transition-Python.ipynb) — un contre-exemple propre, où la transition de satisfaisabilité ne s'accompagne d'aucun mur de coût.\n", - "- **Carnet voisin d'une autre série** : [CSP-2 — Consistency](../../Search/Part2-CSP/CSP-2-Consistency.ipynb) — la satisfiabilité par propagation de contraintes, mesurée dans une autre série.\n", + "- **Carnet voisin d'une autre série** : [CSP-2 — Consistency](../../Search/Part2-CSP/CSP-02-Consistency-Python.ipynb) — la satisfiabilité par propagation de contraintes, mesurée dans une autre série.\n", "- **Lectures** : Impagliazzo et Paturi (2001), *On the Complexity of k-SAT*, J. Comput. Syst. Sci. 62-2 (copie archivée au gisement partagé, dossier `Bibliographie IA/Automata/`) ; Dechter, *Constraint Processing* (2003) — la famille des solveurs par retour arrière et la façon de mesurer leur coût (dossier `Bibliographie IA/Constraint Programming/`)." ] } diff --git a/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-03-HierarchieTemporelle-CSharp.ipynb b/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-03-HierarchieTemporelle-CSharp.ipynb index cd28d79bdab..65cf8752fcb 100644 --- a/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-03-HierarchieTemporelle-CSharp.ipynb +++ b/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-03-HierarchieTemporelle-CSharp.ipynb @@ -740,7 +740,7 @@ "\n", "- **Carnet suivant** : [Complexity-04 — Décider sans connaître la suite](Complexity-04-OnlineAlgorithms-Python.ipynb) — l'algorithme en ligne : la même question de coût, mais l'information arrive dans le désordre.\n", "- **Dans la même série** : [Complexity-03b — Hartmanis–Stearns](Complexity-03b-HartmanisStearns-HierarchieTemporelle-Python.ipynb) — le théorème réel et son instrumentation pas à pas ; [Complexity-03c — Naviguer le Zoo exécutable](Complexity-03c-ComplexityZoo-Navigation-Python.ipynb) — les deux mondes d'oracles, exécutés.\n", - "- **Carnet voisin d'une autre série** : [CSP-1 — Fundamentals](../../Search/Part2-CSP/CSP-1-Fundamentals.ipynb) — l'espace de recherche et son coût mesuré, dans une autre série.\n", + "- **Carnet voisin d'une autre série** : [CSP-1 — Fundamentals](../../Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb) — l'espace de recherche et son coût mesuré, dans une autre série.\n", "- **Lectures** : Baker, Gill et Solovay (1975), *Relativizations of the P=?NP Question*, SIAM J. Comput. 4-4 — le théorème des oracles qui borne la diagonalisation (copie archivée au gisement partagé, dossier `Bibliographie IA/Automata/`) ; Impagliazzo et Paturi (2001), *On the Complexity of k-SAT* (même dossier)." ] } diff --git a/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-03-HierarchieTemporelle-Python.ipynb b/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-03-HierarchieTemporelle-Python.ipynb index ddc0e3efe57..a433ba2dcee 100644 --- a/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-03-HierarchieTemporelle-Python.ipynb +++ b/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-03-HierarchieTemporelle-Python.ipynb @@ -527,7 +527,7 @@ "- **Carnet suivant** : [Complexity-04 — Décider sans connaître la suite](Complexity-04-OnlineAlgorithms-Python.ipynb) — l'algorithme en ligne : la même question de coût, mais l'information arrive dans le désordre.\n", "- **Version Rust** → [Complexity-03-HierarchieTemporelle-Rust](Complexity-03-HierarchieTemporelle-Rust.ipynb) — le même carnet, porté en Rust.\n", "- **Dans la même série** : [Complexity-03b — Hartmanis–Stearns](Complexity-03b-HartmanisStearns-HierarchieTemporelle-Python.ipynb) — le théorème réel et son instrumentation pas à pas ; [Complexity-03c — Naviguer le Zoo exécutable](Complexity-03c-ComplexityZoo-Navigation-Python.ipynb) — les deux mondes d'oracles, exécutés.\n", - "- **Carnet voisin d'une autre série** : [CSP-1 — Fundamentals](../../Search/Part2-CSP/CSP-1-Fundamentals.ipynb) — l'espace de recherche et son coût mesuré, dans une autre série.\n", + "- **Carnet voisin d'une autre série** : [CSP-1 — Fundamentals](../../Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb) — l'espace de recherche et son coût mesuré, dans une autre série.\n", "- **Lectures** : Baker, Gill et Solovay (1975), *Relativizations of the P=?NP Question*, SIAM J. Comput. 4-4 — le théorème des oracles qui borne la diagonalisation (copie archivée au gisement partagé, dossier `Bibliographie IA/Automata/`) ; Impagliazzo et Paturi (2001), *On the Complexity of k-SAT* (même dossier)." ] } diff --git a/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-03-HierarchieTemporelle-Python_en.ipynb b/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-03-HierarchieTemporelle-Python_en.ipynb index 8dba5a7de1d..0e8814a1fde 100644 --- a/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-03-HierarchieTemporelle-Python_en.ipynb +++ b/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-03-HierarchieTemporelle-Python_en.ipynb @@ -9,7 +9,7 @@ "source": [ "# Complexity-03 — More time, more problems\n", "\n", - "**Navigation**: [Index](README.md) | [C# version](Complexity-03-HierarchieTemporelle-CSharp.ipynb) | [02 — Verify or find](Complexity-02-P-NP-Reduction-Python.ipynb) | [03b — Hartmanis–Stearns](Complexity-03b-HartmanisStearns-HierarchieTemporelle-Python.ipynb) | [03c — Navigable zoo](Complexity-03c-ComplexityZoo-Navigation-Python.ipynb) | [Français →](Complexity-03-HierarchieTemporelle-Python.ipynb)\n", + "**Navigation**: [Index](README.md) | [C# version](Complexity-03-HierarchieTemporelle-CSharp.ipynb) | [Rust version](Complexity-03-HierarchieTemporelle-Rust.ipynb) | [02 — Verify or find](Complexity-02-P-NP-Reduction-Python.ipynb) | [03b — Hartmanis–Stearns](Complexity-03b-HartmanisStearns-HierarchieTemporelle-Python.ipynb) | [03c — Navigable zoo](Complexity-03c-ComplexityZoo-Navigation-Python.ipynb) | [Français →](Complexity-03-HierarchieTemporelle-Python.ipynb)\n", "\n", "> **Audience: Licence.** The historical demonstration and its multi-tape simulation are kept in the 03b deep dive.\n", "\n", @@ -30,7 +30,11 @@ "tags": [] }, "source": [ - "## 1. Nested budgets\n\nIf a program answers in n steps, it also answers within a budget of n² steps. This shows an **inclusion** of budgets, not a separation of problem classes: two different programs on the same problem do not prove that no fast program can solve it. Let us compare the budgets over five sizes.\n\nThe inclusion is trivial: a program that halts within n steps also halts within n² steps. The difficulty lies elsewhere — showing that a problem requires *more* than n² steps means ruling out **all** fast programs, not just the one at hand. That gap between \"I have an example\" and \"I have exhausted the possibilities\" is precisely what this notebook digs into." + "## 1. Nested budgets\n", + "\n", + "If a program answers in n steps, it also answers within a budget of n² steps. This shows an **inclusion** of budgets, not a separation of problem classes: two different programs on the same problem do not prove that no fast program can solve it. Let us compare the budgets over five sizes.\n", + "\n", + "The inclusion is trivial: a program that halts within n steps also halts within n² steps. The difficulty lies elsewhere — showing that a problem requires *more* than n² steps means ruling out **all** fast programs, not just the one at hand. That gap between \"I have an example\" and \"I have exhausted the possibilities\" is precisely what this notebook digs into." ] }, { @@ -69,7 +73,13 @@ "tags": [] }, "source": [ - "**Reading the result.** The costs are ordered for the sizes shown: at n = 32, the n² budget is worth 1,024 steps against 4,294,967,296 for 2ⁿ — the gap is zero at n = 2 and n = 4 (4 against 4, 16 against 16) and only opens from n = 8 (64 against 256). To conclude that one class has a problem absent from the other, one would have to rule out **all** algorithms within the smaller budget. The numerical table does not do that.\n\n## 2. The diagonalization idea\n\nLet us enumerate a few candidate machines. At row i, construction D chooses the opposite of machine number i's answer on input i. D therefore differs from every listed machine on at least one input. The list below is only a **finite** experiment: it does not represent all possible machines.\n\nDiagonalization reverses the direction of the question: instead of looking for a fast algorithm, one builds a problem D that contradicts each candidate machine on its own ground — input i. Against a finite list, this works; against the infinity of machines, one would need a universal construction and bound, which section 4 discusses." + "**Reading the result.** The costs are ordered for the sizes shown: at n = 32, the n² budget is worth 1,024 steps against 4,294,967,296 for 2ⁿ — the gap is zero at n = 2 and n = 4 (4 against 4, 16 against 16) and only opens from n = 8 (64 against 256). To conclude that one class has a problem absent from the other, one would have to rule out **all** algorithms within the smaller budget. The numerical table does not do that.\n", + "\n", + "## 2. The diagonalization idea\n", + "\n", + "Let us enumerate a few candidate machines. At row i, construction D chooses the opposite of machine number i's answer on input i. D therefore differs from every listed machine on at least one input. The list below is only a **finite** experiment: it does not represent all possible machines.\n", + "\n", + "Diagonalization reverses the direction of the question: instead of looking for a fast algorithm, one builds a problem D that contradicts each candidate machine on its own ground — input i. Against a finite list, this works; against the infinity of machines, one would need a universal construction and bound, which section 4 discusses." ] }, { @@ -113,7 +123,13 @@ "tags": [] }, "source": [ - "**Reading the result.** The four rows display `True` in the \"different\" column: D(i) is the opposite of M_i(i) on each of the listed inputs (0, 1, 2 and 3). Infinitely many machines remain unlisted; this table therefore proves no separation of classes.\n\n## 3. The simulation budget\n\nA machine that does not answer before the limit cannot block the diagonal constructor indefinitely. Here the costs are **declared** by a finite model: they are not steps measured by a universal simulator. An unobserved answer is not a false verdict.\n\nIn the real proof, this limit is handled by a **universal clock**: each candidate machine is simulated step by step and stopped beyond the budget. Paying for both the machine and its simulator is precisely the overhead that makes the hierarchy hold — and which the finite model here does not capture." + "**Reading the result.** The four rows display `True` in the \"different\" column: D(i) is the opposite of M_i(i) on each of the listed inputs (0, 1, 2 and 3). Infinitely many machines remain unlisted; this table therefore proves no separation of classes.\n", + "\n", + "## 3. The simulation budget\n", + "\n", + "A machine that does not answer before the limit cannot block the diagonal constructor indefinitely. Here the costs are **declared** by a finite model: they are not steps measured by a universal simulator. An unobserved answer is not a false verdict.\n", + "\n", + "In the real proof, this limit is handled by a **universal clock**: each candidate machine is simulated step by step and stopped beyond the budget. Paying for both the machine and its simulator is precisely the overhead that makes the hierarchy hold — and which the finite model here does not capture." ] }, { @@ -171,7 +187,17 @@ "tags": [] }, "source": [ - "## Exercises\n\nThe three exercises extend the demonstrations on the same finite objects. They do not ask you to prove the hierarchy — beyond the reach of a table — but to **feel** what each table shows and what it leaves open, by manipulating budgets, the diagonal and the simulation bound.\n\n### Exercise 1 — Inclusion or separation?\n\nCompare n² and n³ for n = 2, 4, 8, 16. Explain why these numbers do not prove that a problem becomes solvable only with the second budget.\n\n- **Hint:** a table of numbers rules out no other algorithm.\n- **Step 1:** produce the four pairs.\n- **Step 2:** distinguish inclusion from separation." + "## Exercises\n", + "\n", + "The three exercises extend the demonstrations on the same finite objects. They do not ask you to prove the hierarchy — beyond the reach of a table — but to **feel** what each table shows and what it leaves open, by manipulating budgets, the diagonal and the simulation bound.\n", + "\n", + "### Exercise 1 — Inclusion or separation?\n", + "\n", + "Compare n² and n³ for n = 2, 4, 8, 16. Explain why these numbers do not prove that a problem becomes solvable only with the second budget.\n", + "\n", + "- **Hint:** a table of numbers rules out no other algorithm.\n", + "- **Step 1:** produce the four pairs.\n", + "- **Step 2:** distinguish inclusion from separation." ] }, { @@ -202,7 +228,13 @@ "tags": [] }, "source": [ - "### Exercise 2 — Another diagonal\n\nAdd a fifth function to `machines`, then rebuild D and explain why this finite table is still not a general proof.\n\n- **Hint:** evaluate the new function on its own index.\n- **Step 1:** add a machine.\n- **Step 2:** recompute the five oppositions." + "### Exercise 2 — Another diagonal\n", + "\n", + "Add a fifth function to `machines`, then rebuild D and explain why this finite table is still not a general proof.\n", + "\n", + "- **Hint:** evaluate the new function on its own index.\n", + "- **Step 1:** add a machine.\n", + "- **Step 2:** recompute the five oppositions." ] }, { @@ -233,7 +265,13 @@ "tags": [] }, "source": [ - "### Exercise 3 — Overrunning the budget\n\nFind the rows whose declared cost exceeds `budget(i)`. Propose a budget that covers all four costs and explain why this does not build a bound for all machines.\n\n- **Hint:** compare the two numerical columns.\n- **Step 1:** produce a new budget.\n- **Step 2:** state the limit of this finite model." + "### Exercise 3 — Overrunning the budget\n", + "\n", + "Find the rows whose declared cost exceeds `budget(i)`. Propose a budget that covers all four costs and explain why this does not build a bound for all machines.\n", + "\n", + "- **Hint:** compare the two numerical columns.\n", + "- **Step 1:** produce a new budget.\n", + "- **Step 2:** state the limit of this finite model." ] }, { @@ -264,7 +302,19 @@ "tags": [] }, "source": [ - "## Conclusion\n\n| Move | Verified here | Not demonstrated here |\n|---|---|---|\n| Budgets | Numerical inclusion | Strict separation of classes |\n| Diagonal | Four finite contradictions | All admissible machines |\n| Simulation | Halt on overrun | Bounded universal clock and cost |\n\n**To keep in mind.** Three moves, three scopes: budget inclusion is measured, diagonalisation is tested on a finite list, bounded simulation is observed on an overrun — but no finite table enumerates all the machines nor builds the universal clock. The time hierarchy is a theorem about the infinite of algorithms; this notebook shows its mechanisms on the finite, so that the proof in 03b has some ground to stand on.\n\nThe theorem asserts the existence of problems genuinely requiring more time, not merely of slow programs. The deep dive [03b](Complexity-03b-HartmanisStearns-HierarchieTemporelle-Python.ipynb) works through the historical result.\n\n**Reference**: Hartmanis, J. and Stearns, R. E. (1965), *On the computational complexity of algorithms*, Transactions of the American Mathematical Society 117, 285–306." + "## Conclusion\n", + "\n", + "| Move | Verified here | Not demonstrated here |\n", + "|---|---|---|\n", + "| Budgets | Numerical inclusion | Strict separation of classes |\n", + "| Diagonal | Four finite contradictions | All admissible machines |\n", + "| Simulation | Halt on overrun | Bounded universal clock and cost |\n", + "\n", + "**To keep in mind.** Three moves, three scopes: budget inclusion is measured, diagonalisation is tested on a finite list, bounded simulation is observed on an overrun — but no finite table enumerates all the machines nor builds the universal clock. The time hierarchy is a theorem about the infinite of algorithms; this notebook shows its mechanisms on the finite, so that the proof in 03b has some ground to stand on.\n", + "\n", + "The theorem asserts the existence of problems genuinely requiring more time, not merely of slow programs. The deep dive [03b](Complexity-03b-HartmanisStearns-HierarchieTemporelle-Python.ipynb) works through the historical result.\n", + "\n", + "**Reference**: Hartmanis, J. and Stearns, R. E. (1965), *On the computational complexity of algorithms*, Transactions of the American Mathematical Society 117, 285–306." ] }, { @@ -272,7 +322,13 @@ "id": "relativisation-bgs", "metadata": {}, "source": [ - "## Relativisation: what a finite diagonal cannot settle\n\nThe three tables of this notebook — nested budgets, finite diagonal, bounded simulation — illustrate the **mechanisms** of a separation proof. The actual theorem (Hartmanis–Stearns 1965) is unconditional: it separates classes of problems, not merely programs. But the technique that carries it — diagonalisation — has a limit known since 1975, and that limit deserves its place here because it says exactly what this kind of move can and cannot settle.\n\n**The oracle theorem (Baker–Gill–Solovay 1975).** There exists a recursive oracle A such that `P^A = NP^A`, and a recursive (sparse) oracle B such that `P^B ≠ NP^B`. An oracle is a free black box added to both sides of the equation; the result produced by BGS shows that the question \"P = NP?\" has **both** answers depending on the oracle. Immediate consequence: any proof technique that *relativises* — that applies as it stands in the presence of an arbitrary oracle — is structurally neutral on P vs NP, in both directions. The authors say so in their introduction: ordinary diagonalisation is among the techniques one expects to relativise, and one sees no general simulation method that would escape the objection either. (Baker, Gill, Solovay, *Relativizations of the P NP question*, SIAM Journal on Computing 4(4), 1975, p. 431 — copy archived in the cluster's bibliographic repository.)\n\n**What this changes for the diagonal of this notebook.** Mentally add an \"oracle\" column to the table of section 2: the finite contradiction (machines ≠ at the diagonal point) survives unchanged. That is the mark of a relativising argument — it can therefore conclude nothing about P vs NP, only about the finite objects it exhibits. This is not a flaw of the notebook: the Hartmanis–Stearns separation itself is proved; the lesson is that the diagonal move taught here is the right tool for time hierarchies and the wrong one for the P vs NP question." + "## Relativisation: what a finite diagonal cannot settle\n", + "\n", + "The three tables of this notebook — nested budgets, finite diagonal, bounded simulation — illustrate the **mechanisms** of a separation proof. The actual theorem (Hartmanis–Stearns 1965) is unconditional: it separates classes of problems, not merely programs. But the technique that carries it — diagonalisation — has a limit known since 1975, and that limit deserves its place here because it says exactly what this kind of move can and cannot settle.\n", + "\n", + "**The oracle theorem (Baker–Gill–Solovay 1975).** There exists a recursive oracle A such that `P^A = NP^A`, and a recursive (sparse) oracle B such that `P^B ≠ NP^B`. An oracle is a free black box added to both sides of the equation; the result produced by BGS shows that the question \"P = NP?\" has **both** answers depending on the oracle. Immediate consequence: any proof technique that *relativises* — that applies as it stands in the presence of an arbitrary oracle — is structurally neutral on P vs NP, in both directions. The authors say so in their introduction: ordinary diagonalisation is among the techniques one expects to relativise, and one sees no general simulation method that would escape the objection either. (Baker, Gill, Solovay, *Relativizations of the P NP question*, SIAM Journal on Computing 4(4), 1975, p. 431 — copy archived in the cluster's bibliographic repository.)\n", + "\n", + "**What this changes for the diagonal of this notebook.** Mentally add an \"oracle\" column to the table of section 2: the finite contradiction (machines ≠ at the diagonal point) survives unchanged. That is the mark of a relativising argument — it can therefore conclude nothing about P vs NP, only about the finite objects it exhibits. This is not a flaw of the notebook: the Hartmanis–Stearns separation itself is proved; the lesson is that the diagonal move taught here is the right tool for time hierarchies and the wrong one for the P vs NP question." ] }, { @@ -329,7 +385,7 @@ "\n", "- **Next notebook**: [Complexity-04 — Deciding without knowing what comes next](Complexity-04-OnlineAlgorithms-Python.ipynb) — the online algorithm: the same cost question, but the information arrives out of order.\n", "- **In the same series**: [03b — Hartmanis–Stearns](Complexity-03b-HartmanisStearns-HierarchieTemporelle-Python.ipynb) — the real theorem and its instrumentation step by step ; [03c — Navigable zoo](Complexity-03c-ComplexityZoo-Navigation-Python.ipynb) — the two oracle worlds, executed.\n", - "- **Neighbouring notebook from another series**: [CSP-1 — Fundamentals](../../Search/Part2-CSP/CSP-1-Fundamentals.ipynb) — the search space and its measured cost, in another series.\n", + "- **Neighbouring notebook from another series**: [CSP-1 — Fundamentals](../../Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb) — the search space and its measured cost, in another series.\n", "- **Readings**: Baker, Gill and Solovay (1975), *Relativizations of the P=?NP Question*, SIAM J. Comput. 4-4 — the oracle theorem that bounds diagonalisation (copy archived in the shared gisement, folder `Bibliographie IA/Automata/`) ; Impagliazzo and Paturi (2001), *On the Complexity of k-SAT* (same folder)." ] } @@ -353,7 +409,6 @@ "version": "3.13.14" }, "t4": { - "tool": "render_notebook.py", "lang": "en", "source": "MyIA.AI.Notebooks/Complexity/Complexity-03-HierarchieTemporelle-Python.ipynb", "source_papermill": { @@ -367,7 +422,8 @@ "parameters": {}, "start_time": "2026-09-24T11:58:11.387396+00:00", "version": "2.7.0" - } + }, + "tool": "render_notebook.py" } }, "nbformat": 4, diff --git a/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-03-HierarchieTemporelle-Rust.ipynb b/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-03-HierarchieTemporelle-Rust.ipynb index 2a31c1e3122..321cc499da2 100644 --- a/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-03-HierarchieTemporelle-Rust.ipynb +++ b/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-03-HierarchieTemporelle-Rust.ipynb @@ -464,7 +464,7 @@ "\n", "- **Carnet suivant** : [Complexity-04 — Décider sans connaître la suite](Complexity-04-OnlineAlgorithms-Python.ipynb) — l'algorithme en ligne : la même question de coût, mais l'information arrive dans le désordre.\n", "- **Dans la même série** : [Complexity-03b — Hartmanis–Stearns](Complexity-03b-HartmanisStearns-HierarchieTemporelle-Python.ipynb) — le théorème réel et son instrumentation pas à pas ; [Complexity-03c — Naviguer le Zoo exécutable](Complexity-03c-ComplexityZoo-Navigation-Python.ipynb) — les deux mondes d'oracles, exécutés.\n", - "- **Carnet voisin d'une autre série** : [CSP-1 — Fundamentals](../../Search/Part2-CSP/CSP-1-Fundamentals.ipynb) — l'espace de recherche et son coût mesuré, dans une autre série.\n", + "- **Carnet voisin d'une autre série** : [CSP-1 — Fundamentals](../../Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb) — l'espace de recherche et son coût mesuré, dans une autre série.\n", "- **Lectures** : Baker, Gill et Solovay (1975), *Relativizations of the P=?NP Question*, SIAM J. Comput. 4-4 — le théorème des oracles qui borne la diagonalisation (copie archivée au gisement partagé, dossier `Bibliographie IA/Automata/`) ; Impagliazzo et Paturi (2001), *On the Complexity of k-SAT* (même dossier).\n", "\n", "> Carnet issu de l'EPIC #27844." diff --git a/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-03c-ComplexityZoo-Navigation-Python.ipynb b/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-03c-ComplexityZoo-Navigation-Python.ipynb index c0d59a16605..e8c1754981f 100644 --- a/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-03c-ComplexityZoo-Navigation-Python.ipynb +++ b/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-03c-ComplexityZoo-Navigation-Python.ipynb @@ -1303,7 +1303,7 @@ "\n", "- **Carnet suivant** : [Complexity-03d — la réfutation annoncée de l'ETH](Complexity-03d-ETH-Refutation-Annoncee-Lean-Python.ipynb) — une annonce de réfutation, lue à la source et confrontée au mur mesuré.\n", "- **Dans la même série** : [Complexity-04 — Décider sans connaître la suite](Complexity-04-OnlineAlgorithms-Python.ipynb) — l'algorithme en ligne, l'autre moitié du Zoo ; [Complexity-05 — Compter est plus dur que vérifier](Complexity-05-CountingHarder-Permanent-Python.ipynb) — la classe #P et la permanent.\n", - "- **Carnet voisin d'une autre série** : [CSP-3 — Advanced](../../Search/Part2-CSP/CSP-3-Advanced.ipynb) — le solveur SAT et ses budgets, dans une autre série.\n", + "- **Carnet voisin d'une autre série** : [CSP-3 — Advanced](../../Search/Part2-CSP/CSP-03-Advanced-Python.ipynb) — le solveur SAT et ses budgets, dans une autre série.\n", "- **Lectures** : Baker, Gill et Solovay (1975), *Relativizations of the P=?NP Question* (copie archivée au gisement partagé, dossier `Bibliographie IA/Automata/`) ; *The CP-SAT Primer — Using and Understanding Google OR-Tools' CP-SAT Solver* (2023), pour le solveur SAT de référence et la lecture de ses coûts (dossier `Bibliographie IA/Constraint Programming/`)." ] } diff --git a/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-03c-ComplexityZoo-Navigation-Rust.ipynb b/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-03c-ComplexityZoo-Navigation-Rust.ipynb index 1bed404069b..78e3c0e7980 100644 --- a/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-03c-ComplexityZoo-Navigation-Rust.ipynb +++ b/MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-03c-ComplexityZoo-Navigation-Rust.ipynb @@ -2096,7 +2096,7 @@ "\n", "- **Carnet suivant** : [Complexity-03d — la réfutation annoncée de l'ETH](Complexity-03d-ETH-Refutation-Annoncee-Lean-Python.ipynb) — une annonce de réfutation, lue à la source et confrontée au mur mesuré.\n", "- **Dans la même série** : [Complexity-04 — Décider sans connaître la suite](Complexity-04-OnlineAlgorithms-Python.ipynb) — l'algorithme en ligne, l'autre moitié du Zoo ; [Complexity-05 — Compter est plus dur que vérifier](Complexity-05-CountingHarder-Permanent-Python.ipynb) — la classe #P et la permanent.\n", - "- **Carnet voisin d'une autre série** : [CSP-3 — Advanced](../../Search/Part2-CSP/CSP-3-Advanced.ipynb) — le solveur SAT et ses budgets, dans une autre série.\n", + "- **Carnet voisin d'une autre série** : [CSP-3 — Advanced](../../Search/Part2-CSP/CSP-03-Advanced-Python.ipynb) — le solveur SAT et ses budgets, dans une autre série.\n", "- **Lectures** : Baker, Gill et Solovay (1975), *Relativizations of the P=?NP Question* (copie archivée au gisement partagé, dossier `Bibliographie IA/Automata/`) ; *The CP-SAT Primer — Using and Understanding Google OR-Tools' CP-SAT Solver* (2023), pour le solveur SAT de référence et la lecture de ses coûts (dossier `Bibliographie IA/Constraint Programming/`)." ] } diff --git a/MyIA.AI.Notebooks/PARITY-INVENTORY-SERIES-PARALLELES.md b/MyIA.AI.Notebooks/PARITY-INVENTORY-SERIES-PARALLELES.md index 5680b9e2f78..92740c3ecb1 100644 --- a/MyIA.AI.Notebooks/PARITY-INVENTORY-SERIES-PARALLELES.md +++ b/MyIA.AI.Notebooks/PARITY-INVENTORY-SERIES-PARALLELES.md @@ -33,7 +33,7 @@ Note registre : `03b`/`03c`/`03d` sont enregistrées sous les numéros historiqu ### Search/Part2-CSP — 9 paires, toutes alignées, toutes enregistrées -`CSP-1-Fundamentals` à `CSP-9-Distributed`, chaque `CSP-N` ↔ `CSP-N-CSharp`. +`CSP-01-Fundamentals-Python` à `CSP-09-Distributed-Python`, chaque `CSP-N` ↔ `CSP-N-CSharp`. ### Search/Part3-Cas-pratiques — 21 paires, 19 alignées, 2 décalées, toutes enregistrées diff --git a/MyIA.AI.Notebooks/Search/Part1-Foundations/Search-03b-PatternDatabases.ipynb b/MyIA.AI.Notebooks/Search/Part1-Foundations/Search-03b-PatternDatabases.ipynb index d5599c33501..e118c51f17b 100644 --- a/MyIA.AI.Notebooks/Search/Part1-Foundations/Search-03b-PatternDatabases.ipynb +++ b/MyIA.AI.Notebooks/Search/Part1-Foundations/Search-03b-PatternDatabases.ipynb @@ -20,7 +20,7 @@ "> recherche heuristique *avancées*, au-delà des fondations de la\n", "> [Partie 1](../Part1-Foundations/Search-03-Informed.ipynb) (A\\*, IDA\\*, heuristiques\n", "> admissibles), sans relever ni de la programmation par contraintes\n", - "> ([Partie 2](../Part2-CSP/CSP-1-Fundamentals.ipynb)) ni des métaheuristiques\n", + "> ([Partie 2](../Part2-CSP/CSP-01-Fundamentals-Python.ipynb)) ni des métaheuristiques\n", "> ([Partie 4](../Part4-Metaheuristics/README.md)).\n", "\n", "## 1. Le problème, et pourquoi Manhattan ne suffit plus\n", diff --git a/MyIA.AI.Notebooks/Search/Part1-Foundations/Search-05-GeneticAlgorithms.ipynb b/MyIA.AI.Notebooks/Search/Part1-Foundations/Search-05-GeneticAlgorithms.ipynb index 7f18e2065cb..da1e7431eaf 100644 --- a/MyIA.AI.Notebooks/Search/Part1-Foundations/Search-05-GeneticAlgorithms.ipynb +++ b/MyIA.AI.Notebooks/Search/Part1-Foundations/Search-05-GeneticAlgorithms.ipynb @@ -3949,7 +3949,7 @@ "\n", "### Pour aller plus loin\n", "\n", - "- **Notebook suivant** : [CSP-1-Fondamentaux](../Part2-CSP/CSP-1-Fundamentals.ipynb) - Problèmes de satisfaction de contraintes\n", + "- **Notebook suivant** : [CSP-1-Fondamentaux](../Part2-CSP/CSP-01-Fundamentals-Python.ipynb) - Problèmes de satisfaction de contraintes\n", "- **Applications** : [App-9 Edge Detection](../Part3-Cas-pratiques/App-09-EdgeDetection-Python.ipynb), [App-10 Portfolio](../Part3-Cas-pratiques/App-10-Portfolio-Python.ipynb)\n", "- **références** :\n", " - Goldberg, D. *Genetic Algorithms in Search, Optimization, and Machine Learning*, 1989\n", @@ -4505,7 +4505,7 @@ "\n", "- `MyIA.AI.Notebooks/Search/Part1-Foundations/Search-09-LinearProgramming.ipynb` (LP relaxation + branch-and-bound)\n", "- `MyIA.AI.Notebooks/Search/Part1-Foundations/Search-11-Metaheuristics.ipynb` (MEALPy : PSO, ABC, SA, BRO)\n", - "- `MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb` (CSP/OR-Tools Choco)\n", + "- `MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb` (CSP/OR-Tools Choco)\n", "\n", "> **Note pedagogique** : sur cette realisation (seed=42), le GA atteint l'optimum sur la petite instance (8 villes, gap 1.00x) et reste sous-optimal sur 9 et 10 villes (gap 1.13x) — une realisation favorable du hasard, pas une garantie, tandis que le temps du solveur exact explose (de la dizaine de millisecondes a environ une seconde entre 8 et 10 villes, colonne temps de la sortie ci-dessus) quand celui du GA reste du meme ordre. Cf. Section 7 de `Sudoku-03-Genetic-Python.ipynb` (ratio GA/OR-Tools *machine-dep* sur Easy) et Section 11 de `Sudoku-04-SimulatedAnnealing-Python.ipynb` (ratio SA/Backtracking *machine-dep* sur Easy) pour des demonstrations equivalentes sur d'autres solveurs heuristiques vs exacts.\n", "\n", diff --git a/MyIA.AI.Notebooks/Search/Part1-Foundations/Search-05b-NaturalEvolutionStrategies.ipynb b/MyIA.AI.Notebooks/Search/Part1-Foundations/Search-05b-NaturalEvolutionStrategies.ipynb index 972f4df350a..e141e3bd822 100644 --- a/MyIA.AI.Notebooks/Search/Part1-Foundations/Search-05b-NaturalEvolutionStrategies.ipynb +++ b/MyIA.AI.Notebooks/Search/Part1-Foundations/Search-05b-NaturalEvolutionStrategies.ipynb @@ -16,7 +16,7 @@ "source": [ "# Search-05b : Natural Evolution Stratégies (NES)\n", "\n", - "**Navigation** : [<< Search-5 Algorithmes génétiques](Search-05-GeneticAlgorithms.ipynb) | [Index](../README.md) | [CSP-1 Fundamentals >>](../Part2-CSP/CSP-1-Fundamentals.ipynb)\n", + "**Navigation** : [<< Search-5 Algorithmes génétiques](Search-05-GeneticAlgorithms.ipynb) | [Index](../README.md) | [CSP-1 Fundamentals >>](../Part2-CSP/CSP-01-Fundamentals-Python.ipynb)\n", "\n", "Le carnet Search-5 faisait évoluer une **population** d'individus. Une stratégie d'évolution naturelle (NES) fait évoluer une **distribution** : on tire des points d'une gaussienne, on les classe, puis on déplace la gaussienne par un pas de gradient sur ses propres paramètres. Le carnet suit l'article de référence et confronte ses affirmations à des mesures :\n", "\n", diff --git a/MyIA.AI.Notebooks/Search/Part1-Foundations/Search-13a-Traverser-Murs-Certifies.ipynb b/MyIA.AI.Notebooks/Search/Part1-Foundations/Search-13a-Traverser-Murs-Certifies.ipynb index 226e11749b7..39ff47d4840 100644 --- a/MyIA.AI.Notebooks/Search/Part1-Foundations/Search-13a-Traverser-Murs-Certifies.ipynb +++ b/MyIA.AI.Notebooks/Search/Part1-Foundations/Search-13a-Traverser-Murs-Certifies.ipynb @@ -1782,7 +1782,7 @@ "source": [ "## Pour aller plus loin\n", "\n", - "**Carnet suivant.** [CSP-1 — Fondamentaux de la programmation par contraintes](../Part2-CSP/CSP-1-Fundamentals.ipynb) — la suite naturelle de la partie, que le README de la partie 1 désigne explicitement : la même exigence de preuve, appliquée à la propagation de contraintes plutôt qu'à l'exploration d'un graphe.\n", + "**Carnet suivant.** [CSP-1 — Fondamentaux de la programmation par contraintes](../Part2-CSP/CSP-01-Fundamentals-Python.ipynb) — la suite naturelle de la partie, que le README de la partie 1 désigne explicitement : la même exigence de preuve, appliquée à la propagation de contraintes plutôt qu'à l'exploration d'un graphe.\n", "\n", "**Lectures.**\n", "\n", diff --git a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb similarity index 78% rename from MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb rename to MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb index 6a226697b0f..f6efad2f307 100644 --- a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb +++ b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb @@ -4,25 +4,18 @@ "cell_type": "markdown", "id": "5393fa40", "metadata": { - "papermill": { - "duration": 0.006383, - "end_time": "2026-09-27T07:23:30.395308+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:30.388925+00:00", - "status": "completed" - }, "tags": [] }, "source": [ "# CSP-1 : Fondamentaux des CSP - Version .NET (Choco-solver 4.10.17 via IKVM 8.15.0)\n", "\n", - "**Navigation** : [<< Search-5 GeneticAlgorithms](../Part1-Foundations/Search-05-GeneticAlgorithms.ipynb) | [Index](../README.md) | [CSP-2-Consistance >>](CSP-2-Consistency.ipynb) | [Version Python](CSP-1-Fundamentals.ipynb)\n", + "**Navigation** : [<< Search-5 GeneticAlgorithms](../Part1-Foundations/Search-05-GeneticAlgorithms.ipynb) | [Index](../README.md) | [CSP-2-Consistance >>](CSP-02-Consistency-Python.ipynb) | [Version Python](CSP-01-Fundamentals-Python.ipynb)\n", "\n", - "**Série .NET** : [Index](../README.md) | [CSP-2-Consistency-CSharp >>](CSP-2-Consistency-CSharp.ipynb)\n", + "**Série .NET** : [Index](../README.md) | [CSP-02-Consistency-CSharp >>](CSP-02-Consistency-CSharp.ipynb)\n", "\n", "## Problèmes de Satisfaction de Contraintes - Fondamentaux (.NET)\n", "\n", - "Ce notebook est le **binome .NET** du notebook Python [CSP-1-Fundamentals.ipynb](CSP-1-Fundamentals.ipynb). Nous y implementons les mêmes algorithmes en C#, puis utilisons **Choco-solver 4.10.17** (via **IKVM 8.15.0**) comme solveur SOTA pour comparer les performances et la concision du code.\n", + "Ce notebook est le **binome .NET** du notebook Python [CSP-01-Fundamentals-Python.ipynb](CSP-01-Fundamentals-Python.ipynb). Nous y implementons les mêmes algorithmes en C#, puis utilisons **Choco-solver 4.10.17** (via **IKVM 8.15.0**) comme solveur SOTA pour comparer les performances et la concision du code.\n", "\n", "### Objectifs d apprentissage\n", "\n", @@ -42,7 +35,7 @@ "\n", "### Lien avec d autres series\n", "\n", - "- **Parité Python** : [CSP-1-Fundamentals.ipynb](CSP-1-Fundamentals.ipynb) -- même plan, version Python\n", + "- **Parité Python** : [CSP-01-Fundamentals-Python.ipynb](CSP-01-Fundamentals-Python.ipynb) -- même plan, version Python\n", "- **Solveur SOTA** : [Choco-solver 4.10.17](https://github.com/chocoteam/choco-solver) -- solveur CSP open-source de référence en Java, expose via IKVM\n", "- Voir aussi la série [Sudoku](../../Sudoku/README.md) pour une application complète des CSP." ] @@ -51,13 +44,6 @@ "cell_type": "markdown", "id": "9104ce9b", "metadata": { - "papermill": { - "duration": 0.00534, - "end_time": "2026-09-27T07:23:30.406153+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:30.400813+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -83,19 +69,6 @@ "execution_count": 1, "id": "fa887f4c", "metadata": { - "execution": { - "iopub.execute_input": "2026-09-27T07:23:30.436869Z", - "iopub.status.busy": "2026-09-27T07:23:30.425312Z", - "iopub.status.idle": "2026-09-27T07:23:33.631695Z", - "shell.execute_reply": "2026-09-27T07:23:33.627320Z" - }, - "papermill": { - "duration": 3.220182, - "end_time": "2026-09-27T07:23:33.631928+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:30.411746+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ @@ -103,21 +76,21 @@ "name": "stdout", "output_type": "stream", "text": [ - "DLL Choco trouvee : org.chocosolver.solver.dll\n" + "DLL Choco trouvee : org.chocosolver.solver.dll\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "Taille : 11.4 MB\n" + "Taille : 11,4 MB\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "Date de build : 2026-09-24\n" + "Date de build : 2026-11-24\r\n" ] } ], @@ -129,7 +102,7 @@ "string FindCspDir() {\n", " var dir = new DirectoryInfo(Directory.GetCurrentDirectory());\n", " while (dir != null) {\n", - " if (File.Exists(Path.Combine(dir.FullName, \"CSP-1-Fundamentals.ipynb\")))\n", + " if (File.Exists(Path.Combine(dir.FullName, \"CSP-01-Fundamentals-Python.ipynb\")))\n", " return dir.FullName;\n", " dir = dir.Parent;\n", " }\n", @@ -153,26 +126,13 @@ "execution_count": 2, "id": "2488ea57", "metadata": { - "execution": { - "iopub.execute_input": "2026-09-27T07:23:33.647476Z", - "iopub.status.busy": "2026-09-27T07:23:33.647133Z", - "iopub.status.idle": "2026-09-27T07:23:39.779014Z", - "shell.execute_reply": "2026-09-27T07:23:39.778630Z" - }, - "papermill": { - "duration": 6.140149, - "end_time": "2026-09-27T07:23:39.779164+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:33.639015+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { "data": { "text/html": [ - "
Installed Packages
" + "
Installing Packages
" ] }, "metadata": {}, @@ -182,7 +142,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "IKVM 8.15.0 pret (home=ikvm-home-8.15.0-linux-x64, tzdb=True) - Choco-solver charge\n" + "IKVM 8.15.0 pret (home=ikvm-home-8.15.0-win-x64, tzdb=True) - Choco-solver charge\r\n" ] } ], @@ -239,19 +199,6 @@ "execution_count": 3, "id": "d88eae78", "metadata": { - "execution": { - "iopub.execute_input": "2026-09-27T07:23:39.797105Z", - "iopub.status.busy": "2026-09-27T07:23:39.796874Z", - "iopub.status.idle": "2026-09-27T07:23:39.876454Z", - "shell.execute_reply": "2026-09-27T07:23:39.876060Z" - }, - "papermill": { - "duration": 0.090044, - "end_time": "2026-09-27T07:23:39.876593+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:39.786549+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ @@ -259,7 +206,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "Choco-solver 4.10.17 charge -- Model, IntVar, arithm, allDifferent disponibles\n" + "Choco-solver 4.10.17 charge -- Model, IntVar, arithm, allDifferent disponibles\r\n" ] } ], @@ -279,13 +226,6 @@ "cell_type": "markdown", "id": "9f051749", "metadata": { - "papermill": { - "duration": 0.005301, - "end_time": "2026-09-27T07:23:39.887423+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:39.882122+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -318,13 +258,6 @@ "cell_type": "markdown", "id": "743cde31", "metadata": { - "papermill": { - "duration": 0.005207, - "end_time": "2026-09-27T07:23:39.898087+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:39.892880+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -336,19 +269,6 @@ "execution_count": 4, "id": "129f2a8c", "metadata": { - "execution": { - "iopub.execute_input": "2026-09-27T07:23:39.912540Z", - "iopub.status.busy": "2026-09-27T07:23:39.912132Z", - "iopub.status.idle": "2026-09-27T07:23:40.151425Z", - "shell.execute_reply": "2026-09-27T07:23:40.150786Z" - }, - "papermill": { - "duration": 0.248336, - "end_time": "2026-09-27T07:23:40.151589+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:39.903253+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ @@ -356,7 +276,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "Classe CSP C# définie.\n" + "Classe CSP C# définie.\r\n" ] } ], @@ -415,13 +335,6 @@ "cell_type": "markdown", "id": "c59de729", "metadata": { - "papermill": { - "duration": 0.006202, - "end_time": "2026-09-27T07:23:40.163975+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:40.157773+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -447,19 +360,6 @@ "execution_count": 5, "id": "eb8596f9", "metadata": { - "execution": { - "iopub.execute_input": "2026-09-27T07:23:40.180495Z", - "iopub.status.busy": "2026-09-27T07:23:40.180027Z", - "iopub.status.idle": "2026-09-27T07:23:40.391761Z", - "shell.execute_reply": "2026-09-27T07:23:40.391423Z" - }, - "papermill": { - "duration": 0.221802, - "end_time": "2026-09-27T07:23:40.391866+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:40.170064+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ @@ -467,98 +367,98 @@ "name": "stdout", "output_type": "stream", "text": [ - "Problème de coloration de l Australie\n" + "Problème de coloration de l Australie\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "=============================================\n" + "=============================================\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "Variables : WA, NT, SA, Q, NSW, V, T\n" + "Variables : WA, NT, SA, Q, NSW, V, T\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "Taille dom. : 3 couleurs\n" + "Taille dom. : 3 couleurs\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "Espace brut : 2187 combinaisons\n" + "Espace brut : 2187 combinaisons\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "\n" + "\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "Adjacences :\n" + "Adjacences :\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " WA -> [NT, SA]\n" + " WA -> [NT, SA]\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " NT -> [WA, SA, Q]\n" + " NT -> [WA, SA, Q]\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " SA -> [WA, NT, Q, NSW, V]\n" + " SA -> [WA, NT, Q, NSW, V]\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " Q -> [NT, SA, NSW]\n" + " Q -> [NT, SA, NSW]\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " NSW -> [Q, SA, V]\n" + " NSW -> [Q, SA, V]\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " V -> [SA, NSW]\n" + " V -> [SA, NSW]\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " T -> []\n" + " T -> []\r\n" ] } ], @@ -601,13 +501,6 @@ "cell_type": "markdown", "id": "e1f7a3c9", "metadata": { - "papermill": { - "duration": 0.00814, - "end_time": "2026-09-27T07:23:40.409606+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:40.401466+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -626,19 +519,6 @@ "execution_count": 6, "id": "1484605f", "metadata": { - "execution": { - "iopub.execute_input": "2026-09-27T07:23:40.423932Z", - "iopub.status.busy": "2026-09-27T07:23:40.423648Z", - "iopub.status.idle": "2026-09-27T07:23:40.608444Z", - "shell.execute_reply": "2026-09-27T07:23:40.608139Z" - }, - "papermill": { - "duration": 0.192994, - "end_time": "2026-09-27T07:23:40.608556+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:40.415562+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ @@ -646,160 +526,160 @@ "name": "stdout", "output_type": "stream", "text": [ - "Graphe de contraintes - Australie (vue texte)\n" + "Graphe de contraintes - Australie (vue texte)\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "=============================================\n" + "=============================================\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "\n" + "\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " NT (deg 3 - Territoire du Nord)\n" + " NT (deg 3 - Territoire du Nord)\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " /|\\\n" + " /|\\\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " / | \\\n" + " / | \\\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " / | \\\n" + " / | \\\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " / | \\\n" + " / | \\\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " WA | Q (deg 3 - Queensland)\n" + " WA | Q (deg 3 - Queensland)\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " \\ | /\n" + " \\ | /\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " \\ | /\n" + " \\ | /\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " \\ | /\n" + " \\ | /\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " SA (deg 5 - noeud le plus contraint, hub)\n" + " SA (deg 5 - noeud le plus contraint, hub)\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " /|\\\n" + " /|\\\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " / | \\\n" + " / | \\\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " / | \\\n" + " / | \\\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " / | \\\n" + " / | \\\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " NSW | V (deg 2 - Victoria, au sud de NSW)\n" + " NSW | V (deg 2 - Victoria, au sud de NSW)\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " |\n" + " |\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " T (deg 0 - Tasmanie, ile isolee au sud)\n" + " T (deg 0 - Tasmanie, ile isolee au sud)\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "\n" + "\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "Arêtes : 9 paires de contraintes binaires (régions adjacentes != même couleur)\n" + "Arêtes : 9 paires de contraintes binaires (régions adjacentes != même couleur)\r\n" ] } ], "source": [ "// Visualisation ASCII du graphe de contraintes\n", - "// (les notebooks C# du projet n utilisent pas matplotlib -- le CSP-7-Soft-CSharp\n", + "// (les notebooks C# du projet n utilisent pas matplotlib -- le CSP-07-Soft-CSharp\n", "// montre que les viz se font en matrice couleur ou en texte structure)\n", "// Orientation AIMA-compatible : NT au nord, SA au centre (hub degré 5),\n", "// WA à l ouest, Q au nord-est, NSW à l est, V au sud-est (sous NSW),\n", @@ -833,13 +713,6 @@ "cell_type": "markdown", "id": "72e0ef68", "metadata": { - "papermill": { - "duration": 0.0064, - "end_time": "2026-09-27T07:23:40.622147+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:40.615747+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -855,13 +728,6 @@ "cell_type": "markdown", "id": "b1406284", "metadata": { - "papermill": { - "duration": 0.006285, - "end_time": "2026-09-27T07:23:40.635153+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:40.628868+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -893,19 +759,6 @@ "execution_count": 7, "id": "a1718468", "metadata": { - "execution": { - "iopub.execute_input": "2026-09-27T07:23:40.651976Z", - "iopub.status.busy": "2026-09-27T07:23:40.651663Z", - "iopub.status.idle": "2026-09-27T07:23:40.740785Z", - "shell.execute_reply": "2026-09-27T07:23:40.740590Z" - }, - "papermill": { - "duration": 0.099302, - "end_time": "2026-09-27T07:23:40.740888+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:40.641586+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ @@ -913,42 +766,42 @@ "name": "stdout", "output_type": "stream", "text": [ - "Brute force - Coloration Australie\n" + "Brute force - Coloration Australie\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "=============================================\n" + "=============================================\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "Combinaisons testees : 2187\n" + "Combinaisons testees : 2187\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "Solutions trouvees : 18\n" + "Solutions trouvees : 18\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "Ratio solutions : 0.82 %\n" + "Ratio solutions : 0,82 %\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "Temps brute force : 1.2 ms\n" + "Temps brute force : 0,8 ms\r\n" ] } ], @@ -994,13 +847,6 @@ "cell_type": "markdown", "id": "d0e6f2b8", "metadata": { - "papermill": { - "duration": 0.006394, - "end_time": "2026-09-27T07:23:40.754811+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:40.748417+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -1017,13 +863,6 @@ "cell_type": "markdown", "id": "fa31c9c5", "metadata": { - "papermill": { - "duration": 0.006973, - "end_time": "2026-09-27T07:23:40.768366+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:40.761393+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -1039,19 +878,6 @@ "execution_count": 8, "id": "48e72ae3", "metadata": { - "execution": { - "iopub.execute_input": "2026-09-27T07:23:40.783760Z", - "iopub.status.busy": "2026-09-27T07:23:40.783415Z", - "iopub.status.idle": "2026-09-27T07:23:40.919805Z", - "shell.execute_reply": "2026-09-27T07:23:40.919616Z" - }, - "papermill": { - "duration": 0.14487, - "end_time": "2026-09-27T07:23:40.919894+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:40.775024+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ @@ -1059,42 +885,42 @@ "name": "stdout", "output_type": "stream", "text": [ - "Backtracking simple - Coloration Australie\n" + "Backtracking simple - Coloration Australie\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "=============================================\n" + "=============================================\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "Solution : WA=Rouge, NT=Vert, SA=Bleu, Q=Rouge, NSW=Vert, V=Rouge, T=Rouge\n" + "Solution : WA=Rouge, NT=Vert, SA=Bleu, Q=Rouge, NSW=Vert, V=Rouge, T=Rouge\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "Assignations : ~11\n" + "Assignations : ~11\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "Temps : 0.53 ms\n" + "Temps : 0,39 ms\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "Validation : VALIDE\n" + "Validation : VALIDE\r\n" ] } ], @@ -1157,13 +983,6 @@ "cell_type": "markdown", "id": "f73333ce", "metadata": { - "papermill": { - "duration": 0.00668, - "end_time": "2026-09-27T07:23:40.933914+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:40.927234+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -1183,13 +1002,6 @@ "cell_type": "markdown", "id": "742479ab", "metadata": { - "papermill": { - "duration": 0.006522, - "end_time": "2026-09-27T07:23:40.947027+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:40.940505+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -1216,19 +1028,6 @@ "execution_count": 9, "id": "ec03ac6e", "metadata": { - "execution": { - "iopub.execute_input": "2026-09-27T07:23:40.962430Z", - "iopub.status.busy": "2026-09-27T07:23:40.962079Z", - "iopub.status.idle": "2026-09-27T07:23:41.029889Z", - "shell.execute_reply": "2026-09-27T07:23:41.029581Z" - }, - "papermill": { - "duration": 0.076423, - "end_time": "2026-09-27T07:23:41.030028+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:40.953605+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ @@ -1236,7 +1035,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "Heuristique MRV définie.\n" + "Heuristique MRV définie.\r\n" ] } ], @@ -1258,13 +1057,6 @@ "cell_type": "markdown", "id": "68deec77", "metadata": { - "papermill": { - "duration": 0.01089, - "end_time": "2026-09-27T07:23:41.051905+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:41.041015+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -1280,19 +1072,6 @@ "execution_count": 10, "id": "4e434bcb", "metadata": { - "execution": { - "iopub.execute_input": "2026-09-27T07:23:41.069774Z", - "iopub.status.busy": "2026-09-27T07:23:41.069453Z", - "iopub.status.idle": "2026-09-27T07:23:41.149273Z", - "shell.execute_reply": "2026-09-27T07:23:41.148897Z" - }, - "papermill": { - "duration": 0.089575, - "end_time": "2026-09-27T07:23:41.149419+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:41.059844+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ @@ -1300,63 +1079,63 @@ "name": "stdout", "output_type": "stream", "text": [ - "Assignation partielle : WA=Rouge, NT=Vert\n" + "Assignation partielle : WA=Rouge, NT=Vert\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "\n" + "\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "Variable Valeurs viables MRV Deg\n" + "Variable Valeurs viables MRV Deg\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "-------------------------------------------------------\n" + "-------------------------------------------------------\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "SA Bleu 1 3 <-- MRV\n" + "SA Bleu 1 3 <-- MRV\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "Q Rouge,Bleu 2 2\n" + "Q Rouge,Bleu 2 2\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "NSW Rouge,Vert,Bleu 3 3\n" + "NSW Rouge,Vert,Bleu 3 3\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "V Rouge,Vert,Bleu 3 2\n" + "V Rouge,Vert,Bleu 3 2\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "T Rouge,Vert,Bleu 3 0\n" + "T Rouge,Vert,Bleu 3 0\r\n" ] } ], @@ -1385,13 +1164,6 @@ "cell_type": "markdown", "id": "c5p1tr4n", "metadata": { - "papermill": { - "duration": 0.010544, - "end_time": "2026-09-27T07:23:41.169363+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:41.158819+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -1407,13 +1179,6 @@ "cell_type": "markdown", "id": "3757c66b", "metadata": { - "papermill": { - "duration": 0.007835, - "end_time": "2026-09-27T07:23:41.185353+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:41.177518+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -1433,19 +1198,6 @@ "execution_count": 11, "id": "51b6440b", "metadata": { - "execution": { - "iopub.execute_input": "2026-09-27T07:23:41.202758Z", - "iopub.status.busy": "2026-09-27T07:23:41.202484Z", - "iopub.status.idle": "2026-09-27T07:23:41.254834Z", - "shell.execute_reply": "2026-09-27T07:23:41.254641Z" - }, - "papermill": { - "duration": 0.061877, - "end_time": "2026-09-27T07:23:41.254924+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:41.193047+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ @@ -1453,7 +1205,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "Heuristique LCV définie.\n" + "Heuristique LCV définie.\r\n" ] } ], @@ -1483,13 +1235,6 @@ "cell_type": "markdown", "id": "c0258755", "metadata": { - "papermill": { - "duration": 0.00731, - "end_time": "2026-09-27T07:23:41.271551+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:41.264241+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -1507,19 +1252,6 @@ "execution_count": 12, "id": "858509d3", "metadata": { - "execution": { - "iopub.execute_input": "2026-09-27T07:23:41.294996Z", - "iopub.status.busy": "2026-09-27T07:23:41.294756Z", - "iopub.status.idle": "2026-09-27T07:23:41.361860Z", - "shell.execute_reply": "2026-09-27T07:23:41.361687Z" - }, - "papermill": { - "duration": 0.080085, - "end_time": "2026-09-27T07:23:41.361948+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:41.281863+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ @@ -1527,7 +1259,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "Backtracking amélioré défini (variantes contrôlées par useMRV/useLCV booléens).\n" + "Backtracking amélioré défini (variantes contrôlées par useMRV/useLCV booléens).\r\n" ] } ], @@ -1587,13 +1319,6 @@ "cell_type": "markdown", "id": "1628d0c4", "metadata": { - "papermill": { - "duration": 0.007488, - "end_time": "2026-09-27T07:23:41.377261+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:41.369773+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -1612,19 +1337,6 @@ "execution_count": 13, "id": "e02b0c4f", "metadata": { - "execution": { - "iopub.execute_input": "2026-09-27T07:23:41.394724Z", - "iopub.status.busy": "2026-09-27T07:23:41.394476Z", - "iopub.status.idle": "2026-09-27T07:23:41.492393Z", - "shell.execute_reply": "2026-09-27T07:23:41.492159Z" - }, - "papermill": { - "duration": 0.107001, - "end_time": "2026-09-27T07:23:41.492486+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:41.385485+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ @@ -1632,49 +1344,49 @@ "name": "stdout", "output_type": "stream", "text": [ - "Comparaison des variantes - Coloration Australie\n" + "Comparaison des variantes - Coloration Australie\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "=======================================================\n" + "=======================================================\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "Variante Assignations Temps (ms)\n" + "Variante Assignations Temps (ms)\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "--------------------------------------------------\n" + "--------------------------------------------------\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "Backtracking simple 102 1.08\n" + "Backtracking simple 102 0,78\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "+ MRV 102 0.41\n" + "+ MRV 102 0,24\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "+ MRV + LCV 102 1.03\n" + "+ MRV + LCV 102 0,76\r\n" ] } ], @@ -1710,13 +1422,6 @@ "cell_type": "markdown", "id": "f691a71f", "metadata": { - "papermill": { - "duration": 0.007676, - "end_time": "2026-09-27T07:23:41.508559+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:41.500883+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -1740,13 +1445,6 @@ "cell_type": "markdown", "id": "b40856f3", "metadata": { - "papermill": { - "duration": 0.007722, - "end_time": "2026-09-27T07:23:41.523667+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:41.515945+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -1772,19 +1470,6 @@ "execution_count": 14, "id": "28460e99", "metadata": { - "execution": { - "iopub.execute_input": "2026-09-27T07:23:41.540935Z", - "iopub.status.busy": "2026-09-27T07:23:41.540527Z", - "iopub.status.idle": "2026-09-27T07:23:42.214500Z", - "shell.execute_reply": "2026-09-27T07:23:42.214271Z" - }, - "papermill": { - "duration": 0.683291, - "end_time": "2026-09-27T07:23:42.214613+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:41.531322+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ @@ -1792,84 +1477,84 @@ "name": "stdout", "output_type": "stream", "text": [ - "Choco-solver - Coloration Australie\n" + "Choco-solver - Coloration Australie\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "=============================================\n" + "=============================================\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "Solution : {\n" + "Solution : {\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " WA = Rouge (0)\n" + " WA = Rouge (0)\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " NT = Vert (1)\n" + " NT = Vert (1)\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " SA = Bleu (2)\n" + " SA = Bleu (2)\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " Q = Rouge (0)\n" + " Q = Rouge (0)\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " NSW = Vert (1)\n" + " NSW = Vert (1)\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " V = Rouge (0)\n" + " V = Rouge (0)\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " T = Rouge (0)\n" + " T = Rouge (0)\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "}\n" + "}\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "Temps : 55.56 ms\n" + "Temps : 57,70 ms\r\n" ] } ], @@ -1917,13 +1602,6 @@ "cell_type": "markdown", "id": "d2d3ac0d", "metadata": { - "papermill": { - "duration": 0.008962, - "end_time": "2026-09-27T07:23:42.232884+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:42.223922+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -1947,19 +1625,6 @@ "execution_count": 15, "id": "e32623d6", "metadata": { - "execution": { - "iopub.execute_input": "2026-09-27T07:23:42.251953Z", - "iopub.status.busy": "2026-09-27T07:23:42.251614Z", - "iopub.status.idle": "2026-09-27T07:23:42.362560Z", - "shell.execute_reply": "2026-09-27T07:23:42.362344Z" - }, - "papermill": { - "duration": 0.121429, - "end_time": "2026-09-27T07:23:42.362663+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:42.241234+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ @@ -1967,63 +1632,63 @@ "name": "stdout", "output_type": "stream", "text": [ - "Nombre total de solutions : 18\n" + "Nombre total de solutions : 18\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "Temps énumération : 3.85 ms\n" + "Temps énumération : 2,26 ms\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "\n" + "\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "Premières 5 solutions :\n" + "Premières 5 solutions :\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " Solution 1 : { WA=Rouge, NT=Vert, SA=Bleu, Q=Rouge, NSW=Vert, V=Rouge, T=Rouge }\n" + " Solution 1 : { WA=Rouge, NT=Vert, SA=Bleu, Q=Rouge, NSW=Vert, V=Rouge, T=Rouge }\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " Solution 2 : { WA=Rouge, NT=Vert, SA=Bleu, Q=Rouge, NSW=Vert, V=Rouge, T=Vert }\n" + " Solution 2 : { WA=Rouge, NT=Vert, SA=Bleu, Q=Rouge, NSW=Vert, V=Rouge, T=Vert }\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " Solution 3 : { WA=Rouge, NT=Vert, SA=Bleu, Q=Rouge, NSW=Vert, V=Rouge, T=Bleu }\n" + " Solution 3 : { WA=Rouge, NT=Vert, SA=Bleu, Q=Rouge, NSW=Vert, V=Rouge, T=Bleu }\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " Solution 4 : { WA=Rouge, NT=Bleu, SA=Vert, Q=Rouge, NSW=Bleu, V=Rouge, T=Rouge }\n" + " Solution 4 : { WA=Rouge, NT=Bleu, SA=Vert, Q=Rouge, NSW=Bleu, V=Rouge, T=Rouge }\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " Solution 5 : { WA=Rouge, NT=Bleu, SA=Vert, Q=Rouge, NSW=Bleu, V=Rouge, T=Vert }\n" + " Solution 5 : { WA=Rouge, NT=Bleu, SA=Vert, Q=Rouge, NSW=Bleu, V=Rouge, T=Vert }\r\n" ] } ], @@ -2071,13 +1736,6 @@ "cell_type": "markdown", "id": "c7271b01", "metadata": { - "papermill": { - "duration": 0.008632, - "end_time": "2026-09-27T07:23:42.381524+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:42.372892+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -2096,13 +1754,6 @@ "cell_type": "markdown", "id": "7c5476d1", "metadata": { - "papermill": { - "duration": 0.008306, - "end_time": "2026-09-27T07:23:42.398454+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:42.390148+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -2116,19 +1767,6 @@ "execution_count": 16, "id": "4a683ace", "metadata": { - "execution": { - "iopub.execute_input": "2026-09-27T07:23:42.417689Z", - "iopub.status.busy": "2026-09-27T07:23:42.417456Z", - "iopub.status.idle": "2026-09-27T07:23:42.619220Z", - "shell.execute_reply": "2026-09-27T07:23:42.618907Z" - }, - "papermill": { - "duration": 0.212456, - "end_time": "2026-09-27T07:23:42.619335+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:42.406879+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ @@ -2136,91 +1774,91 @@ "name": "stdout", "output_type": "stream", "text": [ - "Solution 8-Reines :\n" + "Solution 8-Reines :\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " (col -> ligne) : 0->4, 1->6, 2->1, 3->5, 4->2, 5->0, 6->3, 7->7\n" + " (col -> ligne) : 0->4, 1->6, 2->1, 3->5, 4->2, 5->0, 6->3, 7->7\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "Temps : 18.68 ms\n" + "Temps : 14,08 ms\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "\n" + "\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "Echiquier (Q = reine) :\n" + "Echiquier (Q = reine) :\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " Ligne 7 | . . . . . . . Q \n" + " Ligne 7 | . . . . . . . Q \r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " Ligne 6 | . Q . . . . . . \n" + " Ligne 6 | . Q . . . . . . \r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " Ligne 5 | . . . Q . . . . \n" + " Ligne 5 | . . . Q . . . . \r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " Ligne 4 | Q . . . . . . . \n" + " Ligne 4 | Q . . . . . . . \r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " Ligne 3 | . . . . . . Q . \n" + " Ligne 3 | . . . . . . Q . \r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " Ligne 2 | . . . . Q . . . \n" + " Ligne 2 | . . . . Q . . . \r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " Ligne 1 | . . Q . . . . . \n" + " Ligne 1 | . . Q . . . . . \r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - " Ligne 0 | . . . . . Q . . \n" + " Ligne 0 | . . . . . Q . . \r\n" ] } ], @@ -2287,13 +1925,6 @@ "cell_type": "markdown", "id": "4bdd51fe", "metadata": { - "papermill": { - "duration": 0.009353, - "end_time": "2026-09-27T07:23:42.638578+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:42.629225+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -2318,13 +1949,6 @@ "cell_type": "markdown", "id": "f7b629b0", "metadata": { - "papermill": { - "duration": 0.009256, - "end_time": "2026-09-27T07:23:42.656636+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:42.647380+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -2334,20 +1958,13 @@ "\n", "**Pourquoi \"globale\" ?** Au lieu de coder $O(n^2)$ contraintes binaires `xi != xj` (qui laissent le solveur explorer tout l'espace par backtracking), `allDifferent` est traitée comme **une seule contrainte** par Choco via une **structure de couplage** (matching biparti, complexité $O(n\\sqrt{n})$ -- cf. [Regin 1994, *A Filtering Algorithm for Constraints of Différence in CSPs*, JAIR](https://www.jair.org/index.php/jair/article/view/10357)). Sur 4 variables de domaine `{1..4}`, le nombre de solutions tombe directement à $4! = 24$ **sans aucun backtracking** sur cette contrainte.\n", "\n", - "**Parité pédagogique avec le twin Python** : la jumeau Python ([CSP-1-Fundamentals.ipynb, section *AllDifferentConstraint*](CSP-1-Fundamentals.ipynb)) utilise la bibliothèque `python-constraint` et expose la même contrainte via `Problem.addConstraint(AllDifferentConstraint(), variables)`. La formulation Choco est plus déclarative (un seul appel) et intégrée au solveur ; la formulation Python est plus pédagogique (le constructeur `AllDifferentConstraint` est explicite, on voit comment il s'instancie). Même concept, deux implémentations SOTA.\n" + "**Parité pédagogique avec le twin Python** : la jumeau Python ([CSP-01-Fundamentals-Python.ipynb, section *AllDifferentConstraint*](CSP-01-Fundamentals-Python.ipynb)) utilise la bibliothèque `python-constraint` et expose la même contrainte via `Problem.addConstraint(AllDifferentConstraint(), variables)`. La formulation Choco est plus déclarative (un seul appel) et intégrée au solveur ; la formulation Python est plus pédagogique (le constructeur `AllDifferentConstraint` est explicite, on voit comment il s'instancie). Même concept, deux implémentations SOTA.\n" ] }, { "cell_type": "markdown", "id": "c514399d", "metadata": { - "papermill": { - "duration": 0.008991, - "end_time": "2026-09-27T07:23:42.675225+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:42.666234+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -2375,7 +1992,7 @@ "Console.WriteLine($\"Nombre de solutions : {solutionCount} (= 4! = 24)\");\n", "```\n", "\n", - "Sortie attendue : `24` lignes de la forme `A=1, B=2, C=3, D=4` ... `A=4, B=3, C=2, D=1` (toutes les permutations de `{1,2,3,4}`). Pour la runnable end-to-end, voir le twin Python ([CSP-1-Fundamentals.ipynb, cellule *Démonstration AllDifferentConstraint*](CSP-1-Fundamentals.ipynb)) qui utilise `python-constraint` (même résultat : $4! = 24$ solutions).\n", + "Sortie attendue : `24` lignes de la forme `A=1, B=2, C=3, D=4` ... `A=4, B=3, C=2, D=1` (toutes les permutations de `{1,2,3,4}`). Pour la runnable end-to-end, voir le twin Python ([CSP-01-Fundamentals-Python.ipynb, cellule *Démonstration AllDifferentConstraint*](CSP-01-Fundamentals-Python.ipynb)) qui utilise `python-constraint` (même résultat : $4! = 24$ solutions).\n", "\n", "| Aspect | `xi != xj` binaires (pairwise) | `allDifferent` global |\n", "|--------|--------------------------------|------------------------|\n", @@ -2398,13 +2015,6 @@ "cell_type": "markdown", "id": "1ad348f6", "metadata": { - "papermill": { - "duration": 0.008913, - "end_time": "2026-09-27T07:23:42.693323+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:42.684410+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -2438,13 +2048,6 @@ "cell_type": "markdown", "id": "c7e38188", "metadata": { - "papermill": { - "duration": 0.014654, - "end_time": "2026-09-27T07:23:42.720201+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:42.705547+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -2462,19 +2065,6 @@ "execution_count": 17, "id": "9643c3e5", "metadata": { - "execution": { - "iopub.execute_input": "2026-09-27T07:23:42.754591Z", - "iopub.status.busy": "2026-09-27T07:23:42.754176Z", - "iopub.status.idle": "2026-09-27T07:23:42.818106Z", - "shell.execute_reply": "2026-09-27T07:23:42.817849Z" - }, - "papermill": { - "duration": 0.082437, - "end_time": "2026-09-27T07:23:42.818210+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:42.735773+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ @@ -2482,14 +2072,14 @@ "name": "stdout", "output_type": "stream", "text": [ - "Exercice à compléter : 4-Reines avec backtracking manuel C#\n" + "Exercice à compléter : 4-Reines avec backtracking manuel C#\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "Solution attendue : 2 solutions symetriques.\n" + "Solution attendue : 2 solutions symetriques.\r\n" ] } ], @@ -2509,13 +2099,6 @@ "cell_type": "markdown", "id": "d6f9e788", "metadata": { - "papermill": { - "duration": 0.009479, - "end_time": "2026-09-27T07:23:42.837970+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:42.828491+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -2533,19 +2116,6 @@ "execution_count": 18, "id": "6060993d", "metadata": { - "execution": { - "iopub.execute_input": "2026-09-27T07:23:42.857951Z", - "iopub.status.busy": "2026-09-27T07:23:42.857643Z", - "iopub.status.idle": "2026-09-27T07:23:42.893414Z", - "shell.execute_reply": "2026-09-27T07:23:42.893180Z" - }, - "papermill": { - "duration": 0.046551, - "end_time": "2026-09-27T07:23:42.893510+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:42.846959+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ @@ -2553,7 +2123,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "Exercice de benchmark - decommentez pour tester\n" + "Exercice de benchmark - decommentez pour tester\r\n" ] } ], @@ -2572,13 +2142,6 @@ "cell_type": "markdown", "id": "753a31f5", "metadata": { - "papermill": { - "duration": 0.009996, - "end_time": "2026-09-27T07:23:42.913258+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:42.903262+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -2609,19 +2172,6 @@ "execution_count": 19, "id": "4d01fd8f", "metadata": { - "execution": { - "iopub.execute_input": "2026-09-27T07:23:42.933642Z", - "iopub.status.busy": "2026-09-27T07:23:42.933413Z", - "iopub.status.idle": "2026-09-27T07:23:42.968855Z", - "shell.execute_reply": "2026-09-27T07:23:42.968670Z" - }, - "papermill": { - "duration": 0.046322, - "end_time": "2026-09-27T07:23:42.968959+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:42.922637+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ @@ -2629,7 +2179,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "Exercice SEND + MORE = MONEY - decommentez pour tester\n" + "Exercice SEND + MORE = MONEY - decommentez pour tester\r\n" ] } ], @@ -2650,19 +2200,12 @@ "cell_type": "markdown", "id": "6bd4bdcf", "metadata": { - "papermill": { - "duration": 0.008898, - "end_time": "2026-09-27T07:23:42.987243+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:42.978345+00:00", - "status": "completed" - }, "tags": [] }, "source": [ "### Et ensuite ?\n", "\n", - "Ce notebook a couvert les **fondamentaux** des CSP en C# et introduit **Choco-solver 4.10.17** comme solveur SOTA via IKVM 8.15.0. Le notebook suivant, [CSP-2-Consistance](CSP-2-Consistency.ipynb), introduit les techniques de **propagation de contraintes** avancees :\n", + "Ce notebook a couvert les **fondamentaux** des CSP en C# et introduit **Choco-solver 4.10.17** comme solveur SOTA via IKVM 8.15.0. Le notebook suivant, [CSP-2-Consistance](CSP-02-Consistency-Python.ipynb), introduit les techniques de **propagation de contraintes** avancees :\n", "\n", "- **Forward Checking** : eliminer les valeurs inconsistantes des voisins à chaque assignation\n", "- **Arc Consistency (AC-3)** : rendre le CSP arc-consistent avant et pendant la recherche\n", @@ -2682,13 +2225,6 @@ "cell_type": "markdown", "id": "08476ffa", "metadata": { - "papermill": { - "duration": 0.009187, - "end_time": "2026-09-27T07:23:43.005429+00:00", - "exception": false, - "start_time": "2026-09-27T07:23:42.996242+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -2727,8 +2263,8 @@ "5. Les **applications** sont nombreuses : sudoku, emploi du temps, configuration, vérification\n", "\n", "**Voir aussi** :\n", - "- [CSP-2-Consistency.ipynb](CSP-2-Consistency.ipynb) pour les algorithmes de consistance (AC-3, forward checking)\n", - "- [CSP-3-Advanced-CSharp.ipynb](CSP-3-Advanced-CSharp.ipynb) - Contraintes globales et optimisation multi-objectif" + "- [CSP-02-Consistency-Python.ipynb](CSP-02-Consistency-Python.ipynb) pour les algorithmes de consistance (AC-3, forward checking)\n", + "- [CSP-03-Advanced-CSharp.ipynb](CSP-03-Advanced-CSharp.ipynb) - Contraintes globales et optimisation multi-objectif" ] } ], @@ -2753,9 +2289,9 @@ "coursia": { "epic": "#4956", "ikvm": "8.15.0", - "parite_python": "CSP-1-Fundamentals.ipynb", + "parite_python": "CSP-01-Fundamentals-Python.ipynb", "solveur_sota": "Choco-solver 4.10.17", - "tranche": "5 (CSP-1-Fundamentals-CSharp)" + "tranche": "5 (CSP-01-Fundamentals-CSharp)" }, "kernelspec": { "display_name": ".NET (C#)", @@ -2768,18 +2304,6 @@ "name": "C#", "pygments_lexer": "csharp", "version": "13.0" - }, - "papermill": { - "default_parameters": {}, - "duration": 15.217674, - "end_time": "2026-09-27T07:23:43.131096+00:00", - "environment_variables": {}, - "exception": null, - "input_path": "CSP-1-Fundamentals-CSharp.ipynb", - "output_path": "CSP-1-Fundamentals-CSharp.ipynb", - "parameters": {}, - "start_time": "2026-09-27T07:23:27.913422+00:00", - "version": "2.7.0" } }, "nbformat": 4, diff --git a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb similarity index 99% rename from MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb rename to MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb index 9908d5ccdae..6d036e887fe 100644 --- a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb +++ b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb @@ -16,7 +16,7 @@ "source": [ "# CSP-1 : Fondamentaux des CSP\n", "\n", - "**Navigation** : [<< Search-5 GeneticAlgorithms](../Part1-Foundations/Search-05-GeneticAlgorithms.ipynb) | [Index CSP](README.md) | [CSP-2-Consistance >>](CSP-2-Consistency.ipynb)\n", + "**Navigation** : [<< Search-5 GeneticAlgorithms](../Part1-Foundations/Search-05-GeneticAlgorithms.ipynb) | [Index CSP](README.md) | [CSP-2-Consistance >>](CSP-02-Consistency-Python.ipynb)\n", "\n", "## Problèmes de Satisfaction de Contraintes - Fondamentaux\n", "\n", @@ -3026,7 +3026,7 @@ "***\n", "## 6bis. Tranche lib-vs-lib : le même solveur que le jumeau .NET -- Choco via pychoco (~6 min)\n", "\n", - "La section 6 a utilise `python-constraint`, un moteur CSP pur Python. Le **jumeau .NET** de ce notebook ([CSP-1-Fundamentals-CSharp](CSP-1-Fundamentals-CSharp.ipynb)) resout ces mêmes problèmes avec **Choco-solver 4.10.17** (solveur Java industriel, Apache-2.0) via le pont IKVM.\n", + "La section 6 a utilise `python-constraint`, un moteur CSP pur Python. Le **jumeau .NET** de ce notebook ([CSP-01-Fundamentals-CSharp](CSP-01-Fundamentals-CSharp.ipynb)) resout ces mêmes problèmes avec **Choco-solver 4.10.17** (solveur Java industriel, Apache-2.0) via le pont IKVM.\n", "\n", "`pychoco` (PyPI, MIT) est le binding Python officiel du **même solveur Choco** : avec lui, les deux jumeaux atteignent le **même moteur de production** -- l'un via pont .NET/IKVM, l'autre via binding natif Python. C'est la parite *lib-vs-lib* stricte (gabarit Tweety-5 : socle from-scratch en tranche 1, lib reelle en tranche 2).\n", "\n", @@ -3439,7 +3439,7 @@ "source": [ "***\n", "\n", - "**Navigation** : [<< Search-5 GeneticAlgorithms](../Part1-Foundations/Search-05-GeneticAlgorithms.ipynb) | [Index CSP](README.md) | [CSP-2-Consistance >>](CSP-2-Consistency.ipynb)\n" + "**Navigation** : [<< Search-5 GeneticAlgorithms](../Part1-Foundations/Search-05-GeneticAlgorithms.ipynb) | [Index CSP](README.md) | [CSP-2-Consistance >>](CSP-02-Consistency-Python.ipynb)\n" ] }, { @@ -3960,7 +3960,7 @@ "source": [ "### Et ensuite ?\n", "\n", - "Ce notebook a couvert les **fondamentaux** des CSP : formalisme, backtracking avec heuristiques, et utilisation de la bibliothèque `python-constraint`. Le notebook suivant, [CSP-2-Consistance](CSP-2-Consistency.ipynb), introduit les techniques de **propagation de contraintes** :\n", + "Ce notebook a couvert les **fondamentaux** des CSP : formalisme, backtracking avec heuristiques, et utilisation de la bibliothèque `python-constraint`. Le notebook suivant, [CSP-2-Consistance](CSP-02-Consistency-Python.ipynb), introduit les techniques de **propagation de contraintes** :\n", "\n", "- **Forward Checking** : éliminer les valeurs inconsistantes des voisins à chaque assignation\n", "- **Arc Consistency (AC-3)** : rendre le CSP arc-consistent avant et pendant la recherche\n", @@ -4025,7 +4025,7 @@ "5. Les **applications** sont nombreuses : sudoku, emploi du temps, configuration\n", "\n", "**Voir aussi** :\n", - "- [CSP-2-Consistency.ipynb](CSP-2-Consistency.ipynb) pour les algorithmes de consistance (AC-3, forward checking)\n", + "- [CSP-02-Consistency-Python.ipynb](CSP-02-Consistency-Python.ipynb) pour les algorithmes de consistance (AC-3, forward checking)\n", "- [App-01-NQueens-Python.ipynb](../Part3-Cas-pratiques/App-01-NQueens-Python.ipynb) - Application classique" ] } @@ -4071,8 +4071,8 @@ "end_time": "2026-11-02T21:13:36.040494+00:00", "environment_variables": {}, "exception": null, - "input_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", - "output_path": "CSP-1-Fundamentals.ipynb", + "input_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", + "output_path": "CSP-01-Fundamentals-Python.ipynb", "parameters": {}, "start_time": "2026-11-02T21:13:29.681879+00:00", "version": "2.7.0" diff --git a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb similarity index 55% rename from MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb rename to MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb index 6354f50bcaa..1a256591f55 100644 --- a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb +++ b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb @@ -19,13 +19,13 @@ "source": [ "# CSP-2 : Propagation de Contraintes et Consistance - Version .NET\n", "\n", - "**Navigation** : [<< CSP-1-Fundamentals](CSP-1-Fundamentals.ipynb) | [Index](../README.md) | [CSP-3-Advanced >>](CSP-3-Advanced.ipynb) | [Version Python](CSP-2-Consistency.ipynb)\n", + "**Navigation** : [<< CSP-01-Fundamentals-Python](CSP-01-Fundamentals-Python.ipynb) | [Index](../README.md) | [CSP-03-Advanced-Python >>](CSP-03-Advanced-Python.ipynb) | [Version Python](CSP-02-Consistency-Python.ipynb)\n", "\n", - "**Série .NET** : [<< CSP-1-Fundamentals-CSharp](CSP-1-Fundamentals-CSharp.ipynb) | [Index](../README.md) | [CSP-3-Advanced-CSharp >>](CSP-3-Advanced-CSharp.ipynb)\n", + "**Série .NET** : [<< CSP-01-Fundamentals-CSharp](CSP-01-Fundamentals-CSharp.ipynb) | [Index](../README.md) | [CSP-03-Advanced-CSharp >>](CSP-03-Advanced-CSharp.ipynb)\n", "\n", "## Propagation de Contraintes et Consistance (.NET / Choco-solver via IKVM)\n", "\n", - "Ce notebook est le **binome .NET** du notebook Python [CSP-2-Consistency.ipynb](CSP-2-Consistency.ipynb). Nous y implementons les mêmes algorithmes en C# (node consistency, AC-3, Forward Checking, MAC), puis utilisons **Choco-solver 4.10.17** (via **IKVM 8.15.0**) comme solveur SOTA pour comparer.\n", + "Ce notebook est le **binome .NET** du notebook Python [CSP-02-Consistency-Python.ipynb](CSP-02-Consistency-Python.ipynb). Nous y implementons les mêmes algorithmes en C# (node consistency, AC-3, Forward Checking, MAC), puis utilisons **Choco-solver 4.10.17** (via **IKVM 8.15.0**) comme solveur SOTA pour comparer.\n", "\n", "### Objectifs d apprentissage\n", "\n", @@ -37,7 +37,7 @@ "5. **Choisir** le bon niveau de consistance selon le problème (Bloom : evaluer)\n", "\n", "### Prérequis\n", - "- [CSP-1-Fundamentals.ipynb](CSP-1-Fundamentals.ipynb) ou [CSP-1-Fundamentals-CSharp.ipynb](CSP-1-Fundamentals-CSharp.ipynb)\n", + "- [CSP-01-Fundamentals-Python.ipynb](CSP-01-Fundamentals-Python.ipynb) ou [CSP-01-Fundamentals-CSharp.ipynb](CSP-01-Fundamentals-CSharp.ipynb)\n", "- Bases de C# (classes, dictionnaires, récursivité)\n", "- Notions de graphes de contraintes\n", "\n", @@ -45,8 +45,8 @@ "\n", "### Lien avec d autres series\n", "\n", - "- **Parite Python** : [CSP-2-Consistency.ipynb](CSP-2-Consistency.ipynb) -- même plan, version Python\n", - "- **Jurisprudence** : [CSP-4-Scheduling-CSharp.ipynb](CSP-4-Scheduling-CSharp.ipynb) -- IKVM 8.15.0 + DLL Choco pre-deployee\n", + "- **Parite Python** : [CSP-02-Consistency-Python.ipynb](CSP-02-Consistency-Python.ipynb) -- même plan, version Python\n", + "- **Jurisprudence** : [CSP-04-Scheduling-CSharp.ipynb](CSP-04-Scheduling-CSharp.ipynb) -- IKVM 8.15.0 + DLL Choco pre-deployee\n", "\n", "### Bibliographie\n", "- Russell, S. & Norvig, P. (2020), *Artificial Intelligence: A Modern Approach* (4e ed.), Pearson -- chapitre 6 sur les CSP.\n", @@ -63,10 +63,10 @@ }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Repertoire de travail: Part2-CSP\n" + "Repertoire de travail: Part2-CSP\r\n" ] } ], @@ -81,10 +81,10 @@ " var dir = new DirectoryInfo(Directory.GetCurrentDirectory());\n", " while (dir != null)\n", " {\n", - " if (File.Exists(Path.Combine(dir.FullName, \"CSP-1-Fundamentals.ipynb\")))\n", + " if (File.Exists(Path.Combine(dir.FullName, \"CSP-01-Fundamentals-Python.ipynb\")))\n", " return dir.FullName;\n", " var candidate = Path.Combine(dir.FullName, \"MyIA.AI.Notebooks\", \"Search\", \"Part2-CSP\");\n", - " if (Directory.Exists(candidate) && File.Exists(Path.Combine(candidate, \"CSP-1-Fundamentals.ipynb\")))\n", + " if (Directory.Exists(candidate) && File.Exists(Path.Combine(candidate, \"CSP-01-Fundamentals-Python.ipynb\")))\n", " return candidate;\n", " dir = dir.Parent;\n", " }\n", @@ -115,19 +115,19 @@ }, "outputs": [ { + "output_type": "display_data", "data": { "text/html": [ - "
Installed Packages
" + "
Installing Packages
" ] }, - "metadata": {}, - "output_type": "display_data" + "metadata": {} }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "IKVM 8.15.0 pret (home=ikvm-home-8.15.0-linux-x64, tzdb=True) - Choco-solver charge\n" + "IKVM 8.15.0 pret (home=ikvm-home-8.15.0-win-x64, tzdb=True) - Choco-solver charge\r\n" ] } ], @@ -201,10 +201,10 @@ }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Choco-solver via IKVM 8.15.0 - Pret pour propagation et consistance\n" + "Choco-solver via IKVM 8.15.0 - Pret pour propagation et consistance\r\n" ] } ], @@ -242,7 +242,7 @@ "source": [ "## 1. Pourquoi la propagation de contraintes ?\n", "\n", - "Dans le notebook [CSP-1-Fundamentals](CSP-1-Fundamentals.ipynb), nous avons vu que la recherche en profondeur (backtracking) peut etre très inefficace : sur 8-Reines (avec diagonales), le backtracking naïf explore **876 noeuds** avant de trouver une solution (cf. `Comparaison BT vs FC vs MAC` plus bas dans ce notebook). La **propagation de contraintes** (contraintes unaires et binaires) réduit l espace de recherche **avant** ou **pendant** la recherche en eliminant les valeurs incompatibles.\n", + "Dans le notebook [CSP-01-Fundamentals-Python](CSP-01-Fundamentals-Python.ipynb), nous avons vu que la recherche en profondeur (backtracking) peut etre très inefficace : sur 8-Reines (avec diagonales), le backtracking naïf explore **876 noeuds** avant de trouver une solution (cf. `Comparaison BT vs FC vs MAC` plus bas dans ce notebook). La **propagation de contraintes** (contraintes unaires et binaires) réduit l espace de recherche **avant** ou **pendant** la recherche en eliminant les valeurs incompatibles.\n", "\n", "### Trois niveaux de consistance\n", "\n", @@ -278,15 +278,15 @@ }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Classes CSP et BinaryConstraint definies (C#/.NET)\n" + "Classes CSP et BinaryConstraint definies (C#/.NET)\r\n" ] } ], "source": [ - "// Definition de la classe CSP en C# (meme structure que CSP-1-Fundamentals-CSharp.ipynb)\n", + "// Definition de la classe CSP en C# (meme structure que CSP-01-Fundamentals-CSharp.ipynb)\n", "using System;\n", "using System.Collections.Generic;\n", "using System.Linq;\n", @@ -378,17 +378,17 @@ }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Australie : CSP(7 variables, 9 contraintes binaires)\n" + "Australie : CSP(7 variables, 9 contraintes binaires)\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "N-Reines (8x8) : CSP(8 variables, 28 contraintes binaires)\n" + "N-Reines (8x8) : CSP(8 variables, 28 contraintes binaires)\r\n" ] } ], @@ -495,31 +495,31 @@ }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Garde diagonale (#7721) :\n" + "Garde diagonale (#7721) :\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " IsConsistent({Q0:0, Q1:1}) = False (attendu : False, attaque en diagonale)\n" + " IsConsistent({Q0:0, Q1:1}) = False (attendu : False, attaque en diagonale)\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " IsConsistent({Q0:0, Q1:4}) = True (attendu : True, pas d'attaque)\n" + " IsConsistent({Q0:0, Q1:4}) = True (attendu : True, pas d'attaque)\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " -> OK : contrainte diagonale active (Bug 1 maitrise)\n" + " -> OK : contrainte diagonale active (Bug 1 maitrise)\r\n" ] } ], @@ -572,59 +572,59 @@ }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Domaines apres node consistency (WA != Rouge) :\n" + "Domaines apres node consistency (WA != Rouge) :\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " WA : [Vert, Bleu]\n" + " WA : [Vert, Bleu]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " NT : [Rouge, Vert, Bleu]\n" + " NT : [Rouge, Vert, Bleu]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " SA : [Rouge, Vert, Bleu]\n" + " SA : [Rouge, Vert, Bleu]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Q : [Rouge, Vert, Bleu]\n" + " Q : [Rouge, Vert, Bleu]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " NSW : [Rouge, Vert, Bleu]\n" + " NSW : [Rouge, Vert, Bleu]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " V : [Rouge, Vert, Bleu]\n" + " V : [Rouge, Vert, Bleu]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " T : [Rouge, Vert, Bleu]\n" + " T : [Rouge, Vert, Bleu]\r\n" ] } ], @@ -704,10 +704,10 @@ }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Fonction Revise definie (operation de base d AC-3)\n" + "Fonction Revise definie (operation de base d AC-3)\r\n" ] } ], @@ -757,10 +757,10 @@ }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Fonction AC3 definie (Mackworth 1977)\n" + "Fonction AC3 definie (Mackworth 1977)\r\n" ] } ], @@ -814,136 +814,136 @@ }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Domaines AVANT AC-3 :\n" + "Domaines AVANT AC-3 :\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " WA : 3 valeurs\n" + " WA : 3 valeurs\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " NT : 3 valeurs\n" + " NT : 3 valeurs\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " SA : 3 valeurs\n" + " SA : 3 valeurs\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Q : 3 valeurs\n" + " Q : 3 valeurs\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " NSW : 3 valeurs\n" + " NSW : 3 valeurs\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " V : 3 valeurs\n" + " V : 3 valeurs\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " T : 3 valeurs\n" + " T : 3 valeurs\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "\n" + "\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Apres AC-3 : 0 revisions d arcs effectuees\n" + "Apres AC-3 : 0 revisions d arcs effectuees\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "\n" + "\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Domaines APRES AC-3 :\n" + "Domaines APRES AC-3 :\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " WA : 3 valeurs [Rouge, Vert, Bleu]\n" + " WA : 3 valeurs [Rouge, Vert, Bleu]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " NT : 3 valeurs [Rouge, Vert, Bleu]\n" + " NT : 3 valeurs [Rouge, Vert, Bleu]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " SA : 3 valeurs [Rouge, Vert, Bleu]\n" + " SA : 3 valeurs [Rouge, Vert, Bleu]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Q : 3 valeurs [Rouge, Vert, Bleu]\n" + " Q : 3 valeurs [Rouge, Vert, Bleu]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " NSW : 3 valeurs [Rouge, Vert, Bleu]\n" + " NSW : 3 valeurs [Rouge, Vert, Bleu]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " V : 3 valeurs [Rouge, Vert, Bleu]\n" + " V : 3 valeurs [Rouge, Vert, Bleu]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " T : 3 valeurs [Rouge, Vert, Bleu]\n" + " T : 3 valeurs [Rouge, Vert, Bleu]\r\n" ] } ], @@ -1005,136 +1005,136 @@ }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Domaines AVANT AC-3 (apres WA = Rouge) :\n" + "Domaines AVANT AC-3 (apres WA = Rouge) :\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " WA : [Rouge]\n" + " WA : [Rouge]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " NT : [Rouge, Vert, Bleu]\n" + " NT : [Rouge, Vert, Bleu]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " SA : [Rouge, Vert, Bleu]\n" + " SA : [Rouge, Vert, Bleu]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Q : [Rouge, Vert, Bleu]\n" + " Q : [Rouge, Vert, Bleu]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " NSW : [Rouge, Vert, Bleu]\n" + " NSW : [Rouge, Vert, Bleu]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " V : [Rouge, Vert, Bleu]\n" + " V : [Rouge, Vert, Bleu]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " T : [Rouge, Vert, Bleu]\n" + " T : [Rouge, Vert, Bleu]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "\n" + "\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Apres AC-3 : 2 revisions d arcs\n" + "Apres AC-3 : 2 revisions d arcs\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "\n" + "\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Domaines APRES AC-3 :\n" + "Domaines APRES AC-3 :\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " WA : [Rouge]\n" + " WA : [Rouge]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " NT : [Vert, Bleu]\n" + " NT : [Vert, Bleu]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " SA : [Vert, Bleu]\n" + " SA : [Vert, Bleu]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Q : [Rouge, Vert, Bleu]\n" + " Q : [Rouge, Vert, Bleu]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " NSW : [Rouge, Vert, Bleu]\n" + " NSW : [Rouge, Vert, Bleu]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " V : [Rouge, Vert, Bleu]\n" + " V : [Rouge, Vert, Bleu]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " T : [Rouge, Vert, Bleu]\n" + " T : [Rouge, Vert, Bleu]\r\n" ] } ], @@ -1198,43 +1198,45 @@ }, "outputs": [ { + "output_type": "display_data", "data": { "text/html": [ - "
Installed Packages
" + "
Installing Packages
" ] }, - "metadata": {}, - "output_type": "display_data" + "metadata": {} }, { + "output_type": "display_data", "data": { - "text/plain": [] + "text/plain": [ + + ] }, - "metadata": {}, - "output_type": "display_data" + "metadata": {} }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Tailles avant -> apres AC-3 : WA: 1 -> 1, NT: 3 -> 2, SA: 3 -> 2, Q: 3 -> 3, NSW: 3 -> 3, V: 3 -> 3, T: 3 -> 3\n" + "Tailles avant -> apres AC-3 : WA: 1 -> 1, NT: 3 -> 2, SA: 3 -> 2, Q: 3 -> 3, NSW: 3 -> 3, V: 3 -> 3, T: 3 -> 3\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Graphique ScottPlot prepare : comparaison avant/apres AC-3 (7 variables)\n" + "Graphique ScottPlot prepare : comparaison avant/apres AC-3 (7 variables)\r\n" ] }, { + "output_type": "display_data", "data": { "text/html": [ - "" + "" ] }, - "metadata": {}, - "output_type": "display_data" + "metadata": {} } ], "source": [ @@ -1309,38 +1311,38 @@ }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Chemin A-B-C (2 couleurs) apres AC-3 :\n" + "Chemin A-B-C (2 couleurs) apres AC-3 :\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " A : [0]\n" + " A : [0]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " B : [1]\n" + " B : [1]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " C : [0]\n" + " C : [0]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Revisions : 2\n" + "Revisions : 2\r\n" ] } ], @@ -1352,7 +1354,7 @@ " [\"B\"] = new List { 0, 1 },\n", " [\"C\"] = new List { 0, 1 }\n", "};\n", - "// Fixer A = 0 avant AC-3 (mirror Python twin CSP-2-Consistency.ipynb cell 23 : doms_small['A'] = ['R']).\n", + "// Fixer A = 0 avant AC-3 (mirror Python twin CSP-02-Consistency-Python.ipynb cell 23 : doms_small['A'] = ['R']).\n", "// Sans cette assignation, le chemin A-B-C a 2 couleurs est deja arc-consistant -> AC-3 reduirait a 0 revision.\n", "pathDomains[\"A\"] = new List { 0 };\n", "BinaryConstraint diffBin = (vi, vj) => !vi.Equals(vj);\n", @@ -1430,73 +1432,73 @@ }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Choco solveur : solved = True, solutions trouvees = 1\n" + "Choco solveur : solved = True, solutions trouvees = 1\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "\n" + "\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Assignation trouvee par Choco :\n" + "Assignation trouvee par Choco :\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " WA = 1\n" + " WA = 1\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " NT = 3\n" + " NT = 3\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " SA = 2\n" + " SA = 2\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Q = 1\n" + " Q = 1\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " NSW = 3\n" + " NSW = 3\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " V = 1\n" + " V = 1\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " T = 1\n" + " T = 1\r\n" ] } ], @@ -1598,10 +1600,10 @@ }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "BacktrackingFC defini (avec heuristique MRV)\n" + "BacktrackingFC defini (avec heuristique MRV)\r\n" ] } ], @@ -1673,38 +1675,38 @@ }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "8-Reines + Forward Checking :\n" + "8-Reines + Forward Checking :\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Noeuds explores : 75\n" + " Noeuds explores : 75\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Temps : 7.2 ms\n" + " Temps : 2,7 ms\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Solution trouvee : OUI\n" + " Solution trouvee : OUI\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Assignation : Q0->0 Q1->4 Q2->7 Q3->5 Q4->2 Q5->6 Q6->1 Q7->3\n" + " Assignation : Q0->0 Q1->4 Q2->7 Q3->5 Q4->2 Q5->6 Q6->1 Q7->3\r\n" ] } ], @@ -1766,10 +1768,10 @@ }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "BacktrackingMAC defini (FC + AC-3 apres chaque assignation)\n" + "BacktrackingMAC defini (FC + AC-3 apres chaque assignation)\r\n" ] } ], @@ -1829,31 +1831,31 @@ }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "8-Reines + MAC :\n" + "8-Reines + MAC :\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Noeuds explores : 20\n" + " Noeuds explores : 20\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Temps : 13.9 ms\n" + " Temps : 4,1 ms\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Solution trouvee : OUI\n" + " Solution trouvee : OUI\r\n" ] } ], @@ -1905,31 +1907,31 @@ }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Comparaison BT vs FC vs MAC sur 8-Reines :\n" + "Comparaison BT vs FC vs MAC sur 8-Reines :\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " BT (no propagation) : 876 noeuds, 29.0 ms\n" + " BT (no propagation) : 876 noeuds, 9,0 ms\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " FC (forward check) : 75 noeuds, 7.2 ms\n" + " FC (forward check) : 75 noeuds, 2,7 ms\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " MAC (AC-3 complet) : 20 noeuds, 13.9 ms\n" + " MAC (AC-3 complet) : 20 noeuds, 4,1 ms\r\n" ] } ], @@ -2002,20 +2004,20 @@ }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Graphique prepare : BT=876, FC=75, MAC=20 noeuds\n" + "Graphique prepare : BT=876, FC=75, MAC=20 noeuds\r\n" ] }, { + "output_type": "display_data", "data": { "text/html": [ - "" + "" ] }, - "metadata": {}, - "output_type": "display_data" + "metadata": {} } ], "source": [ @@ -2149,10 +2151,10 @@ }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Exercice a completer\n" + "Exercice a completer\r\n" ] } ], @@ -2198,10 +2200,10 @@ }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Exercice a completer\n" + "Exercice a completer\r\n" ] } ], @@ -2245,10 +2247,10 @@ }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Exercice a completer\n" + "Exercice a completer\r\n" ] } ], @@ -2317,12 +2319,12 @@ "\n", "### Voir aussi\n", "\n", - "- [CSP-1-Fundamentals.ipynb](CSP-1-Fundamentals.ipynb) -- version Python du CSP-1\n", - "- [CSP-1-Fundamentals-CSharp.ipynb](CSP-1-Fundamentals-CSharp.ipynb) -- binome .NET du CSP-1\n", - "- [CSP-3-Advanced.ipynb](CSP-3-Advanced.ipynb) -- techniques avancees (variable ordering, AC-4)\n", - "- [CSP-4-Scheduling-CSharp.ipynb](CSP-4-Scheduling-CSharp.ipynb) -- IKVM 8.15.0 + Choco + OR-Tools pour scheduling\n", + "- [CSP-01-Fundamentals-Python.ipynb](CSP-01-Fundamentals-Python.ipynb) -- version Python du CSP-1\n", + "- [CSP-01-Fundamentals-CSharp.ipynb](CSP-01-Fundamentals-CSharp.ipynb) -- binome .NET du CSP-1\n", + "- [CSP-03-Advanced-Python.ipynb](CSP-03-Advanced-Python.ipynb) -- techniques avancees (variable ordering, AC-4)\n", + "- [CSP-04-Scheduling-CSharp.ipynb](CSP-04-Scheduling-CSharp.ipynb) -- IKVM 8.15.0 + Choco + OR-Tools pour scheduling\n", "- [EPIC #4956](https://github.com/jsboige/CoursIA/issues/4956) -- parite .NET ⇄ Python des series de notebooks\n", - "- [CSP-2-Consistency.ipynb](CSP-2-Consistency.ipynb) -- version Python de ce notebook\n", + "- [CSP-02-Consistency-Python.ipynb](CSP-02-Consistency-Python.ipynb) -- version Python de ce notebook\n", "- Issue [#7721](https://github.com/jsboige/CoursIA/issues/7721) -- 8-Reines CSP degeneree : la diagonale `|i-j| == |vi-vj|` fixee par [#7729](https://github.com/jsboige/CoursIA/pull/7729) avant la mesure (Bug 1 contournait la contrainte diagonale, sous-estimant artificiellement BT et MAC)\n", "- Issue [#7779](https://github.com/jsboige/CoursIA/issues/7779) -- alignement recap sur les vraies mesures (cette PR)\n", "\n", @@ -2374,4 +2376,4 @@ }, "nbformat": 4, "nbformat_minor": 5 -} +} \ No newline at end of file diff --git a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb similarity index 99% rename from MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb rename to MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb index 28610e0dcc8..deb4225fdbb 100644 --- a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb +++ b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb @@ -16,7 +16,7 @@ "source": [ "# CSP-2 : Propagation de Contraintes et Consistance\n", "\n", - "**Navigation** : [<< CSP-1-Fondamentaux](CSP-1-Fundamentals.ipynb) | [Index CSP](README.md) | [CSP-3-Avance >>](CSP-3-Advanced.ipynb)\n", + "**Navigation** : [<< CSP-1-Fondamentaux](CSP-01-Fundamentals-Python.ipynb) | [Index CSP](README.md) | [CSP-3-Avance >>](CSP-03-Advanced-Python.ipynb)\n", "\n", "## Propagation de Contraintes et Consistance\n", "\n", @@ -1685,7 +1685,7 @@ "source": [ "### 3.6 Tranche lib-vs-lib : la propagation native du solveur Choco (pychoco)\n", "\n", - "Notre AC-3 maison (section 3) est un algorithme de **propagation** : il réduit les domaines mais n'assigne rien. Un solveur industriel comme **Choco-solver** intègre natement cette propagation **dans** la recherche : à chaque décision, les domaines sont filtrés avant l'exploration. Le **jumeau .NET** de ce notebook ([CSP-2-Consistency-CSharp](CSP-2-Consistency-CSharp.ipynb)) montre exactement cette cellule avec Choco via le pont IKVM ; ici nous la rejouons avec **pychoco** (binding Python officiel du même moteur Choco) — les deux jumeaux atteignent le même solveur de production.\n", + "Notre AC-3 maison (section 3) est un algorithme de **propagation** : il réduit les domaines mais n'assigne rien. Un solveur industriel comme **Choco-solver** intègre natement cette propagation **dans** la recherche : à chaque décision, les domaines sont filtrés avant l'exploration. Le **jumeau .NET** de ce notebook ([CSP-02-Consistency-CSharp](CSP-02-Consistency-CSharp.ipynb)) montre exactement cette cellule avec Choco via le pont IKVM ; ici nous la rejouons avec **pychoco** (binding Python officiel du même moteur Choco) — les deux jumeaux atteignent le même solveur de production.\n", "\n", "Nous reprenons le modèle de la cellule « AC-3 après assignation » : Australie, 3 couleurs, `WA = 1` (Rouge) fixé.\n" ] @@ -3191,7 +3191,7 @@ "\n", "### Et ensuite ?\n", "\n", - "Le prochain notebook [CSP-3-Avance](CSP-3-Advanced.ipynb) abordera :\n", + "Le prochain notebook [CSP-3-Avance](CSP-03-Advanced-Python.ipynb) abordera :\n", "- Les **contraintes globales** (AllDifferent, etc.) et leur propagation specialisee\n", "- La **recherche locale** pour les CSP (Min-Conflicts)\n", "- Les **CSP d'optimisation** (COP)\n", @@ -3222,7 +3222,7 @@ "\n", "Ce notebook a couvert les techniques fondamentales de propagation de contraintes pour les CSP : la **consistance de noeud** (contraintes unaires), la **consistance d'arc** avec l'algorithme AC-3, le **Forward Checking** (propagation 1 niveau) et le **MAC** (propagation complete en cascade). Les benchmarks sur les N-Reines ont montre que MAC réduit le nombre d'assignations d'un facteur 40x par rapport au backtracking pur, confirmant que l'overhead de propagation est largement compense par la reduction de l'espace explore.\n", "\n", - "Ces techniques constituent le socle des solveurs CSP industriels comme OR-Tools. Le prochain notebook [CSP-3-Avance](CSP-3-Advanced.ipynb) etendra ces concepts aux contraintes globales (AllDifferent), a la recherche locale (Min-Conflicts) et aux problèmes d'optimisation (COP), avec des applications directes en ordonnancement et planification." + "Ces techniques constituent le socle des solveurs CSP industriels comme OR-Tools. Le prochain notebook [CSP-3-Avance](CSP-03-Advanced-Python.ipynb) etendra ces concepts aux contraintes globales (AllDifferent), a la recherche locale (Min-Conflicts) et aux problèmes d'optimisation (COP), avec des applications directes en ordonnancement et planification." ] }, { @@ -3266,8 +3266,8 @@ "source": [ "## Pour aller plus loin\n", "\n", - "- **Carnet suivant** : [CSP-3-Advanced.ipynb](CSP-3-Advanced.ipynb) — les contraintes globales (AllDifferent, Cumulative, Circuit, Table), la recherche locale (Min-Conflicts) et les CSP d'optimisation : la propagation devient une brique de solveurs industriels.\n", - "- **Carnets voisins** : [CSP-1-Fundamentals.ipynb](CSP-1-Fundamentals.ipynb) — le modèle CSP, le backtracking et l'heuristique MRV qui servent de référence ici ; [CSP-6-Hybridization.ipynb](CSP-6-Hybridization.ipynb) — la frontière avec la génération de contraintes.\n", + "- **Carnet suivant** : [CSP-03-Advanced-Python.ipynb](CSP-03-Advanced-Python.ipynb) — les contraintes globales (AllDifferent, Cumulative, Circuit, Table), la recherche locale (Min-Conflicts) et les CSP d'optimisation : la propagation devient une brique de solveurs industriels.\n", + "- **Carnets voisins** : [CSP-01-Fundamentals-Python.ipynb](CSP-01-Fundamentals-Python.ipynb) — le modèle CSP, le backtracking et l'heuristique MRV qui servent de référence ici ; [CSP-06-Hybridization-Python.ipynb](CSP-06-Hybridization-Python.ipynb) — la frontière avec la génération de contraintes.\n", "- **Lectures** : *Constraint Processing* (Dechter, 2003) pour le traité de référence ; la section « Recapitulatif » en récapitule les deux autres notices — le manuel AIMA (ch. 6.2-6.3) et l'article fondateur d'AC-3." ] } diff --git a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced-CSharp.ipynb b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-CSharp.ipynb similarity index 78% rename from MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced-CSharp.ipynb rename to MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-CSharp.ipynb index dc8544bac5f..c5ae1ae5995 100644 --- a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced-CSharp.ipynb +++ b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-CSharp.ipynb @@ -4,23 +4,16 @@ "cell_type": "markdown", "id": "5c448bff", "metadata": { - "papermill": { - "duration": 0.004188, - "end_time": "2026-09-27T07:24:16.341437+00:00", - "exception": false, - "start_time": "2026-09-27T07:24:16.337249+00:00", - "status": "completed" - }, "tags": [] }, "source": [ "# CSP-3 : CSP Avancé — Contraintes globales et stratégies Choco\n", "\n", - "**Série .NET** : [<< CSP-2-Consistency-CSharp](CSP-2-Consistency-CSharp.ipynb) | [Index](../README.md) | [CSP-4-Scheduling-CSharp >>](CSP-4-Scheduling-CSharp.ipynb)\n", + "**Série .NET** : [<< CSP-02-Consistency-CSharp](CSP-02-Consistency-CSharp.ipynb) | [Index](../README.md) | [CSP-04-Scheduling-CSharp >>](CSP-04-Scheduling-CSharp.ipynb)\n", "\n", - "## Parité .NET ⇄ Python — binôme du CSP-3-Advanced.ipynb\n", + "## Parité .NET ⇄ Python — binôme du CSP-03-Advanced-Python.ipynb\n", "\n", - "Ce notebook est le **binôme .NET** du [CSP-3-Advanced.ipynb](CSP-3-Advanced.ipynb) (Python/OR-Tools). Il utilise **Choco-solver 4.10.17** via **IKVM 8.15.0** et la DLL pré-compilée `org.chocosolver.solver.dll`.\n", + "Ce notebook est le **binôme .NET** du [CSP-03-Advanced-Python.ipynb](CSP-03-Advanced-Python.ipynb) (Python/OR-Tools). Il utilise **Choco-solver 4.10.17** via **IKVM 8.15.0** et la DLL pré-compilée `org.chocosolver.solver.dll`.\n", "\n", "**Objectifs pédagogiques** (parallèle d'implémentation des mêmes contraintes globales que la version Python ; instances distinctes, cf. known_differences du registre de parité) :\n", "1. Démontrer les **contraintes globales** Choco : `allDifferent`, `cumulative`, `circuit`, `table`.\n", @@ -49,46 +42,33 @@ "dotnet_interactive": { "language": "csharp" }, - "execution": { - "iopub.execute_input": "2026-09-27T07:24:16.365038Z", - "iopub.status.busy": "2026-09-27T07:24:16.356700Z", - "iopub.status.idle": "2026-09-27T07:24:18.551918Z", - "shell.execute_reply": "2026-09-27T07:24:18.546814Z" - }, - "papermill": { - "duration": 2.20683, - "end_time": "2026-09-27T07:24:18.552103+00:00", - "exception": false, - "start_time": "2026-09-27T07:24:16.345273+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "DLL Choco trouvée : org.chocosolver.solver.dll\n" + "DLL Choco trouvée : org.chocosolver.solver.dll\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Existe : True\n" + "Existe : True\r\n" ] } ], "source": [ - "// Configuration du répertoire de travail (pattern FindCspDir, copié depuis CSP-4-Scheduling-CSharp.ipynb)\n", + "// Configuration du répertoire de travail (pattern FindCspDir, copié depuis CSP-04-Scheduling-CSharp.ipynb)\n", "using System;\n", "using System.IO;\n", "\n", "string FindCspDir() {\n", " var dir = new DirectoryInfo(Directory.GetCurrentDirectory());\n", " while (dir != null) {\n", - " if (File.Exists(Path.Combine(dir.FullName, \"CSP-1-Fundamentals.ipynb\")))\n", + " if (File.Exists(Path.Combine(dir.FullName, \"CSP-01-Fundamentals-Python.ipynb\")))\n", " return dir.FullName;\n", " dir = dir.Parent;\n", " }\n", @@ -109,36 +89,23 @@ "dotnet_interactive": { "language": "csharp" }, - "execution": { - "iopub.execute_input": "2026-09-27T07:24:18.561919Z", - "iopub.status.busy": "2026-09-27T07:24:18.561674Z", - "iopub.status.idle": "2026-09-27T07:24:19.147936Z", - "shell.execute_reply": "2026-09-27T07:24:19.147670Z" - }, - "papermill": { - "duration": 0.592037, - "end_time": "2026-09-27T07:24:19.148060+00:00", - "exception": false, - "start_time": "2026-09-27T07:24:18.556023+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { + "output_type": "display_data", "data": { "text/html": [ - "
Installed Packages
  • IKVM, 8.15.0
  • IKVM.Image, 8.15.0
" + "
Installing Packages
  • IKVM
  • IKVM.Image
" ] }, - "metadata": {}, - "output_type": "display_data" + "metadata": {} }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "IKVM 8.15.0 pret (home=ikvm-home-8.15.0-linux-x64, tzdb=True) - Choco-solver charge\n" + "IKVM 8.15.0 pret (home=ikvm-home-8.15.0-win-x64, tzdb=True) - Choco-solver charge\r\n" ] } ], @@ -195,13 +162,6 @@ "cell_type": "markdown", "id": "b3fa7c34", "metadata": { - "papermill": { - "duration": 0.004578, - "end_time": "2026-09-27T07:24:19.157551+00:00", - "exception": false, - "start_time": "2026-09-27T07:24:19.152973+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -218,27 +178,14 @@ "dotnet_interactive": { "language": "csharp" }, - "execution": { - "iopub.execute_input": "2026-09-27T07:24:19.166802Z", - "iopub.status.busy": "2026-09-27T07:24:19.166568Z", - "iopub.status.idle": "2026-09-27T07:24:19.374467Z", - "shell.execute_reply": "2026-09-27T07:24:19.374209Z" - }, - "papermill": { - "duration": 0.213219, - "end_time": "2026-09-27T07:24:19.374588+00:00", - "exception": false, - "start_time": "2026-09-27T07:24:19.161369+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Choco-solver 4.10.17 chargé via IKVM 8.15.0\n" + "Choco-solver 4.10.17 chargé via IKVM 8.15.0\r\n" ] } ], @@ -262,13 +209,6 @@ "cell_type": "markdown", "id": "4ba1f573", "metadata": { - "papermill": { - "duration": 0.003999, - "end_time": "2026-09-27T07:24:19.382767+00:00", - "exception": false, - "start_time": "2026-09-27T07:24:19.378768+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -291,174 +231,161 @@ "dotnet_interactive": { "language": "csharp" }, - "execution": { - "iopub.execute_input": "2026-09-27T07:24:19.392821Z", - "iopub.status.busy": "2026-09-27T07:24:19.392569Z", - "iopub.status.idle": "2026-09-27T07:24:20.179472Z", - "shell.execute_reply": "2026-09-27T07:24:20.179280Z" - }, - "papermill": { - "duration": 0.792899, - "end_time": "2026-09-27T07:24:20.179635+00:00", - "exception": false, - "start_time": "2026-09-27T07:24:19.386736+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Mini-Sudoku 4x4 resolu en 84 ms (trouve = True) :\n" + "Mini-Sudoku 4x4 resolu en 81 ms (trouve = True) :\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "4 " ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "2 " ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "1 " ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "3 " ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "\n" + "\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "3 " ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "1 " ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "2 " ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "4 " ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "\n" + "\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "2 " ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "3 " ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "4 " ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "1 " ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "\n" + "\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "1 " ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "4 " ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "3 " ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "2 " ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "\n" + "\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Verification : lignes/colonnes/blocs 2x2 contiennent tous 1-4\n" + "Verification : lignes/colonnes/blocs 2x2 contiennent tous 1-4\r\n" ] } ], @@ -512,13 +439,6 @@ "cell_type": "markdown", "id": "fee0c66f", "metadata": { - "papermill": { - "duration": 0.004484, - "end_time": "2026-09-27T07:24:20.188778+00:00", - "exception": false, - "start_time": "2026-09-27T07:24:20.184294+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -541,34 +461,21 @@ "dotnet_interactive": { "language": "csharp" }, - "execution": { - "iopub.execute_input": "2026-09-27T07:24:20.199618Z", - "iopub.status.busy": "2026-09-27T07:24:20.199306Z", - "iopub.status.idle": "2026-09-27T07:24:20.377535Z", - "shell.execute_reply": "2026-09-27T07:24:20.377311Z" - }, - "papermill": { - "duration": 0.18467, - "end_time": "2026-09-27T07:24:20.377636+00:00", - "exception": false, - "start_time": "2026-09-27T07:24:20.192966+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Cumulative 4/2 resolu en 43 ms - makespan = 9\n" + "Cumulative 4/2 resolu en 58 ms - makespan = 9\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Instance C# (durees [3,4,2,5], cap 2) -> makespan 9 ; instance distincte du twin Python (makespan 6 sur [3,2,4,2] cap 2)\n" + "Instance C# (durees [3,4,2,5], cap 2) -> makespan 9 ; instance distincte du twin Python (makespan 6 sur [3,2,4,2] cap 2)\r\n" ] } ], @@ -619,13 +526,6 @@ "cell_type": "markdown", "id": "c526abad", "metadata": { - "papermill": { - "duration": 0.337856, - "end_time": "2026-09-27T07:24:20.720306+00:00", - "exception": false, - "start_time": "2026-09-27T07:24:20.382450+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -646,41 +546,28 @@ "dotnet_interactive": { "language": "csharp" }, - "execution": { - "iopub.execute_input": "2026-09-27T07:24:21.483410Z", - "iopub.status.busy": "2026-09-27T07:24:21.483113Z", - "iopub.status.idle": "2026-09-27T07:24:21.664259Z", - "shell.execute_reply": "2026-09-27T07:24:21.663911Z" - }, - "papermill": { - "duration": 0.938872, - "end_time": "2026-09-27T07:24:21.664392+00:00", - "exception": false, - "start_time": "2026-09-27T07:24:20.725520+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "TSP 5 villes resolu en 21 ms - cout = 18\n" + "TSP 5 villes resolu en 13 ms - cout = 18\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Tour : 0 -> 1 -> 3 -> 4 -> 2 -> 0\n" + "Tour : 0 -> 1 -> 3 -> 4 -> 2 -> 0\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Optimum : 18 (plusieurs tours equivalents de cout 18).\n" + "Optimum : 18 (plusieurs tours equivalents de cout 18).\r\n" ] } ], @@ -738,13 +625,6 @@ "cell_type": "markdown", "id": "0413eac6", "metadata": { - "papermill": { - "duration": 0.25322, - "end_time": "2026-09-27T07:24:21.922572+00:00", - "exception": false, - "start_time": "2026-09-27T07:24:21.669352+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -763,34 +643,21 @@ "dotnet_interactive": { "language": "csharp" }, - "execution": { - "iopub.execute_input": "2026-09-27T07:24:22.490289Z", - "iopub.status.busy": "2026-09-27T07:24:22.488287Z", - "iopub.status.idle": "2026-09-27T07:24:22.590486Z", - "shell.execute_reply": "2026-09-27T07:24:22.589834Z" - }, - "papermill": { - "duration": 0.661899, - "end_time": "2026-09-27T07:24:22.590601+00:00", - "exception": false, - "start_time": "2026-09-27T07:24:21.928702+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Table resolu en 3 ms : HDD + 16GB + 750W\n" + "Table resolu en 2 ms : HDD + 16GB + 750W\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "(3 tuples autorises -> 3 solutions possibles, 1 renvoyee par solve())\n" + "(3 tuples autorises -> 3 solutions possibles, 1 renvoyee par solve())\r\n" ] } ], @@ -826,13 +693,6 @@ "cell_type": "markdown", "id": "835c5534", "metadata": { - "papermill": { - "duration": 0.004409, - "end_time": "2026-09-27T07:24:22.600106+00:00", - "exception": false, - "start_time": "2026-09-27T07:24:22.595697+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -855,55 +715,42 @@ "dotnet_interactive": { "language": "csharp" }, - "execution": { - "iopub.execute_input": "2026-09-27T07:24:22.613200Z", - "iopub.status.busy": "2026-09-27T07:24:22.612858Z", - "iopub.status.idle": "2026-09-27T07:24:22.733427Z", - "shell.execute_reply": "2026-09-27T07:24:22.732785Z" - }, - "papermill": { - "duration": 0.129109, - "end_time": "2026-09-27T07:24:22.733543+00:00", - "exception": false, - "start_time": "2026-09-27T07:24:22.604434+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "LNS it 0 (optimum global) : cout = 18\n" + "LNS it 0 (optimum global) : cout = 18\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Tour : 0 -> 1 -> 3 -> 4 -> 2 -> 0\n" + " Tour : 0 -> 1 -> 3 -> 4 -> 2 -> 0\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Temps : 2 ms\n" + "Temps : 2 ms\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Note : le LNS natif (solver.setLNS + LargeNeighborhoodSearch) permettrait\n" + "Note : le LNS natif (solver.setLNS + LargeNeighborhoodSearch) permettrait\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "d'explorer de grands voisinages sans re-optimiser tout le modele (approfondissement).\n" + "d'explorer de grands voisinages sans re-optimiser tout le modele (approfondissement).\r\n" ] } ], @@ -963,13 +810,6 @@ "cell_type": "markdown", "id": "56b301d6", "metadata": { - "papermill": { - "duration": 0.004639, - "end_time": "2026-09-27T07:24:22.743337+00:00", - "exception": false, - "start_time": "2026-09-27T07:24:22.738698+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -980,13 +820,6 @@ "cell_type": "markdown", "id": "5442b145", "metadata": { - "papermill": { - "duration": 0.004788, - "end_time": "2026-09-27T07:24:22.752724+00:00", - "exception": false, - "start_time": "2026-09-27T07:24:22.747936+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -1005,48 +838,35 @@ "dotnet_interactive": { "language": "csharp" }, - "execution": { - "iopub.execute_input": "2026-09-27T07:24:22.764134Z", - "iopub.status.busy": "2026-09-27T07:24:22.763603Z", - "iopub.status.idle": "2026-09-27T07:24:22.879138Z", - "shell.execute_reply": "2026-09-27T07:24:22.878739Z" - }, - "papermill": { - "duration": 0.121918, - "end_time": "2026-09-27T07:24:22.879307+00:00", - "exception": false, - "start_time": "2026-09-27T07:24:22.757389+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Reification resolu en 7 ms (trouve = True)\n" + "Reification resolu en 4 ms (trouve = True)\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " x = 0, y = 1\n" + " x = 0, y = 1\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " b = (x>](CSP-4-Scheduling.ipynb) | [Applications](../Part3-Cas-pratiques/README.md)\n", + "**Navigation** : [<< CSP-2-Consistance](CSP-02-Consistency-Python.ipynb) | [Index CSP](README.md) | [CSP-04-Scheduling-Python >>](CSP-04-Scheduling-Python.ipynb) | [Applications](../Part3-Cas-pratiques/README.md)\n", "\n", "> **Solveur** : CP-SAT (Google OR-Tools). Le fonctionnement interne du solveur — presolve, recherche à grand voisinage (LNS), portfolio de workers — est détaillé dans [*The CP-SAT Primer*](https://d-krupke.github.io/cpsat-primer/) (Krupke & Schmitt, 2023, CC-BY, lecture en ligne gratuite).\n", "\n", @@ -33,7 +33,7 @@ "5. **Construire** un modèle complet combinant contraintes globales et objectif d'optimisation\n", "\n", "### Prérequis\n", - "- [CSP-2-Consistance](CSP-2-Consistency.ipynb) : AC-3, Forward Checking, MAC\n", + "- [CSP-2-Consistance](CSP-02-Consistency-Python.ipynb) : AC-3, Forward Checking, MAC\n", "- Bases de Python (classes, dictionnaires, comprehensions)\n", "\n", "### Durée estimee : 50 minutes\n", @@ -3023,7 +3023,7 @@ "\n", "## Annexe : parité lib-vs-lib — le même moteur Choco que le jumeau C#\n", "\n", - "Les sections précédentes ont démontré les contraintes globales avec `python-constraint` (académique) puis OR-Tools CP-SAT (industrie, C++). Le jumeau C# de ce notebook (`CSP-3-Advanced-CSharp.ipynb`) démontre les mêmes contraintes sur **Choco-solver 4.10.17** via IKVM. Avec **pychoco** — le binding Python officiel de Choco (PyPI, MIT) — le jumeau Python peut rejouer les modèles du jumeau C# **sur le même moteur industriel** : c'est la parité *lib-vs-lib* au sens du registre de parité (#8057/#10382), plus fine que la parité *concept-vs-concept*.\n", + "Les sections précédentes ont démontré les contraintes globales avec `python-constraint` (académique) puis OR-Tools CP-SAT (industrie, C++). Le jumeau C# de ce notebook (`CSP-03-Advanced-CSharp.ipynb`) démontre les mêmes contraintes sur **Choco-solver 4.10.17** via IKVM. Avec **pychoco** — le binding Python officiel de Choco (PyPI, MIT) — le jumeau Python peut rejouer les modèles du jumeau C# **sur le même moteur industriel** : c'est la parité *lib-vs-lib* au sens du registre de parité (#8057/#10382), plus fine que la parité *concept-vs-concept*.\n", "\n", "Chaque démonstration ci-dessous reprend **l'instance exacte** du jumeau C#. L'observable de parité est la **convergence des valeurs mesurées** (makespan optimal, coût optimal du TSP) — les mêmes grandeurs que celles affichées par les cellules Choco côté C#.\n" ] @@ -3414,9 +3414,9 @@ "source": [ "## Pour aller plus loin\n", "\n", - "- **Carnet suivant** : [CSP-4-Scheduling.ipynb](CSP-4-Scheduling.ipynb) — l'arsenal des contraintes globales appliqué à l'ordonnancement industriel (Job-Shop, RCPSP, planification d'infirmiers).\n", - "- **Jumeau .NET** : [CSP-3-Advanced-CSharp.ipynb](CSP-3-Advanced-CSharp.ipynb) — les mêmes contraintes sous Choco-solver 4.10.17 via IKVM ; l'annexe de ce carnet en mesure la convergence.\n", - "- **Carnets voisins** : [CSP-5-Optimization.ipynb](CSP-5-Optimization.ipynb) — l'optimisation combinatoire (Bin Packing, Knapsack, portefeuille) ; [CSP-6-Hybridization.ipynb](CSP-6-Hybridization.ipynb) — la Lazy Clause Generation et les hybridations CP+ML / LLM+CSP.\n", + "- **Carnet suivant** : [CSP-04-Scheduling-Python.ipynb](CSP-04-Scheduling-Python.ipynb) — l'arsenal des contraintes globales appliqué à l'ordonnancement industriel (Job-Shop, RCPSP, planification d'infirmiers).\n", + "- **Jumeau .NET** : [CSP-03-Advanced-CSharp.ipynb](CSP-03-Advanced-CSharp.ipynb) — les mêmes contraintes sous Choco-solver 4.10.17 via IKVM ; l'annexe de ce carnet en mesure la convergence.\n", + "- **Carnets voisins** : [CSP-05-Optimization-Python.ipynb](CSP-05-Optimization-Python.ipynb) — l'optimisation combinatoire (Bin Packing, Knapsack, portefeuille) ; [CSP-06-Hybridization-Python.ipynb](CSP-06-Hybridization-Python.ipynb) — la Lazy Clause Generation et les hybridations CP+ML / LLM+CSP.\n", "- **Lectures** : *Handbook of Constraint Programming* (Rossi, van Beek, Walsh, 2006) pour les contraintes globales et les algorithmes de recherche ; les deux autres notices sont récapitulées dans la section « 7. Resume et exercices »." ] } diff --git a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-CSharp.ipynb b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-CSharp.ipynb similarity index 70% rename from MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-CSharp.ipynb rename to MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-CSharp.ipynb index cb6545ecd2f..e72b8657204 100644 --- a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-CSharp.ipynb +++ b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-CSharp.ipynb @@ -3,15 +3,24 @@ { "cell_type": "markdown", "id": "ec9ec87d", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.003033, + "end_time": "2026-11-24T09:42:23.499276+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:23.496243+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ - "# CSP-4-Scheduling-CSharp : Problèmes d'Ordonnancement avec OR-Tools CP-SAT natif .NET\n", + "# CSP-04-Scheduling-CSharp : Problèmes d'Ordonnancement avec OR-Tools CP-SAT natif .NET\n", "\n", - "**Navigation** : [<< CSP-3-Advanced](CSP-3-Advanced.ipynb) | [Index](../README.md) | [CSP-5-Optimization >>](CSP-5-Optimization.ipynb)\n", + "**Navigation** : [<< CSP-03-Advanced-Python](CSP-03-Advanced-Python.ipynb) | [Index](../README.md) | [CSP-05-Optimization-Python >>](CSP-05-Optimization-Python.ipynb)\n", "\n", - "**Série .NET** : [<< CSP-3-Advanced-CSharp](CSP-3-Advanced-CSharp.ipynb) | [Index](../README.md) | [CSP-5-Optimization-CSharp >>](CSP-5-Optimization-CSharp.ipynb)\n", + "**Série .NET** : [<< CSP-03-Advanced-CSharp](CSP-03-Advanced-CSharp.ipynb) | [Index](../README.md) | [CSP-05-Optimization-CSharp >>](CSP-05-Optimization-CSharp.ipynb)\n", "\n", - "> **Durée estimée** : ~1h30 | **Prérequis** : [CSP-3-Advanced](CSP-3-Advanced.ipynb), [Sudoku-00-Environment-CSharp](../../Sudoku/Sudoku-00-Environment-CSharp.ipynb)\n", + "> **Durée estimée** : ~1h30 | **Prérequis** : [CSP-03-Advanced-Python](CSP-03-Advanced-Python.ipynb), [Sudoku-00-Environment-CSharp](../../Sudoku/Sudoku-00-Environment-CSharp.ipynb)\n", "\n", "## Objectifs d'apprentissage\n", "\n", @@ -23,7 +32,7 @@ "\n", "## Pourquoi ce notebook ?\n", "\n", - "Le notebook [CSP-4-Scheduling.ipynb](CSP-4-Scheduling.ipynb) (version Python) présente le JSSP, le RCPSP et le Nurse Scheduling avec OR-Tools CP-SAT (pip `ortools`). **Ce binôme .NET** reprend les trois mêmes problèmes avec le **même moteur** via son binding officiel NuGet `Google.OrTools` : même cœur C++, mêmes contraintes globales, API idiomatique .NET. Objectif : démontrer la **parité Python/.NET** de la série CSP — ici au niveau le plus fort du registre de parité, *native-both* : les deux jumeaux invoquent le solveur natif de leur écosystème.\n", + "Le notebook [CSP-04-Scheduling-Python.ipynb](CSP-04-Scheduling-Python.ipynb) (version Python) présente le JSSP, le RCPSP et le Nurse Scheduling avec OR-Tools CP-SAT (pip `ortools`). **Ce binôme .NET** reprend les trois mêmes problèmes avec le **même moteur** via son binding officiel NuGet `Google.OrTools` : même cœur C++, mêmes contraintes globales, API idiomatique .NET. Objectif : démontrer la **parité Python/.NET** de la série CSP — ici au niveau le plus fort du registre de parité, *native-both* : les deux jumeaux invoquent le solveur natif de leur écosystème.\n", "\n", "> La route Choco-solver (Java) via IKVM reste démontrée dans la série : [Sudoku-11-Choco-CSharp.ipynb](../../Sudoku/Sudoku-11-Choco-CSharp.ipynb) et les binômes CSP-1/2/3/5/7.\n", "\n", @@ -36,18 +45,26 @@ "id": "26727e5b", "metadata": { "execution": { - "iopub.execute_input": "2026-07-03T05:10:16.106347Z", - "iopub.status.busy": "2026-07-03T05:10:16.101354Z", - "iopub.status.idle": "2026-07-03T05:10:17.255286Z", - "shell.execute_reply": "2026-07-03T05:10:17.255571Z" - } + "iopub.execute_input": "2026-11-24T09:42:23.521441Z", + "iopub.status.busy": "2026-11-24T09:42:23.514777Z", + "iopub.status.idle": "2026-11-24T09:42:25.106282Z", + "shell.execute_reply": "2026-11-24T09:42:25.102204Z" + }, + "papermill": { + "duration": 1.601968, + "end_time": "2026-11-24T09:42:25.106488+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:23.504520+00:00", + "status": "completed" + }, + "tags": [] }, "outputs": [ { - "output_type": "stream", "name": "stdout", + "output_type": "stream", "text": [ - "Répertoire de travail: Part2-CSP\n" + "Répertoire de travail: Part2-CSP\r\n" ] } ], @@ -63,11 +80,11 @@ " while (dir != null)\n", " {\n", " // Check if we're in Part2-CSP directory\n", - " if (File.Exists(Path.Combine(dir.FullName, \"CSP-1-Fundamentals.ipynb\")))\n", + " if (File.Exists(Path.Combine(dir.FullName, \"CSP-01-Fundamentals-Python.ipynb\")))\n", " return dir.FullName;\n", " // Check if Part2-CSP is a subdirectory\n", " var candidate = Path.Combine(dir.FullName, \"MyIA.AI.Notebooks\", \"Search\", \"Part2-CSP\");\n", - " if (Directory.Exists(candidate) && File.Exists(Path.Combine(candidate, \"CSP-1-Fundamentals.ipynb\")))\n", + " if (Directory.Exists(candidate) && File.Exists(Path.Combine(candidate, \"CSP-01-Fundamentals-Python.ipynb\")))\n", " return candidate;\n", " dir = dir.Parent;\n", " }\n", @@ -82,7 +99,16 @@ { "cell_type": "markdown", "id": "3c32e742", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.002768, + "end_time": "2026-11-24T09:42:25.113171+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:25.110403+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "## Choix du solveur : OR-Tools CP-SAT natif .NET (design option b)\n", "\n", @@ -100,7 +126,16 @@ { "cell_type": "markdown", "id": "aa38fd1d", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.002421, + "end_time": "2026-11-24T09:42:25.118147+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:25.115726+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "## Configuration OR-Tools CP-SAT (solveur natif .NET)" ] @@ -111,18 +146,35 @@ "id": "c56bcec5", "metadata": { "execution": { - "iopub.execute_input": "2026-07-03T05:10:18.229629Z", - "iopub.status.busy": "2026-07-03T05:10:18.229302Z", - "iopub.status.idle": "2026-07-03T05:10:21.847700Z", - "shell.execute_reply": "2026-07-03T05:10:21.846103Z" - } + "iopub.execute_input": "2026-11-24T09:42:25.125288Z", + "iopub.status.busy": "2026-11-24T09:42:25.124875Z", + "iopub.status.idle": "2026-11-24T09:42:25.337088Z", + "shell.execute_reply": "2026-11-24T09:42:25.336772Z" + }, + "papermill": { + "duration": 0.216631, + "end_time": "2026-11-24T09:42:25.337286+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:25.120655+00:00", + "status": "completed" + }, + "tags": [] }, "outputs": [ { - "output_type": "stream", + "data": { + "text/html": [ + "
Installed Packages
  • Google.OrTools, 9.15.6755
" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { "name": "stdout", + "output_type": "stream", "text": [ - "OR-Tools CP-SAT charge (Google.OrTools natif .NET)\n" + "OR-Tools CP-SAT charge (Google.OrTools natif .NET)\r\n" ] } ], @@ -130,7 +182,7 @@ "// Configuration OR-Tools CP-SAT (solveur natif .NET, NuGet -- pas de bridge IKVM)\n", "// Le scheduling (IntervalVar / NoOverlap / Cumulative) est natif en CP-SAT :\n", "// c'est le terrain ou OR-Tools brille pour l'ordonnancement (design option b #4956).\n", - "#r \"nuget: Google.OrTools\"\n", + "#r \"nuget: Google.OrTools, 9.15.6755\"\n", "using Google.OrTools.Sat;\n", "Console.WriteLine(\"OR-Tools CP-SAT charge (Google.OrTools natif .NET)\");\n" ] @@ -138,7 +190,16 @@ { "cell_type": "markdown", "id": "955a1e8e", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.002539, + "end_time": "2026-11-24T09:42:25.344218+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:25.341679+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "## 1. Job-Shop Scheduling Problem (JSSP) avec OR-Tools CP-SAT\n", "\n", @@ -163,29 +224,103 @@ "id": "acbf5ed0", "metadata": { "execution": { - "iopub.execute_input": "2026-07-03T05:10:21.856605Z", - "iopub.status.busy": "2026-07-03T05:10:21.855163Z", - "iopub.status.idle": "2026-07-03T05:10:22.565432Z", - "shell.execute_reply": "2026-07-03T05:10:22.564832Z" - } + "iopub.execute_input": "2026-11-24T09:42:25.351142Z", + "iopub.status.busy": "2026-11-24T09:42:25.350825Z", + "iopub.status.idle": "2026-11-24T09:42:25.675947Z", + "shell.execute_reply": "2026-11-24T09:42:25.675774Z" + }, + "papermill": { + "duration": 0.329245, + "end_time": "2026-11-24T09:42:25.676018+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:25.346773+00:00", + "status": "completed" + }, + "tags": [] }, "outputs": [ { + "name": "stdout", + "output_type": "stream", + "text": [ + "JSSP : Statut = Optimal\r\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "JSSP : Makespan optimal = 11 unites\r\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\r\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Schedule detaille :\r\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + " Job 0 Op 0 : M0 [2->5] (duree 3)\r\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + " Job 0 Op 1 : M1 [5->7] (duree 2)\r\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + " Job 0 Op 2 : M2 [7->9] (duree 2)\r\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + " Job 1 Op 0 : M0 [0->2] (duree 2)\r\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + " Job 1 Op 1 : M2 [2->3] (duree 1)\r\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + " Job 1 Op 2 : M1 [7->11] (duree 4)\r\n" + ] + }, + { + "name": "stdout", "output_type": "stream", + "text": [ + " Job 2 Op 0 : M1 [0->4] (duree 4)\r\n" + ] + }, + { "name": "stdout", + "output_type": "stream", "text": [ - "JSSP : Statut = Optimal\n", - "JSSP : Makespan optimal = 11 unites\n", - "\n", - "Schedule detaille :\n", - " Job 0 Op 0 : M0 [0->3] (duree 3)\n", - " Job 0 Op 1 : M1 [4->6] (duree 2)\n", - " Job 0 Op 2 : M2 [9->11] (duree 2)\n", - " Job 1 Op 0 : M0 [3->5] (duree 2)\n", - " Job 1 Op 1 : M2 [5->6] (duree 1)\n", - " Job 1 Op 2 : M1 [6->10] (duree 4)\n", - " Job 2 Op 0 : M1 [0->4] (duree 4)\n", - " Job 2 Op 1 : M2 [6->9] (duree 3)\n" + " Job 2 Op 1 : M2 [4->7] (duree 3)\r\n" ] } ], @@ -195,7 +330,7 @@ "// Job 0 : M0(3u) -> M1(2u) -> M2(2u)\n", "// Job 1 : M0(2u) -> M2(1u) -> M1(4u)\n", "// Job 2 : M1(4u) -> M2(3u)\n", - "// Objectif : minimiser le makespan. Optimal connu : 11 unites (cf. CSP-4-Scheduling.ipynb).\n", + "// Objectif : minimiser le makespan. Optimal connu : 11 unites (cf. CSP-04-Scheduling-Python.ipynb).\n", "int[][][] jobsData = new int[3][][];\n", "jobsData[0] = new int[][] { new[]{0,3}, new[]{1,2}, new[]{2,2} };\n", "jobsData[1] = new int[][] { new[]{0,2}, new[]{2,1}, new[]{1,4} };\n", @@ -258,7 +393,16 @@ { "cell_type": "markdown", "id": "c9d5e0a1", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.002907, + "end_time": "2026-11-24T09:42:25.681913+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:25.679006+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "**Lecture du planning JSSP** (cellule ci-dessus) :\n", "\n", @@ -274,7 +418,16 @@ { "cell_type": "markdown", "id": "d0a780bb", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.002823, + "end_time": "2026-11-24T09:42:25.687791+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:25.684968+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "## 2. Resource-Constrained Project Scheduling (RCPSP) avec OR-Tools CP-SAT\n", "\n", @@ -297,27 +450,89 @@ "id": "f60911f1", "metadata": { "execution": { - "iopub.execute_input": "2026-07-03T05:10:22.567375Z", - "iopub.status.busy": "2026-07-03T05:10:22.567055Z", - "iopub.status.idle": "2026-07-03T05:10:23.039720Z", - "shell.execute_reply": "2026-07-03T05:10:23.038246Z" - } + "iopub.execute_input": "2026-11-24T09:42:25.694789Z", + "iopub.status.busy": "2026-11-24T09:42:25.694590Z", + "iopub.status.idle": "2026-11-24T09:42:25.809174Z", + "shell.execute_reply": "2026-11-24T09:42:25.808952Z" + }, + "papermill": { + "duration": 0.11862, + "end_time": "2026-11-24T09:42:25.809277+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:25.690657+00:00", + "status": "completed" + }, + "tags": [] }, "outputs": [ { + "name": "stdout", + "output_type": "stream", + "text": [ + "RCPSP : Statut = Optimal\r\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "RCPSP : Makespan optimal = 10 unites\r\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\r\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Schedule detaille :\r\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + " Tache 0 : [0->2] (duree 2)\r\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + " Tache 1 : [2->5] (duree 3)\r\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + " Tache 2 : [2->6] (duree 4)\r\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + " Tache 3 : [5->7] (duree 2)\r\n" + ] + }, + { + "name": "stdout", "output_type": "stream", + "text": [ + " Tache 4 : [6->9] (duree 3)\r\n" + ] + }, + { "name": "stdout", + "output_type": "stream", "text": [ - "RCPSP : Statut = Optimal\n", - "RCPSP : Makespan optimal = 10 unites\n", - "\n", - "Schedule detaille :\n", - " Tache 0 : [0->2] (duree 2)\n", - " Tache 1 : [2->5] (duree 3)\n", - " Tache 2 : [2->6] (duree 4)\n", - " Tache 3 : [5->7] (duree 2)\n", - " Tache 4 : [6->9] (duree 3)\n", - " Tache 5 : [9->10] (duree 1)\n" + " Tache 5 : [9->10] (duree 1)\r\n" ] } ], @@ -386,7 +601,16 @@ { "cell_type": "markdown", "id": "b8e4d1f0", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.003341, + "end_time": "2026-11-24T09:42:25.816610+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:25.813269+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "**Lecture du planning RCPSP** (cellule ci-dessus) :\n", "\n", @@ -400,7 +624,16 @@ { "cell_type": "markdown", "id": "05516294", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.00306, + "end_time": "2026-11-24T09:42:25.822920+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:25.819860+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "## 3. Nurse Scheduling Problem avec OR-Tools CP-SAT\n", "\n", @@ -424,28 +657,96 @@ "id": "dc59fd3e", "metadata": { "execution": { - "iopub.execute_input": "2026-07-03T05:10:23.046694Z", - "iopub.status.busy": "2026-07-03T05:10:23.044292Z", - "iopub.status.idle": "2026-07-03T05:10:23.497212Z", - "shell.execute_reply": "2026-07-03T05:10:23.496668Z" - } + "iopub.execute_input": "2026-11-24T09:42:25.831302Z", + "iopub.status.busy": "2026-11-24T09:42:25.830926Z", + "iopub.status.idle": "2026-11-24T09:42:25.970361Z", + "shell.execute_reply": "2026-11-24T09:42:25.970186Z" + }, + "papermill": { + "duration": 0.144163, + "end_time": "2026-11-24T09:42:25.970430+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:25.826267+00:00", + "status": "completed" + }, + "tags": [] }, "outputs": [ { + "name": "stdout", + "output_type": "stream", + "text": [ + "Nurse : Statut = Optimal\r\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Nurse : Shifts assignes = 42 (optimum = couverture minimale)\r\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\r\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Planning (jour / poste : infirmiers) :\r\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + " J0 : P0=[4,5] P1=[0,1] P2=[2,3] \r\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + " J1 : P0=[2,3] P1=[1,5] P2=[0,4] \r\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + " J2 : P0=[0,3] P1=[1,4] P2=[2,5] \r\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + " J3 : P0=[3,4] P1=[0,5] P2=[1,2] \r\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + " J4 : P0=[2,3] P1=[0,4] P2=[1,5] \r\n" + ] + }, + { + "name": "stdout", "output_type": "stream", + "text": [ + " J5 : P0=[1,4] P1=[2,3] P2=[0,5] \r\n" + ] + }, + { "name": "stdout", + "output_type": "stream", "text": [ - "Nurse : Statut = Optimal\n", - "Nurse : Shifts assignes = 42 (optimum = couverture minimale)\n", - "\n", - "Planning (jour / poste : infirmiers) :\n", - " J0 : P0=[3,5] P1=[1,4] P2=[0,2] \n", - " J1 : P0=[0,3] P1=[1,5] P2=[2,4] \n", - " J2 : P0=[1,2] P1=[4,5] P2=[0,3] \n", - " J3 : P0=[1,3] P1=[2,4] P2=[0,5] \n", - " J4 : P0=[3,4] P1=[0,2] P2=[1,5] \n", - " J5 : P0=[0,1] P1=[3,4] P2=[2,5] \n", - " J6 : P0=[0,4] P1=[1,3] P2=[2,5] \n" + " J6 : P0=[1,4] P1=[2,3] P2=[0,5] \r\n" ] } ], @@ -525,7 +826,16 @@ { "cell_type": "markdown", "id": "a7f3c2e9", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.004109, + "end_time": "2026-11-24T09:42:25.978320+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:25.974211+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "**Lecture du planning Nurse** (cellule ci-dessus) :\n", "\n", @@ -542,7 +852,16 @@ { "cell_type": "markdown", "id": "776131ba", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.005917, + "end_time": "2026-11-24T09:42:25.989533+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:25.983616+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "## 4. Comparaison des deux bindings d'OR-Tools CP-SAT (pip Python vs NuGet .NET)\n", "\n", @@ -561,13 +880,22 @@ "| **Performance pure** | État de l'art | Identique (même cœur C++) |\n", "| **Friction d'installation** | Aucune (pip) | Aucune (NuGet, restore automatique) |\n", "\n", - "**Verdict** : les deux bindings **modélisent les mêmes problèmes** (JSSP-3×3, RCPSP-6×2×2, Nurse-6×7×3) avec les mêmes contraintes globales. Les makespans optimaux = **11 / 10 / 42** sont visibles dans les outputs des sections 1, 2 et 3 ci-dessus, et correspondent exactement aux valeurs du [binôme Python](CSP-4-Scheduling.ipynb) : c'est la parité *native-both* au sens du registre twin-parity (See #10382)." + "**Verdict** : les deux bindings **modélisent les mêmes problèmes** (JSSP-3×3, RCPSP-6×2×2, Nurse-6×7×3) avec les mêmes contraintes globales. Les makespans optimaux = **11 / 10 / 42** sont visibles dans les outputs des sections 1, 2 et 3 ci-dessus, et correspondent exactement aux valeurs du [binôme Python](CSP-04-Scheduling-Python.ipynb) : c'est la parité *native-both* au sens du registre twin-parity (See #10382)." ] }, { "cell_type": "markdown", "id": "aeb020a2", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.005606, + "end_time": "2026-11-24T09:42:26.000572+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:25.994966+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "## 5. Exercices\n", "\n", @@ -580,18 +908,26 @@ "id": "5fdaadb1", "metadata": { "execution": { - "iopub.execute_input": "2026-07-03T05:10:23.499098Z", - "iopub.status.busy": "2026-07-03T05:10:23.498694Z", - "iopub.status.idle": "2026-07-03T05:10:23.693680Z", - "shell.execute_reply": "2026-07-03T05:10:23.693026Z" - } + "iopub.execute_input": "2026-11-24T09:42:26.011224Z", + "iopub.status.busy": "2026-11-24T09:42:26.010985Z", + "iopub.status.idle": "2026-11-24T09:42:26.047815Z", + "shell.execute_reply": "2026-11-24T09:42:26.047666Z" + }, + "papermill": { + "duration": 0.04126, + "end_time": "2026-11-24T09:42:26.047883+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:26.006623+00:00", + "status": "completed" + }, + "tags": [] }, "outputs": [ { - "output_type": "stream", "name": "stdout", + "output_type": "stream", "text": [ - "Exercice à compléter\n" + "Exercice à compléter\r\n" ] } ], @@ -623,18 +959,26 @@ "id": "21f0333b", "metadata": { "execution": { - "iopub.execute_input": "2026-07-03T05:10:23.697407Z", - "iopub.status.busy": "2026-07-03T05:10:23.696705Z", - "iopub.status.idle": "2026-07-03T05:10:23.903651Z", - "shell.execute_reply": "2026-07-03T05:10:23.902774Z" - } + "iopub.execute_input": "2026-11-24T09:42:26.056473Z", + "iopub.status.busy": "2026-11-24T09:42:26.056094Z", + "iopub.status.idle": "2026-11-24T09:42:26.083087Z", + "shell.execute_reply": "2026-11-24T09:42:26.082945Z" + }, + "papermill": { + "duration": 0.031669, + "end_time": "2026-11-24T09:42:26.083156+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:26.051487+00:00", + "status": "completed" + }, + "tags": [] }, "outputs": [ { - "output_type": "stream", "name": "stdout", + "output_type": "stream", "text": [ - "Exercice à compléter\n" + "Exercice à compléter\r\n" ] } ], @@ -668,18 +1012,26 @@ "id": "d1ccc784", "metadata": { "execution": { - "iopub.execute_input": "2026-07-03T05:10:23.910574Z", - "iopub.status.busy": "2026-07-03T05:10:23.909020Z", - "iopub.status.idle": "2026-07-03T05:10:24.041408Z", - "shell.execute_reply": "2026-07-03T05:10:24.039945Z" - } + "iopub.execute_input": "2026-11-24T09:42:26.092400Z", + "iopub.status.busy": "2026-11-24T09:42:26.092165Z", + "iopub.status.idle": "2026-11-24T09:42:26.141934Z", + "shell.execute_reply": "2026-11-24T09:42:26.141784Z" + }, + "papermill": { + "duration": 0.05485, + "end_time": "2026-11-24T09:42:26.142003+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:26.087153+00:00", + "status": "completed" + }, + "tags": [] }, "outputs": [ { - "output_type": "stream", "name": "stdout", + "output_type": "stream", "text": [ - "Exercice à compléter\n" + "Exercice à compléter\r\n" ] } ], @@ -707,7 +1059,16 @@ { "cell_type": "markdown", "id": "f85c0cac", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.003835, + "end_time": "2026-11-24T09:42:26.149651+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:26.145816+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "## Conclusion\n", "\n", @@ -725,12 +1086,12 @@ "2. **Contraintes globales** : `AddNoOverlap` et `AddCumulative(capacity).AddDemands(...)` (builder fluent) sont les primitives d'ordonnancement natives de CP-SAT.\n", "3. **Objectif** : `cp.AddMaxEquality(makespan, ends)` puis `cp.Minimize(makespan)`.\n", "4. **Sommes linéaires** : `LinearExpr.Sum(list)` et `LinearExpr.Constant(c)` remplacent le `sum(...)` natif Python.\n", - "5. **Convergence des jumeaux** : makespans optimaux 11/10/42 identiques au [binôme Python](CSP-4-Scheduling.ipynb) — même moteur, même optimal, deux écosystèmes.\n", + "5. **Convergence des jumeaux** : makespans optimaux 11/10/42 identiques au [binôme Python](CSP-04-Scheduling-Python.ipynb) — même moteur, même optimal, deux écosystèmes.\n", "6. **Route alternative vivante** : la même série démontre Choco-solver (Java) via IKVM dans les binômes CSP-1/2/3/5/7 et [Sudoku-11-Choco-CSharp](../../Sudoku/Sudoku-11-Choco-CSharp.ipynb).\n", "\n", "### Voir aussi\n", "\n", - "- [CSP-4-Scheduling.ipynb](CSP-4-Scheduling.ipynb) — jumeau Python (OR-Tools CP-SAT, pip)\n", + "- [CSP-04-Scheduling-Python.ipynb](CSP-04-Scheduling-Python.ipynb) — jumeau Python (OR-Tools CP-SAT, pip)\n", "- [Sudoku-11-Choco-CSharp.ipynb](../../Sudoku/Sudoku-11-Choco-CSharp.ipynb) — la route Choco-solver via IKVM\n", "- [EPIC #4956](https://github.com/jsboige/CoursIA/issues/4956) — parité .NET ⇄ Python des séries de notebooks" ] @@ -738,7 +1099,16 @@ { "cell_type": "markdown", "id": "b0736f0b", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.003857, + "end_time": "2026-11-24T09:42:26.157183+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:26.153326+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "***\n", "\n", @@ -755,6 +1125,23 @@ } ], "metadata": { + "cost": { + "api_provider": "none", + "api_usd_est": 0.0, + "cpu_min": 2, + "external_account": "none", + "free_alternative": "self", + "gpu_min": 0, + "gpu_required": false, + "metadata_written": "2026-07-28", + "network": false, + "qcc_tokens_est": 0, + "reduced_pedagogical": null, + "reproducibility": "HIGH", + "validator": "manual", + "vram_gb": 0, + "vram_tier": "NONE" + }, "kernelspec": { "display_name": ".NET (C#)", "language": "C#", @@ -765,26 +1152,21 @@ "mimetype": "text/x-csharp", "name": "C#", "pygments_lexer": "csharp", - "version": "12.0" + "version": "13.0" }, - "cost": { - "api_usd_est": 0.0, - "api_provider": "none", - "qcc_tokens_est": 0, - "cpu_min": 2, - "gpu_min": 0, - "gpu_required": false, - "vram_gb": 0, - "vram_tier": "NONE", - "network": false, - "external_account": "none", - "free_alternative": "self", - "reduced_pedagogical": null, - "reproducibility": "HIGH", - "metadata_written": "2026-07-28", - "validator": "manual" + "papermill": { + "default_parameters": {}, + "duration": 4.964246, + "end_time": "2026-11-24T09:42:26.386401+00:00", + "environment_variables": {}, + "exception": null, + "input_path": "CSP-04-Scheduling-CSharp.ipynb", + "output_path": "CSP-04-Scheduling-CSharp.ipynb", + "parameters": {}, + "start_time": "2026-11-24T09:42:21.422155+00:00", + "version": "2.7.0" } }, "nbformat": 4, "nbformat_minor": 5 -} +} \ No newline at end of file diff --git a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb similarity index 99% rename from MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb rename to MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb index 4a9cf30a366..0a4b2fa4b39 100644 --- a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb +++ b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb @@ -14,9 +14,9 @@ "tags": [] }, "source": [ - "# CSP-4-Scheduling : Problèmes d'Ordonnancement\n", + "# CSP-04-Scheduling-Python : Problèmes d'Ordonnancement\n", "\n", - "**Navigation** : [<< CSP-3-Advanced](CSP-3-Advanced.ipynb) | [Index CSP](README.md) | [CSP-5-Optimization >>](CSP-5-Optimization.ipynb) | [jumeau Rust](CSP-4-Scheduling-Rust.ipynb)\n", + "**Navigation** : [<< CSP-03-Advanced-Python](CSP-03-Advanced-Python.ipynb) | [Index CSP](README.md) | [CSP-05-Optimization-Python >>](CSP-05-Optimization-Python.ipynb) | [jumeau Rust](CSP-04-Scheduling-Rust.ipynb)\n", "\n", "> **Durée estimée** : 2h00\n", "\n", @@ -2824,7 +2824,7 @@ "5. Les solveurs modernes (CP-SAT, OR-Tools) dominent les approches pures\n", "\n", "**Voir aussi** :\n", - "- [CSP-5-Optimization.ipynb](CSP-5-Optimization.ipynb) pour les problèmes d'optimisation\n", + "- [CSP-05-Optimization-Python.ipynb](CSP-05-Optimization-Python.ipynb) pour les problèmes d'optimisation\n", "- [App-04-JobShopScheduling-Python.ipynb](../Part3-Cas-pratiques/App-04-JobShopScheduling-Python.ipynb) - Application détaillée\n", "\n" ] @@ -2871,7 +2871,7 @@ "end_time": "2026-11-04T02:11:27.927570+00:00", "environment_variables": {}, "exception": null, - "input_path": "CSP-4-Scheduling.ipynb", + "input_path": "CSP-04-Scheduling-Python.ipynb", "output_path": "csp4_out.ipynb", "parameters": {}, "start_time": "2026-11-04T02:10:05.297395+00:00", diff --git a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-Rust.ipynb b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Rust.ipynb similarity index 99% rename from MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-Rust.ipynb rename to MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Rust.ipynb index 36a9bcefd13..af7b241e502 100644 --- a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-Rust.ipynb +++ b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Rust.ipynb @@ -14,9 +14,9 @@ "tags": [] }, "source": [ - "# CSP-4-Scheduling : Problèmes d'Ordonnancement (Rust / evcxr)\n", + "# CSP-04-Scheduling-Python : Problèmes d'Ordonnancement (Rust / evcxr)\n", "\n", - "**Portage Rust du carnet [CSP-4-Scheduling.ipynb](CSP-4-Scheduling.ipynb)** — mêmes modèles (JSSP, RCPSP, nurse scheduling, comparaison SPT, recherche guidée), même fil pédagogique, exécutés sur le moteur Google CP-SAT via la crate `cp_sat`.\n", + "**Portage Rust du carnet [CSP-04-Scheduling-Python.ipynb](CSP-04-Scheduling-Python.ipynb)** — mêmes modèles (JSSP, RCPSP, nurse scheduling, comparaison SPT, recherche guidée), même fil pédagogique, exécutés sur le moteur Google CP-SAT via la crate `cp_sat`.\n", "\n", "> **Prérequis système** : OR-Tools C++ 9.15 installé (`ORTOOLS_PREFIX=/opt/ortools`), compilateur C++, et `RUSTFLAGS='-Clink-arg=-lprotobuf'` — la crate `cp_sat` lie le moteur natif ; l'exécution se fait sous Linux/WSL (OR-Tools ne publie pas de binaire C++ Windows). L'API de la crate (0.4.1) n'expose pas les contraintes globales `NoOverlap`/`AddCumulative` ni les stratégies de décision : le carnet les remplace par des **décompositions exactes** (disjonctions réifiées par paires, cumul temporel réifié) documentées à chaque section." ] @@ -3359,8 +3359,8 @@ "5. Les solveurs modernes (CP-SAT, OR-Tools) dominent les approches pures\n", "\n", "**Voir aussi** :\n", - "- [CSP-4-Scheduling.ipynb](CSP-4-Scheduling.ipynb) — le carnet Python source de ce portage\n", - "- [CSP-5-Optimization.ipynb](CSP-5-Optimization.ipynb) pour les problèmes d'optimisation\n", + "- [CSP-04-Scheduling-Python.ipynb](CSP-04-Scheduling-Python.ipynb) — le carnet Python source de ce portage\n", + "- [CSP-05-Optimization-Python.ipynb](CSP-05-Optimization-Python.ipynb) pour les problèmes d'optimisation\n", "- [App-04-JobShopScheduling-Python.ipynb](../Part3-Cas-pratiques/App-04-JobShopScheduling-Python.ipynb) - Application détaillée" ] } @@ -3385,8 +3385,8 @@ "end_time": "2026-11-21T00:55:29.385070+00:00", "environment_variables": {}, "exception": null, - "input_path": "CSP-4-Scheduling-Rust.ipynb", - "output_path": "CSP-4-Scheduling-Rust-out.ipynb", + "input_path": "CSP-04-Scheduling-Rust.ipynb", + "output_path": "CSP-04-Scheduling-Rust.ipynb", "parameters": {}, "start_time": "2026-11-21T00:53:19.922951+00:00", "version": "2.7.0" diff --git a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization-CSharp.ipynb b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-CSharp.ipynb similarity index 89% rename from MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization-CSharp.ipynb rename to MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-CSharp.ipynb index 39f2d76c8f3..6b7c663d937 100644 --- a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization-CSharp.ipynb +++ b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-CSharp.ipynb @@ -7,13 +7,13 @@ "tags": [] }, "source": [ - "# CSP-5-Optimization-CSharp : Optimisation Combinatoire avec Choco-solver via IKVM\n", + "# CSP-05-Optimization-CSharp : Optimisation Combinatoire avec Choco-solver via IKVM\n", "\n", - "**Navigation** : [<< CSP-4-Scheduling-CSharp](CSP-4-Scheduling-CSharp.ipynb) | [Index](../README.md) | [CSP-6-Hybridization >>](CSP-6-Hybridization.ipynb)\n", + "**Navigation** : [<< CSP-04-Scheduling-CSharp](CSP-04-Scheduling-CSharp.ipynb) | [Index](../README.md) | [CSP-06-Hybridization-Python >>](CSP-06-Hybridization-Python.ipynb)\n", "\n", - "**Série .NET** : [<< CSP-4-Scheduling-CSharp](CSP-4-Scheduling-CSharp.ipynb) | [Index](../README.md) | [CSP-6-Hybridization-CSharp >>](CSP-6-Hybridization-CSharp.ipynb)\n", + "**Série .NET** : [<< CSP-04-Scheduling-CSharp](CSP-04-Scheduling-CSharp.ipynb) | [Index](../README.md) | [CSP-06-Hybridization-CSharp >>](CSP-06-Hybridization-CSharp.ipynb)\n", "\n", - "> **Durée estimée** : ~1h30 | **Prérequis** : [CSP-4-Scheduling-CSharp](CSP-4-Scheduling-CSharp.ipynb), [CSP-5-Optimization.ipynb](CSP-5-Optimization.ipynb) (binôme Python)\n", + "> **Durée estimée** : ~1h30 | **Prérequis** : [CSP-04-Scheduling-CSharp](CSP-04-Scheduling-CSharp.ipynb), [CSP-05-Optimization-Python.ipynb](CSP-05-Optimization-Python.ipynb) (binôme Python)\n", "\n", "## Objectifs d'apprentissage\n", "\n", @@ -22,11 +22,11 @@ "2. **Utiliser** `setObjective(IntVar, ResolutionPolicy.MAXIMIZE)` pour optimiser une valeur totale (gain, valeur, utilité)\n", "3. **Exploiter** `scalar(IntVar[], int[], op, bound)` pour les contraintes linéaires (poids × quantité ≤ capacité)\n", "4. **Comparer** l'API Java de Choco avec CP-SAT Python sur les mêmes instances de référence\n", - "5. **Réutiliser** le bridge IKVM 8.15.0 + DLL Choco pré-compilée (`org.chocosolver.solver.dll`) déjà opérationnel dans [CSP-4-Scheduling-CSharp](CSP-4-Scheduling-CSharp.ipynb)\n", + "5. **Réutiliser** le bridge IKVM 8.15.0 + DLL Choco pré-compilée (`org.chocosolver.solver.dll`) déjà opérationnel dans [CSP-04-Scheduling-CSharp](CSP-04-Scheduling-CSharp.ipynb)\n", "\n", "## Pourquoi ce notebook ?\n", "\n", - "Le notebook [CSP-5-Optimization.ipynb](CSP-5-Optimization.ipynb) (version Python) présente 4 problèmes d'optimisation combinatoire résolus avec OR-Tools CP-SAT. **Ce binôme .NET** reprend les 4 mêmes problèmes en utilisant **Choco-solver** (Java → IKVM → .NET Interactive). Cible : démontrer la **parité Python/.NET** sur l'optimisation en réutilisant la jurisprudence [Sudoku-11-Choco-CSharp](../../Sudoku/Sudoku-11-Choco-CSharp.ipynb) + [CSP-4-Scheduling-CSharp](CSP-4-Scheduling-CSharp.ipynb).\n", + "Le notebook [CSP-05-Optimization-Python.ipynb](CSP-05-Optimization-Python.ipynb) (version Python) présente 4 problèmes d'optimisation combinatoire résolus avec OR-Tools CP-SAT. **Ce binôme .NET** reprend les 4 mêmes problèmes en utilisant **Choco-solver** (Java → IKVM → .NET Interactive). Cible : démontrer la **parité Python/.NET** sur l'optimisation en réutilisant la jurisprudence [Sudoku-11-Choco-CSharp](../../Sudoku/Sudoku-11-Choco-CSharp.ipynb) + [CSP-04-Scheduling-CSharp](CSP-04-Scheduling-CSharp.ipynb).\n", "\n", "> *Ancres savantes -- Martello, S. & Toth, P. (1990), Knapsack Problems: Algorithms and Computer Implementations, John Wiley & Sons (référence canonique sur le 0/1 knapsack) ; Gilmore, P.C. & Gomory, R.E. (1961), A Linear Programming Approach to the Cutting-Stock Problem, Opérations Research 9(6):849-859 (cutting-stock pattern generation) ; Markowitz, H. (1952), Portfolio Sélection, Journal of Finance 7(1):77-91 (fondation de l'optimisation de portefeuille, variance quadratique hors scope CP pur — on utilise ici une approximation linéaire par moyenne-variance bornée).*" ] @@ -42,7 +42,9 @@ { "output_type": "stream", "name": "stdout", - "text": "Répertoire de travail: Part2-CSP\r\n" + "text": [ + "Répertoire de travail: Part2-CSP\r\n" + ] } ], "source": [ @@ -55,10 +57,10 @@ " var dir = new DirectoryInfo(Directory.GetCurrentDirectory());\n", " while (dir != null)\n", " {\n", - " if (File.Exists(Path.Combine(dir.FullName, \"CSP-1-Fundamentals.ipynb\")))\n", + " if (File.Exists(Path.Combine(dir.FullName, \"CSP-01-Fundamentals-Python.ipynb\")))\n", " return dir.FullName;\n", " var candidate = Path.Combine(dir.FullName, \"MyIA.AI.Notebooks\", \"Search\", \"Part2-CSP\");\n", - " if (Directory.Exists(candidate) && File.Exists(Path.Combine(candidate, \"CSP-1-Fundamentals.ipynb\")))\n", + " if (Directory.Exists(candidate) && File.Exists(Path.Combine(candidate, \"CSP-01-Fundamentals-Python.ipynb\")))\n", " return candidate;\n", " dir = dir.Parent;\n", " }\n", @@ -97,18 +99,22 @@ { "output_type": "display_data", "data": { - "text/html": "
Installing Packages
  • IKVM
  • IKVM.Image
" + "text/html": [ + "
Installing Packages
  • IKVM
  • IKVM.Image
" + ] }, "metadata": {} }, { "output_type": "stream", "name": "stdout", - "text": "IKVM 8.15.0 prêt (home=ikvm-home-8.15.0-win-x64, tzdb=True) - Choco-solver charge\r\n" + "text": [ + "IKVM 8.15.0 prêt (home=ikvm-home-8.15.0-win-x64, tzdb=True) - Choco-solver charge\r\n" + ] } ], "source": [ - "// Configuration IKVM 8.15.0 pour Choco-solver (identique à CSP-4-Scheduling-CSharp.ipynb, cf. #4711)\n", + "// Configuration IKVM 8.15.0 pour Choco-solver (identique à CSP-04-Scheduling-CSharp.ipynb, cf. #4711)\n", "#r \"nuget: IKVM, 8.15.0\"\n", "#r \"nuget: IKVM.Image, 8.15.0\"\n", "\n", @@ -161,7 +167,9 @@ { "output_type": "stream", "name": "stdout", - "text": "Choco-solver via IKVM 8.15.0 - Prêt pour optimisation combinatoire\r\n" + "text": [ + "Choco-solver via IKVM 8.15.0 - Prêt pour optimisation combinatoire\r\n" + ] } ], "source": [ @@ -218,22 +226,30 @@ { "output_type": "stream", "name": "stdout", - "text": "Bin Packing : nombre optimal de bins = 3 (capacite 10)\r\n" + "text": [ + "Bin Packing : nombre optimal de bins = 3 (capacite 10)\r\n" + ] }, { "output_type": "stream", "name": "stdout", - "text": " Bin 0 (charge 7/10) : objets [1,4] tailles [5,2]\r\n" + "text": [ + " Bin 0 (charge 7/10) : objets [1,4] tailles [5,2]\r\n" + ] }, { "output_type": "stream", "name": "stdout", - "text": " Bin 1 (charge 4/10) : objets [2] tailles [4]\r\n" + "text": [ + " Bin 1 (charge 4/10) : objets [2] tailles [4]\r\n" + ] }, { "output_type": "stream", "name": "stdout", - "text": " Bin 2 (charge 9/10) : objets [0,3] tailles [2,7]\r\n" + "text": [ + " Bin 2 (charge 9/10) : objets [0,3] tailles [2,7]\r\n" + ] } ], "source": [ @@ -359,17 +375,23 @@ { "output_type": "stream", "name": "stdout", - "text": "Knapsack : valeur optimale = 31 (poids 10/10)\r\n" + "text": [ + "Knapsack : valeur optimale = 31 (poids 10/10)\r\n" + ] }, { "output_type": "stream", "name": "stdout", - "text": " Objets selectionnes : [0,1,3]\r\n" + "text": [ + " Objets selectionnes : [0,1,3]\r\n" + ] }, { "output_type": "stream", "name": "stdout", - "text": " Poids : [2,3,5], Valeurs : [6,10,15]\r\n" + "text": [ + " Poids : [2,3,5], Valeurs : [6,10,15]\r\n" + ] } ], "source": [ @@ -456,57 +478,79 @@ { "output_type": "stream", "name": "stdout", - "text": "Cutting Stock : nombre optimal de barres = 10 (longueur stock 10)\r\n" + "text": [ + "Cutting Stock : nombre optimal de barres = 10 (longueur stock 10)\r\n" + ] }, { "output_type": "stream", "name": "stdout", - "text": " Barre 0 (longueur 9/10) : pieces [11] longueurs [9]\r\n" + "text": [ + " Barre 0 (longueur 9/10) : pieces [11] longueurs [9]\r\n" + ] }, { "output_type": "stream", "name": "stdout", - "text": " Barre 1 (longueur 8/10) : pieces [3,4] longueurs [4,4]\r\n" + "text": [ + " Barre 1 (longueur 8/10) : pieces [3,4] longueurs [4,4]\r\n" + ] }, { "output_type": "stream", "name": "stdout", - "text": " Barre 2 (longueur 9/10) : pieces [12] longueurs [9]\r\n" + "text": [ + " Barre 2 (longueur 9/10) : pieces [12] longueurs [9]\r\n" + ] }, { "output_type": "stream", "name": "stdout", - "text": " Barre 3 (longueur 9/10) : pieces [10] longueurs [9]\r\n" + "text": [ + " Barre 3 (longueur 9/10) : pieces [10] longueurs [9]\r\n" + ] }, { "output_type": "stream", "name": "stdout", - "text": " Barre 4 (longueur 8/10) : pieces [1,2] longueurs [4,4]\r\n" + "text": [ + " Barre 4 (longueur 8/10) : pieces [1,2] longueurs [4,4]\r\n" + ] }, { "output_type": "stream", "name": "stdout", - "text": " Barre 5 (longueur 7/10) : pieces [9] longueurs [7]\r\n" + "text": [ + " Barre 5 (longueur 7/10) : pieces [9] longueurs [7]\r\n" + ] }, { "output_type": "stream", "name": "stdout", - "text": " Barre 6 (longueur 8/10) : pieces [0,5] longueurs [4,4]\r\n" + "text": [ + " Barre 6 (longueur 8/10) : pieces [0,5] longueurs [4,4]\r\n" + ] }, { "output_type": "stream", "name": "stdout", - "text": " Barre 7 (longueur 7/10) : pieces [6] longueurs [7]\r\n" + "text": [ + " Barre 7 (longueur 7/10) : pieces [6] longueurs [7]\r\n" + ] }, { "output_type": "stream", "name": "stdout", - "text": " Barre 8 (longueur 7/10) : pieces [8] longueurs [7]\r\n" + "text": [ + " Barre 8 (longueur 7/10) : pieces [8] longueurs [7]\r\n" + ] }, { "output_type": "stream", "name": "stdout", - "text": " Barre 9 (longueur 7/10) : pieces [7] longueurs [7]\r\n" + "text": [ + " Barre 9 (longueur 7/10) : pieces [7] longueurs [7]\r\n" + ] } ], "source": [ @@ -621,17 +665,23 @@ { "output_type": "stream", "name": "stdout", - "text": "Portfolio : rendement optimal = 27 (risque 48/50, 3/3 actifs)\r\n" + "text": [ + "Portfolio : rendement optimal = 27 (risque 48/50, 3/3 actifs)\r\n" + ] }, { "output_type": "stream", "name": "stdout", - "text": " Actifs selectionnes : [0,1,4]\r\n" + "text": [ + " Actifs selectionnes : [0,1,4]\r\n" + ] }, { "output_type": "stream", "name": "stdout", - "text": " Rendements : [5,12,10], Risques : [10,20,18]\r\n" + "text": [ + " Rendements : [5,12,10], Risques : [10,20,18]\r\n" + ] } ], "source": [ @@ -748,39 +798,53 @@ { "output_type": "display_data", "data": { - "text/html": "
Installing Packages
  • Google.OrTools
" + "text/html": [ + "
Installing Packages
  • Google.OrTools
" + ] }, "metadata": {} }, { "output_type": "stream", "name": "stdout", - "text": "CP-SAT (.NET natif) : status = Optimal\r\n" + "text": [ + "CP-SAT (.NET natif) : status = Optimal\r\n" + ] }, { "output_type": "stream", "name": "stdout", - "text": "Bin Packing : nombre optimal de bins = 3 (capacite 10)\r\n" + "text": [ + "Bin Packing : nombre optimal de bins = 3 (capacite 10)\r\n" + ] }, { "output_type": "stream", "name": "stdout", - "text": " bin 0 : objets 3(t7) -- charge 7/10\r\n" + "text": [ + " bin 0 : objets 3(t7) -- charge 7/10\r\n" + ] }, { "output_type": "stream", "name": "stdout", - "text": " bin 1 : objets 0(t2),2(t4),4(t2) -- charge 8/10\r\n" + "text": [ + " bin 1 : objets 1(t5),2(t4) -- charge 9/10\r\n" + ] }, { "output_type": "stream", "name": "stdout", - "text": " bin 2 : objets 1(t5) -- charge 5/10\r\n" + "text": [ + " bin 2 : objets 0(t2),4(t2) -- charge 4/10\r\n" + ] }, { "output_type": "stream", "name": "stdout", - "text": "Branches explorees : 70, temps : 0,0 ms\r\n" + "text": [ + "Branches explorees : 59, temps : 0,0 ms\r\n" + ] } ], "source": [ @@ -883,7 +947,9 @@ { "output_type": "stream", "name": "stdout", - "text": "Exercice à compléter\r\n" + "text": [ + "Exercice à compléter\r\n" + ] } ], "source": [ @@ -920,7 +986,9 @@ { "output_type": "stream", "name": "stdout", - "text": "Exercice à compléter\r\n" + "text": [ + "Exercice à compléter\r\n" + ] } ], "source": [ @@ -955,7 +1023,9 @@ { "output_type": "stream", "name": "stdout", - "text": "Exercice à compléter\r\n" + "text": [ + "Exercice à compléter\r\n" + ] } ], "source": [ @@ -989,7 +1059,7 @@ "source": [ "## Conclusion\n", "\n", - "Ce notebook a présenté quatre problèmes classiques d'optimisation combinatoire résolus avec Choco-solver. La version Python ([CSP-5-Optimization.ipynb](CSP-5-Optimization.ipynb)) aborde la **même famille** de problèmes avec OR-Tools CP-SAT : il s'agit d'un **parallèle d'implémentation** (Choco/.NET ⇄ OR-Tools/Python) plutôt que d'une parité numérique stricte. Chaque twin utilise des **instances pédagogiques distinctes** (par exemple Bin Packing `[2,5,4,7,2]` côté C# vs `[2,2,2,3,5,6]` côté Python ; Cutting Stock `6×4 + 4×7 + 3×9` stock 10 côté C# vs pièces `[20,25,30,40]` stock 100 côté Python), donc les optima diffèrent légitimement — les deux solveurs prouvent leurs solutions `OPTIMAL` sur leurs instances respectives.\n", + "Ce notebook a présenté quatre problèmes classiques d'optimisation combinatoire résolus avec Choco-solver. La version Python ([CSP-05-Optimization-Python.ipynb](CSP-05-Optimization-Python.ipynb)) aborde la **même famille** de problèmes avec OR-Tools CP-SAT : il s'agit d'un **parallèle d'implémentation** (Choco/.NET ⇄ OR-Tools/Python) plutôt que d'une parité numérique stricte. Chaque twin utilise des **instances pédagogiques distinctes** (par exemple Bin Packing `[2,5,4,7,2]` côté C# vs `[2,2,2,3,5,6]` côté Python ; Cutting Stock `6×4 + 4×7 + 3×9` stock 10 côté C# vs pièces `[20,25,30,40]` stock 100 côté Python), donc les optima diffèrent légitimement — les deux solveurs prouvent leurs solutions `OPTIMAL` sur leurs instances respectives.\n", "\n", "| Problème | Modélisation Choco | Optimum calculé (exemple ci-dessus) |\n", "|----------|---------------------|-------------------------------------|\n", @@ -1010,8 +1080,8 @@ "\n", "### Voir aussi\n", "\n", - "- [CSP-5-Optimization.ipynb](CSP-5-Optimization.ipynb) — version Python (OR-Tools CP-SAT), instances distinctes\n", - "- [CSP-4-Scheduling-CSharp.ipynb](CSP-4-Scheduling-CSharp.ipynb) — tranche 1, parangonnage JSSP/RCPSP/Nurse\n", + "- [CSP-05-Optimization-Python.ipynb](CSP-05-Optimization-Python.ipynb) — version Python (OR-Tools CP-SAT), instances distinctes\n", + "- [CSP-04-Scheduling-CSharp.ipynb](CSP-04-Scheduling-CSharp.ipynb) — tranche 1, parangonnage JSSP/RCPSP/Nurse\n", "- [Sudoku-11-Choco-CSharp.ipynb](../../Sudoku/Sudoku-11-Choco-CSharp.ipynb) — jurisprudence IKVM 8.15.0 + Choco\n", "- [PR #4711](https://github.com/jsboige/CoursIA/pull/4711) — diagnostic des deux verrous IKVM levés\n", "- [EPIC #4956](https://github.com/jsboige/CoursIA/issues/4956) — parité .NET ⇄ Python des séries de notebooks\n", @@ -1071,4 +1141,4 @@ }, "nbformat": 4, "nbformat_minor": 5 -} +} \ No newline at end of file diff --git a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb similarity index 99% rename from MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb rename to MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb index 6a53404b9ce..cd0300f8ce7 100644 --- a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb +++ b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb @@ -7,9 +7,9 @@ "tags": [] }, "source": [ - "# CSP-5-Optimization : Problèmes d'Optimisation Combinatoire\n", + "# CSP-05-Optimization-Python : Problèmes d'Optimisation Combinatoire\n", "\n", - "**Navigation** : [<< CSP-4-Scheduling](CSP-4-Scheduling.ipynb) | [Index CSP](README.md) | [CSP-6-Hybridization >>](CSP-6-Hybridization.ipynb)\n", + "**Navigation** : [<< CSP-04-Scheduling-Python](CSP-04-Scheduling-Python.ipynb) | [Index CSP](README.md) | [CSP-06-Hybridization-Python >>](CSP-06-Hybridization-Python.ipynb)\n", "\n", "> **Durée estimée** : 2h00\n", "\n", @@ -30,7 +30,7 @@ "## Prérequis\n", "\n", "- Notebooks CSP-1 à CSP-3 (fondements CSP)\n", - "- CSP-4-Scheduling (ordonnancement)\n", + "- CSP-04-Scheduling-Python (ordonnancement)\n", "- Python 3.10+ : ortools, matplotlib, numpy\n", "- Notions de base en optimisation combinatoire\n", "\n", @@ -2256,7 +2256,7 @@ "\n", "## Annexe : parité lib-vs-lib — le même moteur Choco que le jumeau C#\n", "\n", - "Les sections précédentes ont résolu les quatre problèmes d'optimisation avec **OR-Tools CP-SAT** (moteur C++ de Google). Le jumeau C# de ce notebook (`CSP-5-Optimization-CSharp.ipynb`) résout les mêmes familles de problèmes sur **Choco-solver 4.10.17** via IKVM. Les deux moteurs sont SOTA-tier, mais **différents** : c'est l'asymétrie de machinerie documentée dans le registre de parité (#8057/#10382). Avec **pychoco** — le binding Python officiel de Choco (PyPI, MIT) — le jumeau Python peut rejouer les modèles du jumeau C# **sur le même moteur industriel** : c'est la parité *lib-vs-lib*, plus fine que la parité *concept-vs-concept*.\n", + "Les sections précédentes ont résolu les quatre problèmes d'optimisation avec **OR-Tools CP-SAT** (moteur C++ de Google). Le jumeau C# de ce notebook (`CSP-05-Optimization-CSharp.ipynb`) résout les mêmes familles de problèmes sur **Choco-solver 4.10.17** via IKVM. Les deux moteurs sont SOTA-tier, mais **différents** : c'est l'asymétrie de machinerie documentée dans le registre de parité (#8057/#10382). Avec **pychoco** — le binding Python officiel de Choco (PyPI, MIT) — le jumeau Python peut rejouer les modèles du jumeau C# **sur le même moteur industriel** : c'est la parité *lib-vs-lib*, plus fine que la parité *concept-vs-concept*.\n", "\n", "Chaque démonstration ci-dessous reprend **l'instance exacte** du jumeau C# (cellules 6/8/10/12) — instances volontairement distinctes de celles des sections 1 à 4, pour que l'annexe mesure la convergence des moteurs sans biaiser la comparaison du corps du notebook." ] @@ -2641,8 +2641,8 @@ "5. Le **choix de la méthode** dépend du compromis temps/qualité souhaité\n", "\n", "**Voir aussi** :\n", - "- [CSP-4-Scheduling.ipynb](CSP-4-Scheduling.ipynb) pour la recherche locale\n", - "- [CSP-6-Hybridization.ipynb](CSP-6-Hybridization.ipynb) pour les métaheuristiques\n", + "- [CSP-04-Scheduling-Python.ipynb](CSP-04-Scheduling-Python.ipynb) pour la recherche locale\n", + "- [CSP-06-Hybridization-Python.ipynb](CSP-06-Hybridization-Python.ipynb) pour les métaheuristiques\n", "\n" ] } diff --git a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb similarity index 66% rename from MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb rename to MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb index b749b1d4c9a..30b0af13295 100644 --- a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb +++ b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb @@ -3,7 +3,16 @@ { "cell_type": "raw", "id": "quarto-vignette", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.00742, + "end_time": "2026-11-24T09:54:34.637414+00:00", + "exception": false, + "start_time": "2026-11-24T09:54:34.629994+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "---\n", "image: ../../assets/vignettes/CSP-6-Hybridization-CSharp.png\n", @@ -13,19 +22,28 @@ { "cell_type": "markdown", "id": "ec95cde8", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.007029, + "end_time": "2026-11-24T09:54:34.652245+00:00", + "exception": false, + "start_time": "2026-11-24T09:54:34.645216+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "# CSP-6-Hybridation : Approches Hybrides Modernes (.NET / OR-Tools CP-SAT)\n", "\n", - "**Navigation** : [<< CSP-5-Optimization-CSharp](CSP-5-Optimization-CSharp.ipynb) | [Index](../README.md) | [CSP-7-Soft >>](CSP-7-Soft.ipynb)\n", + "**Navigation** : [<< CSP-05-Optimization-CSharp](CSP-05-Optimization-CSharp.ipynb) | [Index](../README.md) | [CSP-07-Soft-Python >>](CSP-07-Soft-Python.ipynb)\n", "\n", - "**Série .NET** : [<< CSP-5-Optimization-CSharp](CSP-5-Optimization-CSharp.ipynb) | [Index](../README.md) | [CSP-7-Soft-CSharp >>](CSP-7-Soft-CSharp.ipynb)\n", + "**Série .NET** : [<< CSP-05-Optimization-CSharp](CSP-05-Optimization-CSharp.ipynb) | [Index](../README.md) | [CSP-07-Soft-CSharp >>](CSP-07-Soft-CSharp.ipynb)\n", "\n", "> **Durée estimee** : 1h30\n", "\n", "## Hybridation en Programmation par Contraintes\n", "\n", - "Ce notebook explore les **approches hybrides modernes** en resolution de problèmes combinatoires, transposees en C#/.NET via **OR-Tools CP-SAT natif** (package NuGet `Google.OrTools`). Le notebook Python source [CSP-6-Hybridization.ipynb](CSP-6-Hybridization.ipynb) utilise `ortools.sat.python.cp_model` ; la version C# utilise le même moteur via son API native .NET. Pour les **terrains ou OR-Tools domine** (LCG, Portfolio, CP-SAT natif), la parite est portee directement sur la stack .NET, en complément des exemples Choco de la série.\n", + "Ce notebook explore les **approches hybrides modernes** en resolution de problèmes combinatoires, transposees en C#/.NET via **OR-Tools CP-SAT natif** (package NuGet `Google.OrTools`). Le notebook Python source [CSP-06-Hybridization-Python.ipynb](CSP-06-Hybridization-Python.ipynb) utilise `ortools.sat.python.cp_model` ; la version C# utilise le même moteur via son API native .NET. Pour les **terrains ou OR-Tools domine** (LCG, Portfolio, CP-SAT natif), la parite est portee directement sur la stack .NET, en complément des exemples Choco de la série.\n", "\n", "## Sections\n", "\n", @@ -47,12 +65,29 @@ "cell_type": "code", "execution_count": 1, "id": "4c10d946", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:54:34.682946Z", + "iopub.status.busy": "2026-11-24T09:54:34.676324Z", + "iopub.status.idle": "2026-11-24T09:54:36.930747Z", + "shell.execute_reply": "2026-11-24T09:54:36.920700Z" + }, + "papermill": { + "duration": 2.268741, + "end_time": "2026-11-24T09:54:36.930938+00:00", + "exception": false, + "start_time": "2026-11-24T09:54:34.662197+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "cwd = Part2-CSP\r\n" + "output_type": "stream", + "text": [ + "cwd = Part2-CSP\r\n" + ] } ], "source": [ @@ -65,7 +100,7 @@ " var dir = new DirectoryInfo(Directory.GetCurrentDirectory());\n", " while (dir != null)\n", " {\n", - " if (File.Exists(Path.Combine(dir.FullName, \"CSP-1-Fundamentals.ipynb\")))\n", + " if (File.Exists(Path.Combine(dir.FullName, \"CSP-01-Fundamentals-Python.ipynb\")))\n", " return dir.FullName;\n", " var candidate = Path.Combine(dir.FullName, \"MyIA.AI.Notebooks\", \"Search\", \"Part2-CSP\");\n", " if (Directory.Exists(candidate)) return candidate;\n", @@ -81,7 +116,16 @@ { "cell_type": "markdown", "id": "5be01b9f", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.011112, + "end_time": "2026-11-24T09:54:36.951040+00:00", + "exception": false, + "start_time": "2026-11-24T09:54:36.939928+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Interpretation : répertoire de travail\n", "\n", @@ -91,7 +135,16 @@ { "cell_type": "markdown", "id": "db9b79a7", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.012431, + "end_time": "2026-11-24T09:54:36.975606+00:00", + "exception": false, + "start_time": "2026-11-24T09:54:36.963175+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "## Configuration OR-Tools CP-SAT (solveur natif .NET)\n", "\n", @@ -114,25 +167,44 @@ "cell_type": "code", "execution_count": 2, "id": "ddaa9c69", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:54:36.995553Z", + "iopub.status.busy": "2026-11-24T09:54:36.995278Z", + "iopub.status.idle": "2026-11-24T09:54:37.365863Z", + "shell.execute_reply": "2026-11-24T09:54:37.365576Z" + }, + "papermill": { + "duration": 0.380213, + "end_time": "2026-11-24T09:54:37.366003+00:00", + "exception": false, + "start_time": "2026-11-24T09:54:36.985790+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "display_data", "data": { - "text/html": "
Installing Packages
  • Google.OrTools
" + "text/html": [ + "
Installed Packages
  • Google.OrTools, 9.15.6755
" + ] }, - "metadata": {} + "metadata": {}, + "output_type": "display_data" }, { - "output_type": "stream", "name": "stdout", - "text": "OR-Tools CP-SAT charge (Google.OrTools natif .NET)\r\n" + "output_type": "stream", + "text": [ + "OR-Tools CP-SAT charge (Google.OrTools natif .NET)\r\n" + ] } ], "source": [ "// Configuration OR-Tools CP-SAT (solveur natif .NET, NuGet -- pas de bridge IKVM)\n", "// LCG, Portfolio et CDCL sont natifs en CP-SAT : c'est le terrain ou OR-Tools brille pour l'hybridation (design option b #4956).\n", - "#r \"nuget: Google.OrTools\"\n", + "#r \"nuget: Google.OrTools, 9.15.6755\"\n", "using Google.OrTools.Sat;\n", "Console.WriteLine(\"OR-Tools CP-SAT charge (Google.OrTools natif .NET)\");\n" ] @@ -140,7 +212,16 @@ { "cell_type": "markdown", "id": "83d52c84", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.007918, + "end_time": "2026-11-24T09:54:37.385003+00:00", + "exception": false, + "start_time": "2026-11-24T09:54:37.377085+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Interpretation : chargement du solveur\n", "\n", @@ -150,7 +231,16 @@ { "cell_type": "markdown", "id": "c7955023", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.007228, + "end_time": "2026-11-24T09:54:37.400387+00:00", + "exception": false, + "start_time": "2026-11-24T09:54:37.393159+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "## 1. Lazy Clause Generation (LCG) avec OR-Tools CP-SAT\n", "\n", @@ -175,62 +265,99 @@ "cell_type": "code", "execution_count": 3, "id": "5869a8e2", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:54:37.419459Z", + "iopub.status.busy": "2026-11-24T09:54:37.419107Z", + "iopub.status.idle": "2026-11-24T09:54:37.996509Z", + "shell.execute_reply": "2026-11-24T09:54:37.996239Z" + }, + "papermill": { + "duration": 0.587453, + "end_time": "2026-11-24T09:54:37.996643+00:00", + "exception": false, + "start_time": "2026-11-24T09:54:37.409190+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "N=8 : status=Optimal stopwatch=0,0584s walltime=0,0162s variables=8 contraintes_diagonales=28\r\n" + "output_type": "stream", + "text": [ + "N=8 : status=Optimal stopwatch=0,0833s walltime=0,0228s variables=8 contraintes_diagonales=28\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "N=10 : status=Optimal stopwatch=0,0231s walltime=0,0221s variables=10 contraintes_diagonales=45\r\n" + "output_type": "stream", + "text": [ + "N=10 : status=Optimal stopwatch=0,0353s walltime=0,0342s variables=10 contraintes_diagonales=45\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "N=12 : status=Optimal stopwatch=0,0319s walltime=0,0310s variables=12 contraintes_diagonales=66\r\n" + "output_type": "stream", + "text": [ + "N=12 : status=Optimal stopwatch=0,0310s walltime=0,0301s variables=12 contraintes_diagonales=66\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "N=14 : status=Optimal stopwatch=0,0336s walltime=0,0316s variables=14 contraintes_diagonales=91\r\n" + "output_type": "stream", + "text": [ + "N=14 : status=Optimal stopwatch=0,0313s walltime=0,0296s variables=14 contraintes_diagonales=91\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "| N | Temps Stopwatch (s) | WallTime solveur (s) | Variables | Contraintes diagonales |\r\n" + "output_type": "stream", + "text": [ + "| N | Temps Stopwatch (s) | WallTime solveur (s) | Variables | Contraintes diagonales |\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "|---|---------------------|----------------------|-----------|------------------------|\r\n" + "output_type": "stream", + "text": [ + "|---|---------------------|----------------------|-----------|------------------------|\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "| 8 | 0,0584 | 0,0162 | 8 | 28 |\r\n" + "output_type": "stream", + "text": [ + "| 8 | 0,0833 | 0,0228 | 8 | 28 |\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "| 10 | 0,0231 | 0,0221 | 10 | 45 |\r\n" + "output_type": "stream", + "text": [ + "| 10 | 0,0353 | 0,0342 | 10 | 45 |\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "| 12 | 0,0319 | 0,0310 | 12 | 66 |\r\n" + "output_type": "stream", + "text": [ + "| 12 | 0,0310 | 0,0301 | 12 | 66 |\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "| 14 | 0,0336 | 0,0316 | 14 | 91 |\r\n" + "output_type": "stream", + "text": [ + "| 14 | 0,0313 | 0,0296 | 14 | 91 |\r\n" + ] } ], "source": [ @@ -283,7 +410,16 @@ { "cell_type": "markdown", "id": "b5047550", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.009056, + "end_time": "2026-11-24T09:54:38.014412+00:00", + "exception": false, + "start_time": "2026-11-24T09:54:38.005356+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Interpretation : Demonstration LCG via CP-SAT\n", "\n", @@ -304,7 +440,16 @@ { "cell_type": "markdown", "id": "b98e5b0d", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.005982, + "end_time": "2026-11-24T09:54:38.027870+00:00", + "exception": false, + "start_time": "2026-11-24T09:54:38.021888+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "## 2. CP + SAT : Architecture CP-SAT\n", "\n", @@ -332,57 +477,92 @@ "cell_type": "code", "execution_count": 4, "id": "70a9c63a", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:54:38.041570Z", + "iopub.status.busy": "2026-11-24T09:54:38.041140Z", + "iopub.status.idle": "2026-11-24T09:54:38.237315Z", + "shell.execute_reply": "2026-11-24T09:54:38.237143Z" + }, + "papermill": { + "duration": 0.203194, + "end_time": "2026-11-24T09:54:38.237388+00:00", + "exception": false, + "start_time": "2026-11-24T09:54:38.034194+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Horizon (somme durees) = 21\r\n" + "output_type": "stream", + "text": [ + "Horizon (somme durees) = 21\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "DEFAULT : makespan=10 statut=Optimal walltime=0,0014s\r\n" + "output_type": "stream", + "text": [ + "DEFAULT : makespan=10 statut=Optimal walltime=0,0017s\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "FIXED_SEARCH : makespan=10 statut=Optimal walltime=0,0022s\r\n" + "output_type": "stream", + "text": [ + "FIXED_SEARCH : makespan=10 statut=Optimal walltime=0,0022s\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "PORTFOLIO : makespan=10 statut=Optimal walltime=0,0086s\r\n" + "output_type": "stream", + "text": [ + "PORTFOLIO : makespan=10 statut=Optimal walltime=0,0202s\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "| Strategie | Makespan | Statut | WallTime (s) |\r\n" + "output_type": "stream", + "text": [ + "| Strategie | Makespan | Statut | WallTime (s) |\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "|-----------|----------|--------|--------------|\r\n" + "output_type": "stream", + "text": [ + "|-----------|----------|--------|--------------|\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "| DEFAULT | 10 | Optimal | 0,0014 |\r\n" + "output_type": "stream", + "text": [ + "| DEFAULT | 10 | Optimal | 0,0017 |\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "| FIXED_SEARCH | 10 | Optimal | 0,0022 |\r\n" + "output_type": "stream", + "text": [ + "| FIXED_SEARCH | 10 | Optimal | 0,0022 |\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "| PORTFOLIO (8 workers) | 10 | Optimal | 0,0086 |\r\n" + "output_type": "stream", + "text": [ + "| PORTFOLIO (8 workers) | 10 | Optimal | 0,0202 |\r\n" + ] } ], "source": [ @@ -484,7 +664,16 @@ { "cell_type": "markdown", "id": "e6c2de7c", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.008515, + "end_time": "2026-11-24T09:54:38.252329+00:00", + "exception": false, + "start_time": "2026-11-24T09:54:38.243814+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Interprétation : exploration des paramètres CP-SAT\n", "\n", @@ -506,7 +695,16 @@ { "cell_type": "markdown", "id": "09fbea70", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.008876, + "end_time": "2026-11-24T09:54:38.269628+00:00", + "exception": false, + "start_time": "2026-11-24T09:54:38.260752+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "## 3. CP + Machine Learning\n", "\n", @@ -524,22 +722,43 @@ "cell_type": "code", "execution_count": 5, "id": "3d37255e", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:54:38.290541Z", + "iopub.status.busy": "2026-11-24T09:54:38.290024Z", + "iopub.status.idle": "2026-11-24T09:54:39.410272Z", + "shell.execute_reply": "2026-11-24T09:54:39.409998Z" + }, + "papermill": { + "duration": 1.130469, + "end_time": "2026-11-24T09:54:39.410373+00:00", + "exception": false, + "start_time": "2026-11-24T09:54:38.279904+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Instances generees : 50, faisables : 49 (98%)\r\n" + "output_type": "stream", + "text": [ + "Instances generees : 50, faisables : 49 (98%)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "nVars : min=5, max=11, moyenne=8,0\r\n" + "output_type": "stream", + "text": [ + "nVars : min=5, max=11, moyenne=8,0\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "nConstraints : min=5, max=19, moyenne=12,2\r\n" + "output_type": "stream", + "text": [ + "nConstraints : min=5, max=19, moyenne=12,2\r\n" + ] } ], "source": [ @@ -582,7 +801,16 @@ { "cell_type": "markdown", "id": "02cf1338", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.009314, + "end_time": "2026-11-24T09:54:39.429039+00:00", + "exception": false, + "start_time": "2026-11-24T09:54:39.419725+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Interpretation : Generation d'instances CSP aléatoires\n", "\n", @@ -603,22 +831,43 @@ "cell_type": "code", "execution_count": 6, "id": "a07f970c", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:54:39.449030Z", + "iopub.status.busy": "2026-11-24T09:54:39.448585Z", + "iopub.status.idle": "2026-11-24T09:54:39.678949Z", + "shell.execute_reply": "2026-11-24T09:54:39.678759Z" + }, + "papermill": { + "duration": 0.240741, + "end_time": "2026-11-24T09:54:39.679039+00:00", + "exception": false, + "start_time": "2026-11-24T09:54:39.438298+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Correlation prediction vs realite : 0,047\r\n" + "output_type": "stream", + "text": [ + "Correlation prediction vs realite : 0,047\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Poids appris : [2,033, -1,012, 2,727, 0,824, 0,431]\r\n" + "output_type": "stream", + "text": [ + "Poids appris : [2,033, -1,012, 2,727, 0,824, 0,431]\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Biais : 0,263\r\n" + "output_type": "stream", + "text": [ + "Biais : 0,263\r\n" + ] } ], "source": [ @@ -686,7 +935,16 @@ { "cell_type": "markdown", "id": "716e573e", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.005987, + "end_time": "2026-11-24T09:54:39.690658+00:00", + "exception": false, + "start_time": "2026-11-24T09:54:39.684671+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Interpretation : Prediction de faisabilite\n", "\n", @@ -708,7 +966,16 @@ { "cell_type": "markdown", "id": "543b6a02", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.005601, + "end_time": "2026-11-24T09:54:39.702915+00:00", + "exception": false, + "start_time": "2026-11-24T09:54:39.697314+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "## 4. LLM + CSP : Modélisation Conversationnelle\n", "\n", @@ -732,7 +999,16 @@ { "cell_type": "markdown", "id": "04257f7e", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.00788, + "end_time": "2026-11-24T09:54:39.716522+00:00", + "exception": false, + "start_time": "2026-11-24T09:54:39.708642+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### 4.1 Client LLM réel : function-calling sur le vLLM du cluster\n", "\n", @@ -747,47 +1023,71 @@ "cell_type": "code", "execution_count": 7, "id": "8d0f8861", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:54:39.735518Z", + "iopub.status.busy": "2026-11-24T09:54:39.734884Z", + "iopub.status.idle": "2026-11-24T09:56:17.694248Z", + "shell.execute_reply": "2026-11-24T09:56:17.694078Z" + }, + "papermill": { + "duration": 97.968277, + "end_time": "2026-11-24T09:56:17.694316+00:00", + "exception": false, + "start_time": "2026-11-24T09:54:39.726039+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "HTTP 200 en 167,3 s\r\n" - }, - { "output_type": "stream", - "name": "stdout", - "text": "Modele : swift-1.5-27b\r\n" + "text": [ + "HTTP 200 en 97,6 s\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "finish_reason : tool_calls\r\n" + "output_type": "stream", + "text": [ + "Modele : swift-1.5-27b\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Tokens : 1070 en entree, 969 en sortie\r\n" + "output_type": "stream", + "text": [ + "finish_reason : tool_calls\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " dont tokens de raisonnement : 626\r\n" + "output_type": "stream", + "text": [ + "Tokens : 1090 en entree, 971 en sortie\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Outil appele : define_scheduling_problem\r\n" + "output_type": "stream", + "text": [ + "Outil appele : define_scheduling_problem\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Arguments retournes par le modele :\r\n" + "output_type": "stream", + "text": [ + "Arguments retournes par le modele :\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "{\"problem_type\": \"scheduling\", \"description\": \"Ordonnancement de trois taches A, B, C sur deux machines M1 et M2 avec contraintes de non-chevauchement sur M1 et de precedences avec delais vers C, en minimisant le makespan.\", \"variables\": [{\"name\": \"start_A\", \"type\": \"int\", \"lower\": 0, \"upper\": 17}, {\"name\": \"start_B\", \"type\": \"int\", \"lower\": 0, \"upper\": 17}, {\"name\": \"start_C\", \"type\": \"int\", \"lower\": 0, \"upper\": 17}], \"durations\": {\"A\": 4, \"B\": 3, \"C\": 5}, \"constraints\": [{\"type\": \"resource\", \"machine\": \"M1\", \"tasks\": [\"A\", \"B\"], \"no_overlap\": true}, {\"type\": \"resource\", \"machine\": \"M2\", \"tasks\": [\"C\"], \"no_overlap\": true}, {\"type\": \"precedence\", \"before\": \"A\", \"after\": \"C\", \"delay\": 3}, {\"type\": \"precedence\", \"before\": \"B\", \"after\": \"C\", \"delay\": 2}], \"objective\": \"minimize_makespan\"}\r\n" + "output_type": "stream", + "text": [ + "{\"problem_type\":\"scheduling\",\"description\":\"Ordonnancement de trois taches (A, B, C) sur deux machines (M1, M2) avec contraintes de non-chevauchement sur M1 et de precedences avec delais vers C, en minimisant le makespan.\",\"variables\":[{\"name\":\"start_A\",\"type\":\"int\",\"lower\":0,\"upper\":14},{\"name\":\"start_B\",\"type\":\"int\",\"lower\":0,\"upper\":14},{\"name\":\"start_C\",\"type\":\"int\",\"lower\":0,\"upper\":14}],\"constraints\":[{\"type\":\"resource\",\"machine\":\"M1\",\"tasks\":[\"A\",\"B\"],\"no_overlap\":true},{\"type\":\"resource\",\"machine\":\"M2\",\"tasks\":[\"C\"],\"no_overlap\":true},{\"type\":\"precedence\",\"before\":\"A\",\"after\":\"C\",\"delay\":3},{\"type\":\"precedence\",\"before\":\"B\",\"after\":\"C\",\"delay\":2}],\"durations\":{\"A\":4,\"B\":3,\"C\":5},\"objective\":\"minimize_makespan\"}\r\n" + ] } ], "source": [ @@ -988,7 +1288,16 @@ { "cell_type": "markdown", "id": "19508cd9", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.005226, + "end_time": "2026-11-24T09:56:17.705191+00:00", + "exception": false, + "start_time": "2026-11-24T09:56:17.699965+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "#### Lecture du résultat\n", "\n", @@ -1003,7 +1312,16 @@ { "cell_type": "markdown", "id": "79e89adf", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.00661, + "end_time": "2026-11-24T09:56:17.717347+00:00", + "exception": false, + "start_time": "2026-11-24T09:56:17.710737+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### 4.2 Le mock de reference et la transcription CP-SAT\n", "\n", @@ -1016,37 +1334,64 @@ "cell_type": "code", "execution_count": 8, "id": "70393ab9", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:56:17.731299Z", + "iopub.status.busy": "2026-11-24T09:56:17.730935Z", + "iopub.status.idle": "2026-11-24T09:56:17.958178Z", + "shell.execute_reply": "2026-11-24T09:56:17.958013Z" + }, + "papermill": { + "duration": 0.235243, + "end_time": "2026-11-24T09:56:17.958259+00:00", + "exception": false, + "start_time": "2026-11-24T09:56:17.723016+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Transcription du JSON produit par l'appel reel (section 4.1).\r\n" + "output_type": "stream", + "text": [ + "Transcription du JSON produit par l'appel reel (section 4.1).\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Statut : Optimal\r\n" + "output_type": "stream", + "text": [ + "Statut : Optimal\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Makespan optimal : 14\r\n" + "output_type": "stream", + "text": [ + "Makespan optimal : 14\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " Tache A : start=0, end=4\r\n" + "output_type": "stream", + "text": [ + " Tache A : start=0, end=4\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " Tache B : start=4, end=7\r\n" + "output_type": "stream", + "text": [ + " Tache B : start=4, end=7\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " Tache C : start=9, end=14\r\n" + "output_type": "stream", + "text": [ + " Tache C : start=9, end=14\r\n" + ] } ], "source": [ @@ -1156,7 +1501,16 @@ { "cell_type": "markdown", "id": "80c61fa7", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.005838, + "end_time": "2026-11-24T09:56:17.969947+00:00", + "exception": false, + "start_time": "2026-11-24T09:56:17.964109+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Interpretation : LLM + CSP pour la modélisation conversationnelle\n", "\n", @@ -1174,7 +1528,16 @@ { "cell_type": "markdown", "id": "ec68b717", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.005659, + "end_time": "2026-11-24T09:56:17.981613+00:00", + "exception": false, + "start_time": "2026-11-24T09:56:17.975954+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### 4.3 Garde : la conformite au schema ne dit rien de la sémantique\n", "\n", @@ -1187,77 +1550,120 @@ "cell_type": "code", "execution_count": 9, "id": "be2c0a7a", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:56:17.994387Z", + "iopub.status.busy": "2026-11-24T09:56:17.994079Z", + "iopub.status.idle": "2026-11-24T09:56:18.203424Z", + "shell.execute_reply": "2026-11-24T09:56:18.203233Z" + }, + "papermill": { + "duration": 0.216289, + "end_time": "2026-11-24T09:56:18.203495+00:00", + "exception": false, + "start_time": "2026-11-24T09:56:17.987206+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Premiere garde -- la solution respecte l'enonce :\r\n" + "output_type": "stream", + "text": [ + "Premiere garde -- la solution respecte l'enonce :\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "C demarre au moins 3 unites apres la fin de A : True\r\n" + "output_type": "stream", + "text": [ + "C demarre au moins 3 unites apres la fin de A : True\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "C demarre au moins 2 unites apres la fin de B : True\r\n" + "output_type": "stream", + "text": [ + "C demarre au moins 2 unites apres la fin de B : True\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "A (duree 4) et B (duree 3) ne se chevauchent pas : True\r\n" + "output_type": "stream", + "text": [ + "A (duree 4) et B (duree 3) ne se chevauchent pas : True\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Durees A=4, B=3, C=5 respectees : True\r\n" + "output_type": "stream", + "text": [ + "Durees A=4, B=3, C=5 respectees : True\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Makespan = max(fin A, fin B, fin C) : True\r\n" + "output_type": "stream", + "text": [ + "Makespan = max(fin A, fin B, fin C) : True\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Seconde garde -- equivalence des deux modeles :\r\n" + "output_type": "stream", + "text": [ + "Seconde garde -- equivalence des deux modeles :\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Statut du modele de reference : Optimal\r\n" + "output_type": "stream", + "text": [ + "Statut du modele de reference : Optimal\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Optimum du modele de reference (enonce en dur) : 14\r\n" + "output_type": "stream", + "text": [ + "Optimum du modele de reference (enonce en dur) : 14\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Optimum du modele transcrit depuis le JSON : 14\r\n" + "output_type": "stream", + "text": [ + "Optimum du modele transcrit depuis le JSON : 14\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Modeles equivalents (meme optimum) : True\r\n" + "output_type": "stream", + "text": [ + "Modeles equivalents (meme optimum) : True\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "VERDICT : traduction conforme a l'enonce (solution valide, modeles equivalents).\r\n" + "output_type": "stream", + "text": [ + "VERDICT : traduction conforme a l'enonce (solution valide, modeles equivalents).\r\n" + ] } ], "source": [ @@ -1354,7 +1760,16 @@ { "cell_type": "markdown", "id": "6c13b33f", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.006103, + "end_time": "2026-11-24T09:56:18.216036+00:00", + "exception": false, + "start_time": "2026-11-24T09:56:18.209933+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "## 5. Portfolio et Parallélisme avec CP-SAT\n", "\n", @@ -1373,62 +1788,99 @@ "cell_type": "code", "execution_count": 10, "id": "c90e3d6b", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:56:18.229327Z", + "iopub.status.busy": "2026-11-24T09:56:18.229131Z", + "iopub.status.idle": "2026-11-24T09:56:18.495293Z", + "shell.execute_reply": "2026-11-24T09:56:18.495146Z" + }, + "papermill": { + "duration": 0.272989, + "end_time": "2026-11-24T09:56:18.495359+00:00", + "exception": false, + "start_time": "2026-11-24T09:56:18.222370+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "workers=1 : time=0,034s status=Optimal\r\n" + "output_type": "stream", + "text": [ + "workers=1 : time=0,019s status=Optimal\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "workers=2 : time=0,029s status=Optimal\r\n" + "output_type": "stream", + "text": [ + "workers=2 : time=0,032s status=Optimal\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "workers=4 : time=0,032s status=Optimal\r\n" + "output_type": "stream", + "text": [ + "workers=4 : time=0,032s status=Optimal\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "workers=8 : time=0,031s status=Optimal\r\n" + "output_type": "stream", + "text": [ + "workers=8 : time=0,032s status=Optimal\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "| Workers | Temps (s) | Speedup vs workers=1 |\r\n" + "output_type": "stream", + "text": [ + "| Workers | Temps (s) | Speedup vs workers=1 |\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "|---------|-----------|----------------------|\r\n" + "output_type": "stream", + "text": [ + "|---------|-----------|----------------------|\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "| 1 | 0,034 | 1,00x |\r\n" + "output_type": "stream", + "text": [ + "| 1 | 0,019 | 1,00x |\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "| 2 | 0,029 | 1,19x |\r\n" + "output_type": "stream", + "text": [ + "| 2 | 0,032 | 0,60x |\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "| 4 | 0,032 | 1,07x |\r\n" + "output_type": "stream", + "text": [ + "| 4 | 0,032 | 0,60x |\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "| 8 | 0,031 | 1,10x |\r\n" + "output_type": "stream", + "text": [ + "| 8 | 0,032 | 0,60x |\r\n" + ] } ], "source": [ @@ -1483,65 +1935,111 @@ { "cell_type": "markdown", "id": "c9877aa7", - "metadata": {}, - "source": "### Interpretation : benchmark de parallelisation\n\n**Sortie obtenue** : les quatre configurations (workers = 1, 2, 4, 8) atteignent toutes le statut `Optimal`. Les temps releves restent dans la même bande, a quelques dizaines de millisecondes pres, et les speedups mesures restent voisins de 1x : sur une instance aussi petite, le parallélisme n'apporte aucun gain significatif. L'ecart entre configurations mesure le bruit de la machine, pas la qualité d'un reglage — c'est pourquoi les valeurs exactes sont lues dans la sortie ci-dessus plutot que recopiees ici. Visualisons l'evolution du temps en fonction du nombre de workers pour evaluer l'efficacite de la parallelisation." + "metadata": { + "papermill": { + "duration": 0.006698, + "end_time": "2026-11-24T09:56:18.508501+00:00", + "exception": false, + "start_time": "2026-11-24T09:56:18.501803+00:00", + "status": "completed" + }, + "tags": [] + }, + "source": [ + "### Interpretation : benchmark de parallelisation\n", + "\n", + "**Sortie obtenue** : les quatre configurations (workers = 1, 2, 4, 8) atteignent toutes le statut `Optimal`. Les temps releves restent dans la même bande, a quelques dizaines de millisecondes pres, et les speedups mesures restent voisins de 1x : sur une instance aussi petite, le parallélisme n'apporte aucun gain significatif. L'ecart entre configurations mesure le bruit de la machine, pas la qualité d'un reglage — c'est pourquoi les valeurs exactes sont lues dans la sortie ci-dessus plutot que recopiees ici. Visualisons l'evolution du temps en fonction du nombre de workers pour evaluer l'efficacite de la parallelisation." + ] }, { "cell_type": "code", "execution_count": 11, "id": "befbabe2", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:56:18.523156Z", + "iopub.status.busy": "2026-11-24T09:56:18.522841Z", + "iopub.status.idle": "2026-11-24T09:56:18.812805Z", + "shell.execute_reply": "2026-11-24T09:56:18.812914Z" + }, + "papermill": { + "duration": 0.297866, + "end_time": "2026-11-24T09:56:18.812982+00:00", + "exception": false, + "start_time": "2026-11-24T09:56:18.515116+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "display_data", "data": { - "text/html": "
Installing Packages
  • ScottPlot
" + "text/html": [ + "
Installed Packages
  • ScottPlot, 5.0.55
" + ] }, - "metadata": {} + "metadata": {}, + "output_type": "display_data" }, { - "output_type": "display_data", "data": { - "text/plain": "" + "text/plain": [ + + ] }, - "metadata": {} + "metadata": {}, + "output_type": "display_data" }, { - "output_type": "display_data", "data": { - "text/html": "" + "text/html": [ + "" + ] }, - "metadata": {} + "metadata": {}, + "output_type": "display_data" }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Note : sur cette instance de taille modeste (N=12), le parallelisme natif CP-SAT\r\n" + "output_type": "stream", + "text": [ + "Note : sur cette instance de taille modeste (N=12), le parallelisme natif CP-SAT\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "ne montre pas de gain significatif car le solveur est deja rapide. Pour des N >= 50,\r\n" + "output_type": "stream", + "text": [ + "ne montre pas de gain significatif car le solveur est deja rapide. Pour des N >= 50,\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "on observerait un speedup plus net, surtout avec un vrai num_search_workers.\r\n" + "output_type": "stream", + "text": [ + "on observerait un speedup plus net, surtout avec un vrai num_search_workers.\r\n" + ] }, { - "output_type": "stream", "name": "stderr", - "text": "\r\nwarning CS1701: En supposant que la référence d'assembly 'Microsoft.AspNetCore.Html.Abstractions, Version=2.3.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' utilisée par 'Microsoft.DotNet.Interactive' correspond à l'identité 'Microsoft.AspNetCore.Html.Abstractions, Version=10.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' de 'Microsoft.AspNetCore.Html.Abstractions', il se peut que vous deviez fournir une stratégie runtime\r\n\r\n" + "output_type": "stream", + "text": [ + "\r\n", + "warning CS1701: En supposant que la référence d'assembly 'Microsoft.AspNetCore.Html.Abstractions, Version=2.3.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' utilisée par 'Microsoft.DotNet.Interactive' correspond à l'identité 'Microsoft.AspNetCore.Html.Abstractions, Version=10.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' de 'Microsoft.AspNetCore.Html.Abstractions', il se peut que vous deviez fournir une stratégie runtime\r\n", + "\r\n" + ] } ], "source": [ "// Visualisation ScottPlot 5.x : barres du temps par configuration\n", - "// Pattern valide c189 CSP-2-Consistency-CSharp : display(HTML(plt.GetPngHtml(700, 400)))\n", + "// Pattern valide c189 CSP-02-Consistency-CSharp : display(HTML(plt.GetPngHtml(700, 400)))\n", "#r \"nuget: ScottPlot, 5.0.55\"\n", "using ScottPlot;\n", "using Microsoft.DotNet.Interactive.Formatting;\n", @@ -1572,7 +2070,16 @@ { "cell_type": "markdown", "id": "49d2d934", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.007976, + "end_time": "2026-11-24T09:56:18.827783+00:00", + "exception": false, + "start_time": "2026-11-24T09:56:18.819807+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Interpretation : Visualisation du speedup\n", "\n", @@ -1591,7 +2098,16 @@ { "cell_type": "markdown", "id": "c8caab4e", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.009827, + "end_time": "2026-11-24T09:56:18.845034+00:00", + "exception": false, + "start_time": "2026-11-24T09:56:18.835207+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "## 6. Exemples guides et Exercices\n", "\n", @@ -1601,7 +2117,16 @@ { "cell_type": "markdown", "id": "7b6fbd17", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.008638, + "end_time": "2026-11-24T09:56:18.865234+00:00", + "exception": false, + "start_time": "2026-11-24T09:56:18.856596+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Exemple guide 1 : Generation de modèles (Parser JSON)\n", "\n", @@ -1616,27 +2141,50 @@ "cell_type": "code", "execution_count": 12, "id": "52ada2bd", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:56:18.882216Z", + "iopub.status.busy": "2026-11-24T09:56:18.882033Z", + "iopub.status.idle": "2026-11-24T09:56:19.006016Z", + "shell.execute_reply": "2026-11-24T09:56:19.005692Z" + }, + "papermill": { + "duration": 0.132805, + "end_time": "2026-11-24T09:56:19.006164+00:00", + "exception": false, + "start_time": "2026-11-24T09:56:18.873359+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Statut : Optimal\r\n" + "output_type": "stream", + "text": [ + "Statut : Optimal\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " x = 0\r\n" + "output_type": "stream", + "text": [ + " x = 0\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " y = 1\r\n" + "output_type": "stream", + "text": [ + " y = 1\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " z = 0\r\n" + "output_type": "stream", + "text": [ + " z = 0\r\n" + ] } ], "source": [ @@ -1709,7 +2257,16 @@ { "cell_type": "markdown", "id": "47dc3ae3", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.012083, + "end_time": "2026-11-24T09:56:19.028783+00:00", + "exception": false, + "start_time": "2026-11-24T09:56:19.016700+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Interpretation : exemple guide 1 résolu\n", "\n", @@ -1719,7 +2276,16 @@ { "cell_type": "markdown", "id": "749fba8f", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.006947, + "end_time": "2026-11-24T09:56:19.044890+00:00", + "exception": false, + "start_time": "2026-11-24T09:56:19.037943+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Exercice 1 : Parser JSON pour un problème d'ordonnancement\n", "\n", @@ -1743,12 +2309,29 @@ "cell_type": "code", "execution_count": 13, "id": "6bf5cb4f", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:56:19.062818Z", + "iopub.status.busy": "2026-11-24T09:56:19.062460Z", + "iopub.status.idle": "2026-11-24T09:56:19.117117Z", + "shell.execute_reply": "2026-11-24T09:56:19.116923Z" + }, + "papermill": { + "duration": 0.064044, + "end_time": "2026-11-24T09:56:19.117209+00:00", + "exception": false, + "start_time": "2026-11-24T09:56:19.053165+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Exercice a completer : implementer le parser JSON -> CP-SAT pour ordonnancement\r\n" + "output_type": "stream", + "text": [ + "Exercice a completer : implementer le parser JSON -> CP-SAT pour ordonnancement\r\n" + ] } ], "source": [ @@ -1780,7 +2363,16 @@ { "cell_type": "markdown", "id": "3349fbcb", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.012149, + "end_time": "2026-11-24T09:56:19.139742+00:00", + "exception": false, + "start_time": "2026-11-24T09:56:19.127593+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Exemple guide 2 : ML pour branching (VSIDS-like)\n", "\n", @@ -1791,97 +2383,148 @@ "cell_type": "code", "execution_count": 14, "id": "4fbea6b4", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:56:19.166347Z", + "iopub.status.busy": "2026-11-24T09:56:19.165962Z", + "iopub.status.idle": "2026-11-24T09:56:19.251562Z", + "shell.execute_reply": "2026-11-24T09:56:19.251302Z" + }, + "papermill": { + "duration": 0.098907, + "end_time": "2026-11-24T09:56:19.251683+00:00", + "exception": false, + "start_time": "2026-11-24T09:56:19.152776+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Iter 0: choisie variable 0 (activite=0,00)\r\n" + "output_type": "stream", + "text": [ + "Iter 0: choisie variable 0 (activite=0,00)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Iter 1: choisie variable 0 (activite=0,00)\r\n" + "output_type": "stream", + "text": [ + "Iter 1: choisie variable 0 (activite=0,00)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Iter 2: choisie variable 0 (activite=0,00)\r\n" + "output_type": "stream", + "text": [ + "Iter 2: choisie variable 0 (activite=0,00)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Iter 3: choisie variable 0 (activite=1,00)\r\n" + "output_type": "stream", + "text": [ + "Iter 3: choisie variable 0 (activite=1,00)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Iter 4: choisie variable 0 (activite=1,95)\r\n" + "output_type": "stream", + "text": [ + "Iter 4: choisie variable 0 (activite=1,95)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Iter 5: choisie variable 0 (activite=2,85)\r\n" + "output_type": "stream", + "text": [ + "Iter 5: choisie variable 0 (activite=2,85)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Iter 6: choisie variable 0 (activite=2,71)\r\n" + "output_type": "stream", + "text": [ + "Iter 6: choisie variable 0 (activite=2,71)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Iter 7: choisie variable 0 (activite=3,57)\r\n" + "output_type": "stream", + "text": [ + "Iter 7: choisie variable 0 (activite=3,57)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Iter 8: choisie variable 0 (activite=3,40)\r\n" + "output_type": "stream", + "text": [ + "Iter 8: choisie variable 0 (activite=3,40)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Iter 9: choisie variable 0 (activite=4,23)\r\n" + "output_type": "stream", + "text": [ + "Iter 9: choisie variable 0 (activite=4,23)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Activites finales :\r\n" + "output_type": "stream", + "text": [ + "Activites finales :\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " var_0 : 4,226\r\n" + "output_type": "stream", + "text": [ + " var_0 : 4,226\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " var_1 : 0,000\r\n" + "output_type": "stream", + "text": [ + " var_1 : 0,000\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " var_2 : 0,000\r\n" + "output_type": "stream", + "text": [ + " var_2 : 0,000\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " var_3 : 0,000\r\n" + "output_type": "stream", + "text": [ + " var_3 : 0,000\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " var_4 : 0,000\r\n" + "output_type": "stream", + "text": [ + " var_4 : 0,000\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " var_5 : 0,000\r\n" + "output_type": "stream", + "text": [ + " var_5 : 0,000\r\n" + ] } ], "source": [ @@ -1914,7 +2557,16 @@ { "cell_type": "markdown", "id": "4e14eb36", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.012027, + "end_time": "2026-11-24T09:56:19.276227+00:00", + "exception": false, + "start_time": "2026-11-24T09:56:19.264200+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Interpretation : exemple guide 2 résolu\n", "\n", @@ -1924,7 +2576,16 @@ { "cell_type": "markdown", "id": "f02f584f", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.007784, + "end_time": "2026-11-24T09:56:19.293249+00:00", + "exception": false, + "start_time": "2026-11-24T09:56:19.285465+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Exercice 2 : Branching base sur l'activite (extension VSIDS)\n", "\n", @@ -1937,12 +2598,29 @@ "cell_type": "code", "execution_count": 15, "id": "75b3beb1", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:56:19.312486Z", + "iopub.status.busy": "2026-11-24T09:56:19.312296Z", + "iopub.status.idle": "2026-11-24T09:56:19.350299Z", + "shell.execute_reply": "2026-11-24T09:56:19.350162Z" + }, + "papermill": { + "duration": 0.048062, + "end_time": "2026-11-24T09:56:19.350363+00:00", + "exception": false, + "start_time": "2026-11-24T09:56:19.302301+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Exercice a completer : etendre VSIDS avec choix de valeur median-first\r\n" + "output_type": "stream", + "text": [ + "Exercice a completer : etendre VSIDS avec choix de valeur median-first\r\n" + ] } ], "source": [ @@ -1964,7 +2642,16 @@ { "cell_type": "markdown", "id": "abf825f9", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.008154, + "end_time": "2026-11-24T09:56:19.366204+00:00", + "exception": false, + "start_time": "2026-11-24T09:56:19.358050+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Exemple guide 3 : Portfolio de stratégies CP-SAT\n", "\n", @@ -1977,52 +2664,86 @@ "cell_type": "code", "execution_count": 16, "id": "8fa5fc8b", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:56:19.385303Z", + "iopub.status.busy": "2026-11-24T09:56:19.385059Z", + "iopub.status.idle": "2026-11-24T09:56:19.550427Z", + "shell.execute_reply": "2026-11-24T09:56:19.550255Z" + }, + "papermill": { + "duration": 0.176654, + "end_time": "2026-11-24T09:56:19.550500+00:00", + "exception": false, + "start_time": "2026-11-24T09:56:19.373846+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Trois configurations sur N-Reines N=14 :\r\n" + "output_type": "stream", + "text": [ + "Trois configurations sur N-Reines N=14 :\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " A (defaut) : 0,026s statut=Optimal feasible=True\r\n" + "output_type": "stream", + "text": [ + " A (defaut) : 0,015s statut=Optimal feasible=True\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " parametres appliques : random_seed:0 num_workers:1\r\n" + "output_type": "stream", + "text": [ + " parametres appliques : random_seed:0 num_workers:1\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " B (recherche fixe) : 0,026s statut=Optimal feasible=True\r\n" + "output_type": "stream", + "text": [ + " B (recherche fixe) : 0,015s statut=Optimal feasible=True\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " parametres appliques : random_seed:0 num_workers:1 search_branching:FIXED_SEARCH\r\n" + "output_type": "stream", + "text": [ + " parametres appliques : random_seed:0 num_workers:1 search_branching:FIXED_SEARCH\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " C (8 workers) : 0,027s statut=Optimal feasible=True\r\n" + "output_type": "stream", + "text": [ + " C (8 workers) : 0,027s statut=Optimal feasible=True\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " parametres appliques : random_seed:0 num_workers:8\r\n" + "output_type": "stream", + "text": [ + " parametres appliques : random_seed:0 num_workers:8\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\nPlus rapide : 0,026s -- a l'echelle de quelques dizaines de millisecondes, cet ecart mesure le bruit de la machine, pas la qualite d'une strategie.\r\n" + "output_type": "stream", + "text": [ + "\n", + "Plus rapide : 0,015s -- a l'echelle de quelques dizaines de millisecondes, cet ecart mesure le bruit de la machine, pas la qualite d'une strategie.\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Un vrai portefeuille lancerait ces configurations en parallele (threads) et garderait la premiere solution trouvee.\r\n" + "output_type": "stream", + "text": [ + "Un vrai portefeuille lancerait ces configurations en parallele (threads) et garderait la premiere solution trouvee.\r\n" + ] } ], "source": [ @@ -2071,13 +2792,35 @@ { "cell_type": "markdown", "id": "60bf394e", - "metadata": {}, - "source": "### Interpretation : exemple guide 3 résolu\n\n**Sortie obtenue** : les trois stratégies du portfolio (A, B et C) trouvent toutes une solution faisable des 14-Reines (`feasible=True`), et la sortie les departage a un millieme de seconde pres — a cette echelle, l'ecart mesure le bruit de la machine, pas la qualité d'une stratégie. C'est la lecture que le carnet retient : le portefeuille se juge sur la faisabilite et la robustesse, jamais sur l'ordre d'arrivee a quelques millisecondes. Le principe du portfolio — lancer plusieurs stratégies et garder la meilleure — est ainsi illustre sur un cas simple." + "metadata": { + "papermill": { + "duration": 0.009887, + "end_time": "2026-11-24T09:56:19.568695+00:00", + "exception": false, + "start_time": "2026-11-24T09:56:19.558808+00:00", + "status": "completed" + }, + "tags": [] + }, + "source": [ + "### Interpretation : exemple guide 3 résolu\n", + "\n", + "**Sortie obtenue** : les trois stratégies du portfolio (A, B et C) trouvent toutes une solution faisable des 14-Reines (`feasible=True`), et la sortie les departage a un millieme de seconde pres — a cette echelle, l'ecart mesure le bruit de la machine, pas la qualité d'une stratégie. C'est la lecture que le carnet retient : le portefeuille se juge sur la faisabilite et la robustesse, jamais sur l'ordre d'arrivee a quelques millisecondes. Le principe du portfolio — lancer plusieurs stratégies et garder la meilleure — est ainsi illustre sur un cas simple." + ] }, { "cell_type": "markdown", "id": "7928541e", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.008004, + "end_time": "2026-11-24T09:56:19.585481+00:00", + "exception": false, + "start_time": "2026-11-24T09:56:19.577477+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Exercice 3 : Portfolio avec 5 stratégies et timeout adaptatif\n", "\n", @@ -2090,12 +2833,29 @@ "cell_type": "code", "execution_count": 17, "id": "e28a5548", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:56:19.605142Z", + "iopub.status.busy": "2026-11-24T09:56:19.604918Z", + "iopub.status.idle": "2026-11-24T09:56:19.649655Z", + "shell.execute_reply": "2026-11-24T09:56:19.649507Z" + }, + "papermill": { + "duration": 0.054738, + "end_time": "2026-11-24T09:56:19.649722+00:00", + "exception": false, + "start_time": "2026-11-24T09:56:19.594984+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Exercice a completer : portfolio 5 strategies avec timeout adaptatif\r\n" + "output_type": "stream", + "text": [ + "Exercice a completer : portfolio 5 strategies avec timeout adaptatif\r\n" + ] } ], "source": [ @@ -2115,7 +2875,16 @@ { "cell_type": "markdown", "id": "14e46c95", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.008209, + "end_time": "2026-11-24T09:56:19.666210+00:00", + "exception": false, + "start_time": "2026-11-24T09:56:19.658001+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "## Conclusion\n", "\n", @@ -2177,8 +2946,20 @@ "name": "C#", "pygments_lexer": "csharp", "version": "13.0" + }, + "papermill": { + "default_parameters": {}, + "duration": 107.842234, + "end_time": "2026-11-24T09:56:19.911195+00:00", + "environment_variables": {}, + "exception": null, + "input_path": "CSP-06-Hybridization-CSharp.ipynb", + "output_path": "CSP-06-Hybridization-CSharp.ipynb", + "parameters": {}, + "start_time": "2026-11-24T09:54:32.068961+00:00", + "version": "2.7.0" } }, "nbformat": 4, "nbformat_minor": 5 -} +} \ No newline at end of file diff --git a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb similarity index 99% rename from MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb rename to MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb index 5c903c0671a..f76f3e40933 100644 --- a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb +++ b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb @@ -16,7 +16,7 @@ "source": [ "# CSP-6-Hybridation : Approches Hybrides Modernes\n", "\n", - "**Navigation** : [<< CSP-5-Optimization](CSP-5-Optimization.ipynb) | [Index CSP](README.md) | [CSP-7-Soft >>](CSP-7-Soft.ipynb)\n", + "**Navigation** : [<< CSP-05-Optimization-Python](CSP-05-Optimization-Python.ipynb) | [Index CSP](README.md) | [CSP-07-Soft-Python >>](CSP-07-Soft-Python.ipynb)\n", "\n", "> **Durée estimée** : 1h30\n", "\n", @@ -35,8 +35,8 @@ "## Prérequis\n", "\n", "- Notebooks CSP-1 à CSP-3 (fondements CSP)\n", - "- CSP-4-Scheduling (ordonnancement)\n", - "- CSP-5-Optimization (optimisation combinatoire)\n", + "- CSP-04-Scheduling-Python (ordonnancement)\n", + "- CSP-05-Optimization-Python (optimisation combinatoire)\n", "- Python 3.10+ : ortools, matplotlib\n", "- Notions de base en SAT solving et machine learning\n", "\n", @@ -872,7 +872,7 @@ "\n", "L'appel lit trois variables d'environnement, absentes du carnet par construction : `VLLM_BASE_URL`, `VLLM_API_KEY` et `VLLM_MODEL`. Sans les deux premières, aucune sortie de repli n'est fabriquée : la cellule le dit, et la section 4.2 retombe alors explicitement sur le mock de référence. La **clé** ne quitte jamais l'en-tête `Authorization` de la requête ; l'URL d'appel, elle, ne porte aucune valeur secrète : le code imprime l'adresse du service telle que résolue sur la machine d'exécution — une boucle locale lorsque le service y tourne.\n", "\n", - "Le schéma de l'outil est celui du jumeau C# (`CSP-6-Hybridization-CSharp.ipynb`) : les deux carnets décrivent la même structure, de sorte qu'un lecteur passe de l'un à l'autre sans retraduire." + "Le schéma de l'outil est celui du jumeau C# (`CSP-06-Hybridization-CSharp.ipynb`) : les deux carnets décrivent la même structure, de sorte qu'un lecteur passe de l'un à l'autre sans retraduire." ] }, { @@ -2639,7 +2639,7 @@ "\n", "**Voir aussi** :\n", "- [App-09-EdgeDetection-Python.ipynb](../Part3-Cas-pratiques/App-09-EdgeDetection-Python.ipynb) - Application hybride\n", - "- [CSP-7-Soft.ipynb](CSP-7-Soft.ipynb) pour les métaheuristiques\n", + "- [CSP-07-Soft-Python.ipynb](CSP-07-Soft-Python.ipynb) pour les métaheuristiques\n", "\n" ] } @@ -2685,8 +2685,8 @@ "end_time": "2026-11-03T10:48:15.060953+00:00", "environment_variables": {}, "exception": null, - "input_path": "CSP-6-Hybridization.ipynb", - "output_path": "CSP-6-Hybridization.ipynb", + "input_path": "CSP-06-Hybridization-Python.ipynb", + "output_path": "CSP-06-Hybridization-Python.ipynb", "parameters": {}, "start_time": "2026-11-03T10:48:07.645661+00:00", "version": "2.7.0" diff --git a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb similarity index 82% rename from MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb rename to MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb index 46c82930958..f0839206e38 100644 --- a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb +++ b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb @@ -4,23 +4,16 @@ "cell_type": "markdown", "id": "1d4bc7d4", "metadata": { - "papermill": { - "duration": 0.005272, - "end_time": "2026-09-27T07:25:03.176873+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:03.171601+00:00", - "status": "completed" - }, "tags": [] }, "source": [ "# CSP-7 : Contraintes Souples avec Choco-solver\n", "\n", - "**Série .NET** : [<< CSP-6-Hybridization-CSharp](CSP-6-Hybridization-CSharp.ipynb) | [Index](../README.md) | [CSP-8-Temporal-CSharp >>](CSP-8-Temporal-CSharp.ipynb)\n", + "**Série .NET** : [<< CSP-06-Hybridization-CSharp](CSP-06-Hybridization-CSharp.ipynb) | [Index](../README.md) | [CSP-08-Temporal-CSharp >>](CSP-08-Temporal-CSharp.ipynb)\n", "\n", - "## Parité .NET ⇄ Python — binôme du CSP-7-Soft.ipynb\n", + "## Parité .NET ⇄ Python — binôme du CSP-07-Soft-Python.ipynb\n", "\n", - "Ce notebook est le **binôme .NET** du [CSP-7-Soft.ipynb](CSP-7-Soft.ipynb) (Python/OR-Tools CP-SAT). Il utilise **Choco-solver 4.10.17** via **IKVM 8.15.0** pour démontrer les capacités du solveur en matière de **CSP souples** (Weighted CSP, optimisation multi-objectif, coûts de violation).\n", + "Ce notebook est le **binôme .NET** du [CSP-07-Soft-Python.ipynb](CSP-07-Soft-Python.ipynb) (Python/OR-Tools CP-SAT). Il utilise **Choco-solver 4.10.17** via **IKVM 8.15.0** pour démontrer les capacités du solveur en matière de **CSP souples** (Weighted CSP, optimisation multi-objectif, coûts de violation).\n", "\n", "**Distinction pédagogique importante** :\n", "- Le notebook Python illustre le **framework sémiring** (mathématique abstraite des préférences, section 2)\n", @@ -43,34 +36,21 @@ "dotnet_interactive": { "language": "csharp" }, - "execution": { - "iopub.execute_input": "2026-09-27T07:25:03.202163Z", - "iopub.status.busy": "2026-09-27T07:25:03.193367Z", - "iopub.status.idle": "2026-09-27T07:25:05.404056Z", - "shell.execute_reply": "2026-09-27T07:25:05.397759Z" - }, - "papermill": { - "duration": 2.222703, - "end_time": "2026-09-27T07:25:05.404247+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:03.181544+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "DLL Choco trouvée : org.chocosolver.solver.dll\n" + "DLL Choco trouvée : org.chocosolver.solver.dll\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Existe : True\n" + "Existe : True\r\n" ] } ], @@ -82,7 +62,7 @@ "string FindCspDir7() {\n", " var dir = new DirectoryInfo(Directory.GetCurrentDirectory());\n", " while (dir != null) {\n", - " if (File.Exists(Path.Combine(dir.FullName, \"CSP-1-Fundamentals.ipynb\")))\n", + " if (File.Exists(Path.Combine(dir.FullName, \"CSP-01-Fundamentals-Python.ipynb\")))\n", " return dir.FullName;\n", " dir = dir.Parent;\n", " }\n", @@ -111,36 +91,23 @@ "dotnet_interactive": { "language": "csharp" }, - "execution": { - "iopub.execute_input": "2026-09-27T07:25:05.417491Z", - "iopub.status.busy": "2026-09-27T07:25:05.417127Z", - "iopub.status.idle": "2026-09-27T07:25:05.996918Z", - "shell.execute_reply": "2026-09-27T07:25:05.996471Z" - }, - "papermill": { - "duration": 0.587006, - "end_time": "2026-09-27T07:25:05.997069+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:05.410063+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { + "output_type": "display_data", "data": { "text/html": [ - "
Installed Packages
  • IKVM, 8.15.0
  • IKVM.Image, 8.15.0
" + "
Installing Packages
  • IKVM
  • IKVM.Image
" ] }, - "metadata": {}, - "output_type": "display_data" + "metadata": {} }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "IKVM 8.15.0 pret (home=ikvm-home-8.15.0-linux-x64, tzdb=True) - Choco-solver charge\n" + "IKVM 8.15.0 pret (home=ikvm-home-8.15.0-win-x64, tzdb=True) - Choco-solver charge\r\n" ] } ], @@ -208,27 +175,14 @@ "dotnet_interactive": { "language": "csharp" }, - "execution": { - "iopub.execute_input": "2026-09-27T07:25:06.018080Z", - "iopub.status.busy": "2026-09-27T07:25:06.017583Z", - "iopub.status.idle": "2026-09-27T07:25:06.086862Z", - "shell.execute_reply": "2026-09-27T07:25:06.086512Z" - }, - "papermill": { - "duration": 0.081586, - "end_time": "2026-09-27T07:25:06.087024+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:06.005438+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Choco-solver 4.10.17 chargé — WeightedSum + CostRegular disponibles\n" + "Choco-solver 4.10.17 chargé — WeightedSum + CostRegular disponibles\r\n" ] } ], @@ -250,13 +204,6 @@ "cell_type": "markdown", "id": "d67a3cc6", "metadata": { - "papermill": { - "duration": 0.006034, - "end_time": "2026-09-27T07:25:06.099123+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:06.093089+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -287,62 +234,49 @@ "dotnet_interactive": { "language": "csharp" }, - "execution": { - "iopub.execute_input": "2026-09-27T07:25:06.113136Z", - "iopub.status.busy": "2026-09-27T07:25:06.112826Z", - "iopub.status.idle": "2026-09-27T07:25:06.818956Z", - "shell.execute_reply": "2026-09-27T07:25:06.818744Z" - }, - "papermill": { - "duration": 0.714285, - "end_time": "2026-09-27T07:25:06.819074+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:06.104789+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Réunion optimale : créneau = 9h (index 0)\n" + "Réunion optimale : créneau = 9h (index 0)\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Coût total = 1\n" + "Coût total = 1\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Alice : coût = 0\n" + " Alice : coût = 0\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Bob : coût = 1\n" + " Bob : coût = 1\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Charlie : coût = 0\n" + " Charlie : coût = 0\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Temps résolution : 154 ms\n" + "Temps résolution : 61 ms\r\n" ] } ], @@ -414,13 +348,6 @@ "cell_type": "markdown", "id": "de5a73dd", "metadata": { - "papermill": { - "duration": 0.005387, - "end_time": "2026-09-27T07:25:06.831204+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:06.825817+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -439,41 +366,28 @@ "dotnet_interactive": { "language": "csharp" }, - "execution": { - "iopub.execute_input": "2026-09-27T07:25:06.844909Z", - "iopub.status.busy": "2026-09-27T07:25:06.844627Z", - "iopub.status.idle": "2026-09-27T07:25:06.941163Z", - "shell.execute_reply": "2026-09-27T07:25:06.940939Z" - }, - "papermill": { - "duration": 0.104992, - "end_time": "2026-09-27T07:25:06.941305+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:06.836313+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Énumération des solutions (par coût croissant) :\n" + "Énumération des solutions (par coût croissant) :\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Créneau 9h (idx 0) → coût total = 1\n" + " Créneau 9h (idx 0) → coût total = 1\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Total créneaux distincts : 1, coût optimal = 1\n" + "Total créneaux distincts : 1, coût optimal = 1\r\n" ] } ], @@ -516,13 +430,6 @@ "cell_type": "markdown", "id": "ee6a1744", "metadata": { - "papermill": { - "duration": 0.005645, - "end_time": "2026-09-27T07:25:06.952941+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:06.947296+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -541,87 +448,74 @@ "dotnet_interactive": { "language": "csharp" }, - "execution": { - "iopub.execute_input": "2026-09-27T07:25:06.968796Z", - "iopub.status.busy": "2026-09-27T07:25:06.968401Z", - "iopub.status.idle": "2026-09-27T07:25:07.130052Z", - "shell.execute_reply": "2026-09-27T07:25:07.129793Z" - }, - "papermill": { - "duration": 0.169154, - "end_time": "2026-09-27T07:25:07.130165+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:06.961011+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Sac multi-objectif résolu en 14 ms :\n" + "Sac multi-objectif résolu en 9 ms :\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Coût pondéré = 0\n" + " Coût pondéré = 0\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Poids total = 0 / 12\n" + " Poids total = 0 / 12\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Coût total = 0\n" + " Coût total = 0\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Objets pris : " ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "\n" + "\r\n" ] } ], @@ -698,13 +592,6 @@ "cell_type": "markdown", "id": "d7865b08", "metadata": { - "papermill": { - "duration": 0.005548, - "end_time": "2026-09-27T07:25:07.141686+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:07.136138+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -717,13 +604,6 @@ "cell_type": "markdown", "id": "6ef41c42", "metadata": { - "papermill": { - "duration": 0.005474, - "end_time": "2026-09-27T07:25:07.152619+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:07.147145+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -744,41 +624,28 @@ "dotnet_interactive": { "language": "csharp" }, - "execution": { - "iopub.execute_input": "2026-09-27T07:25:07.166617Z", - "iopub.status.busy": "2026-09-27T07:25:07.166080Z", - "iopub.status.idle": "2026-09-27T07:25:07.271460Z", - "shell.execute_reply": "2026-09-27T07:25:07.271190Z" - }, - "papermill": { - "duration": 0.113683, - "end_time": "2026-09-27T07:25:07.271635+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:07.157952+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Séquence routage optimale : [0, 0, 0]\n" + "Séquence routage optimale : [0, 0, 0]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Coût total = 3\n" + "Coût total = 3\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Temps résolution : 5 ms\n" + "Temps résolution : 3 ms\r\n" ] } ], @@ -844,13 +711,6 @@ "cell_type": "markdown", "id": "a53c98e9", "metadata": { - "papermill": { - "duration": 0.00569, - "end_time": "2026-09-27T07:25:07.283720+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:07.278030+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -868,13 +728,6 @@ "cell_type": "markdown", "id": "9021bac5", "metadata": { - "papermill": { - "duration": 0.006522, - "end_time": "2026-09-27T07:25:07.295723+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:07.289201+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -895,48 +748,35 @@ "dotnet_interactive": { "language": "csharp" }, - "execution": { - "iopub.execute_input": "2026-09-27T07:25:07.317734Z", - "iopub.status.busy": "2026-09-27T07:25:07.317281Z", - "iopub.status.idle": "2026-09-27T07:25:07.447898Z", - "shell.execute_reply": "2026-09-27T07:25:07.447424Z" - }, - "papermill": { - "duration": 0.143238, - "end_time": "2026-09-27T07:25:07.448056+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:07.304818+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "SoftAllDifferent résolu en 2 ms :\n" + "SoftAllDifferent résolu en 2 ms :\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Solution : [4, 1, 0, 3, 2]\n" + " Solution : [4, 1, 0, 3, 2]\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Coût de violation = 0\n" + " Coût de violation = 0\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " (Optimum = 0 si toutes les valeurs sont distinctes)\n" + " (Optimum = 0 si toutes les valeurs sont distinctes)\r\n" ] } ], @@ -991,13 +831,6 @@ "cell_type": "markdown", "id": "dc498b73", "metadata": { - "papermill": { - "duration": 0.008711, - "end_time": "2026-09-27T07:25:07.465175+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:07.456464+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -1010,13 +843,6 @@ "cell_type": "markdown", "id": "fix-10382-fuzzy-intro", "metadata": { - "papermill": { - "duration": 0.006411, - "end_time": "2026-09-27T07:25:07.477970+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:07.471559+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -1064,62 +890,49 @@ "execution_count": 9, "id": "fix-10382-fuzzy-code", "metadata": { - "execution": { - "iopub.execute_input": "2026-09-27T07:25:07.495773Z", - "iopub.status.busy": "2026-09-27T07:25:07.495276Z", - "iopub.status.idle": "2026-09-27T07:25:07.611473Z", - "shell.execute_reply": "2026-09-27T07:25:07.611056Z" - }, - "papermill": { - "duration": 0.127455, - "end_time": "2026-09-27T07:25:07.611706+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:07.484251+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "--- Fuzzy CSP : recherche de l'optimum max-min sur l'espace 3 destinations x 3 mois ---\n" + "--- Fuzzy CSP : recherche de l'optimum max-min sur l'espace 3 destinations x 3 mois ---\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "dest mois satM satD satB min (degres sur 1000)\n" + "dest mois satM satD satB min (degres sur 1000)\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Rome Juillet 1000 1000 800 800\n" + "Rome Juillet 1000 1000 800 800\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "\n" + "\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "--- Meilleur max-min : Rome en Juillet (sat_min=800/1000) ---\n" + "--- Meilleur max-min : Rome en Juillet (sat_min=800/1000) ---\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "--- Encodage entier : 1000 = degré 1.0 (sat parfaite) ---\n" + "--- Encodage entier : 1000 = degré 1.0 (sat parfaite) ---\r\n" ] } ], @@ -1209,13 +1022,6 @@ "cell_type": "markdown", "id": "semiring-md-1", "metadata": { - "papermill": { - "duration": 0.010326, - "end_time": "2026-09-27T07:25:07.633483+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:07.623157+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -1244,48 +1050,35 @@ "execution_count": 10, "id": "semiring-code-a", "metadata": { - "execution": { - "iopub.execute_input": "2026-09-27T07:25:07.648131Z", - "iopub.status.busy": "2026-09-27T07:25:07.647843Z", - "iopub.status.idle": "2026-09-27T07:25:07.883882Z", - "shell.execute_reply": "2026-09-27T07:25:07.883696Z" - }, - "papermill": { - "duration": 0.244147, - "end_time": "2026-09-27T07:25:07.883990+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:07.639843+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Semi-anneaux definis : Boolean, Fuzzy, Weighted\n" + "Semi-anneaux definis : Boolean, Fuzzy, Weighted\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Fuzzy : Project(1.0, 0.7) = 0.7 (Top neutre), Combine(0.0, 0.7) = 0.7 (Bottom neutre)\n" + "Fuzzy : Project(1.0, 0.7) = 0,7 (Top neutre), Combine(0.0, 0.7) = 0,7 (Bottom neutre)\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Weighted : Project(0.0, 5.0) = 5 (Top neutre), Combine(+inf, 5.0) = 5 (Bottom neutre)\n" + "Weighted : Project(0.0, 5.0) = 5 (Top neutre), Combine(+inf, 5.0) = 5 (Bottom neutre)\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Boolean : Project(true, false) = False, Combine(false, false) = False\n" + "Boolean : Project(true, false) = False, Combine(false, false) = False\r\n" ] } ], @@ -1347,13 +1140,6 @@ "cell_type": "markdown", "id": "semiring-md-2", "metadata": { - "papermill": { - "duration": 0.005999, - "end_time": "2026-09-27T07:25:07.897158+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:07.891159+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -1369,97 +1155,84 @@ "execution_count": 11, "id": "semiring-code-b", "metadata": { - "execution": { - "iopub.execute_input": "2026-09-27T07:25:07.912614Z", - "iopub.status.busy": "2026-09-27T07:25:07.912300Z", - "iopub.status.idle": "2026-09-27T07:25:08.233821Z", - "shell.execute_reply": "2026-09-27T07:25:08.233615Z" - }, - "papermill": { - "duration": 0.330874, - "end_time": "2026-09-27T07:25:08.233933+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:07.903059+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "--- Fuzzy via semiring : enumeration des 9 combinaisons (degre = min des 3) ---\n" + "--- Fuzzy via semiring : enumeration des 9 combinaisons (degre = min des 3) ---\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Paris Juin degre = 0.4\n" + "Paris Juin degre = 0,4\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Paris Juillet degre = 0.6\n" + "Paris Juillet degre = 0,6\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Paris Aout degre = 0.6\n" + "Paris Aout degre = 0,6\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Londres Juin degre = 0.2\n" + "Londres Juin degre = 0,2\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Londres Juillet degre = 0.2\n" + "Londres Juillet degre = 0,2\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Londres Aout degre = 0.2\n" + "Londres Aout degre = 0,2\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Rome Juin degre = 0.4\n" + "Rome Juin degre = 0,4\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Rome Juillet degre = 0.8\n" + "Rome Juillet degre = 0,8\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Rome Aout degre = 0.7\n" + "Rome Aout degre = 0,7\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Optimum semiring (brute force) : Rome en Juillet -> degre 0.8\n" + "Optimum semiring (brute force) : Rome en Juillet -> degre 0,8\r\n" ] } ], @@ -1569,13 +1342,6 @@ "cell_type": "markdown", "id": "semiring-md-3", "metadata": { - "papermill": { - "duration": 0.011226, - "end_time": "2026-09-27T07:25:08.252474+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:08.241248+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -1589,41 +1355,28 @@ "execution_count": 12, "id": "semiring-code-c", "metadata": { - "execution": { - "iopub.execute_input": "2026-09-27T07:25:08.277805Z", - "iopub.status.busy": "2026-09-27T07:25:08.277522Z", - "iopub.status.idle": "2026-09-27T07:25:08.372823Z", - "shell.execute_reply": "2026-09-27T07:25:08.372487Z" - }, - "papermill": { - "duration": 0.109116, - "end_time": "2026-09-27T07:25:08.372976+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:08.263860+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Framework semiring (brute force) : Rome en Juillet -> 0.8\n" + "Framework semiring (brute force) : Rome en Juillet -> 0,8\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Moteur Choco (propagation max-min) : Rome en Juillet -> 0.8\n" + "Moteur Choco (propagation max-min) : Rome en Juillet -> 0,8\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Accord exact framework vs moteur : True\n" + "Accord exact framework vs moteur : True\r\n" ] } ], @@ -1666,13 +1419,6 @@ "cell_type": "markdown", "id": "semiring-md-4", "metadata": { - "papermill": { - "duration": 0.009896, - "end_time": "2026-09-27T07:25:08.394800+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:08.384904+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -1683,13 +1429,6 @@ "cell_type": "markdown", "id": "f6efb288", "metadata": { - "papermill": { - "duration": 0.010274, - "end_time": "2026-09-27T07:25:08.415853+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:08.405579+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -1709,181 +1448,168 @@ "execution_count": 13, "id": "60296aef", "metadata": { - "execution": { - "iopub.execute_input": "2026-09-27T07:25:08.438790Z", - "iopub.status.busy": "2026-09-27T07:25:08.438240Z", - "iopub.status.idle": "2026-09-27T07:25:08.728897Z", - "shell.execute_reply": "2026-09-27T07:25:08.728507Z" - }, - "papermill": { - "duration": 0.301616, - "end_time": "2026-09-27T07:25:08.729060+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:08.427444+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Configuration PC optimale (Choco, 12 ms)\n" + "Configuration PC optimale (Choco, 8 ms)\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "\n" + "\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " CPU : Intel Core i5-12400 200 EUR score=70 Intel/Nvidia\n" + " CPU : Intel Core i5-12400 200 EUR score=70 Intel/Nvidia\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Carte mere : MSI PRO B660M 130 EUR\n" + " Carte mere : MSI PRO B660M 130 EUR\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " GPU : RTX 3060 320 EUR score=75 Intel/Nvidia\n" + " GPU : RTX 3060 320 EUR score=75 Intel/Nvidia\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Alimentation: Corsair CV 550W 75 EUR 550W garantie 3 ans\n" + " Alimentation: Corsair CV 550W 75 EUR 550W garantie 3 ans\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Boitier : NZXT H510 90 EUR noir\n" + " Boitier : NZXT H510 90 EUR noir\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "\n" + "\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "=== Bilan ===\n" + "=== Bilan ===\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Prix total : 815 EUR (budget 820) => OK\n" + " Prix total : 815 EUR (budget 820) => OK\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Score total : 145 (min 145) => OK\n" + " Score total : 145 (min 145) => OK\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " TDP total : 235W + 80W = 315W (alim 550W)\n" + " TDP total : 235W + 80W = 315W (alim 550W)\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "\n" + "\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Contraintes souples\n" + "Contraintes souples\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " [STRONG] Budget : satisfaite\n" + " [STRONG] Budget : satisfaite\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " [STRONG] Perf min : satisfaite\n" + " [STRONG] Perf min : satisfaite\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " [WEAK] Marque CPU : Intel/Nvidia (non prefere -- compromis budget/perf)\n" + " [WEAK] Marque CPU : Intel/Nvidia (non prefere -- compromis budget/perf)\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " [WEAK] Marque GPU : Intel/Nvidia (non prefere -- compromis budget/perf)\n" + " [WEAK] Marque GPU : Intel/Nvidia (non prefere -- compromis budget/perf)\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " [WEAK] Couleur : noir (prefere)\n" + " [WEAK] Couleur : noir (prefere)\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " [WEAK] Garantie : 3 ans (courte)\n" + " [WEAK] Garantie : 3 ans (courte)\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "\n" + "\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Score objectif : 5 x 0 (strong) + 3 (weak) = 3\n" + " Score objectif : 5 x 0 (strong) + 3 (weak) = 3\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Accord cross-moteurs : le jumeau Python (CP-SAT) trouve le meme objectif = 3 sur le meme catalogue.\n" + " Accord cross-moteurs : le jumeau Python (CP-SAT) trouve le meme objectif = 3 sur le meme catalogue.\r\n" ] } ], @@ -2038,13 +1764,6 @@ "cell_type": "markdown", "id": "f6510b84", "metadata": { - "papermill": { - "duration": 0.013821, - "end_time": "2026-09-27T07:25:08.757383+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:08.743562+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -2060,13 +1779,6 @@ "cell_type": "markdown", "id": "0632e896", "metadata": { - "papermill": { - "duration": 0.013267, - "end_time": "2026-09-27T07:25:08.784066+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:08.770799+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -2090,55 +1802,42 @@ "execution_count": 14, "id": "597f231a", "metadata": { - "execution": { - "iopub.execute_input": "2026-09-27T07:25:08.825144Z", - "iopub.status.busy": "2026-09-27T07:25:08.824833Z", - "iopub.status.idle": "2026-09-27T07:25:08.941749Z", - "shell.execute_reply": "2026-09-27T07:25:08.941586Z" - }, - "papermill": { - "duration": 0.150124, - "end_time": "2026-09-27T07:25:08.941842+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:08.791718+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Exercice 4 a completer : adaptez la Configuration PC (section 6) au budget 1200 EUR.\n" + "Exercice 4 a completer : adaptez la Configuration PC (section 6) au budget 1200 EUR.\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Etape 1 : definir le catalogue de composants (RAM et SSD deviennent des variables).\n" + "Etape 1 : definir le catalogue de composants (RAM et SSD deviennent des variables).\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Etape 2 : poster MANDATORY (compatibilite, alimentation), reifier STRONG puis WEAK.\n" + "Etape 2 : poster MANDATORY (compatibilite, alimentation), reifier STRONG puis WEAK.\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Etape 3 : objectif = M*strong + weak, M > |WEAK|, puis while (solverExo.solve()).\n" + "Etape 3 : objectif = M*strong + weak, M > |WEAK|, puis while (solverExo.solve()).\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Verifier en fin : la solution respecte le budget de 1200 EUR.\n" + "Verifier en fin : la solution respecte le budget de 1200 EUR.\r\n" ] } ], @@ -2161,13 +1860,6 @@ "cell_type": "markdown", "id": "71873b59", "metadata": { - "papermill": { - "duration": 0.007679, - "end_time": "2026-09-27T07:25:08.957543+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:08.949864+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -2195,69 +1887,56 @@ "dotnet_interactive": { "language": "csharp" }, - "execution": { - "iopub.execute_input": "2026-09-27T07:25:08.975409Z", - "iopub.status.busy": "2026-09-27T07:25:08.975044Z", - "iopub.status.idle": "2026-09-27T07:25:09.011644Z", - "shell.execute_reply": "2026-09-27T07:25:09.011303Z" - }, - "papermill": { - "duration": 0.046422, - "end_time": "2026-09-27T07:25:09.011750+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:08.965328+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Exercice 1 - TSP pondéré : en attente de votre implementation\n" + "Exercice 1 - TSP pondéré : en attente de votre implementation\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Schema :\n" + "Schema :\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " int n = 5;\n" + " int n = 5;\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " int[,] dist = { {0,3,1,5,8}, ... };\n" + " int[,] dist = { {0,3,1,5,8}, ... };\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " double[] prixParKm = { 1.5, 1.2, 1.8, 1.3, 1.6 }; // par arête\n" + " double[] prixParKm = { 1.5, 1.2, 1.8, 1.3, 1.6 }; // par arête\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " // Objectif : sum( dist[i,succ[i]] * prixParKm[i,succ[i]] ) minimum\n" + " // Objectif : sum( dist[i,succ[i]] * prixParKm[i,succ[i]] ) minimum\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " // Utiliser ScalProd avec termes par arête\n" + " // Utiliser ScalProd avec termes par arête\r\n" ] } ], @@ -2276,13 +1955,6 @@ "cell_type": "markdown", "id": "94dedd70", "metadata": { - "papermill": { - "duration": 0.008229, - "end_time": "2026-09-27T07:25:09.027978+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:09.019749+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -2296,7 +1968,7 @@ "3. Coût : `sum( pénalité_taille(cours_i, salle_x_i) )`\n", "4. Minimiser le coût total\n", "\n", - "**Solution attendue** : coût ≈ 4 (cf. exercice 3 CSP-7-Soft.ipynb pour référence)." + "**Solution attendue** : coût ≈ 4 (cf. exercice 3 CSP-07-Soft-Python.ipynb pour référence)." ] }, { @@ -2307,41 +1979,28 @@ "dotnet_interactive": { "language": "csharp" }, - "execution": { - "iopub.execute_input": "2026-09-27T07:25:09.045735Z", - "iopub.status.busy": "2026-09-27T07:25:09.045484Z", - "iopub.status.idle": "2026-09-27T07:25:09.090902Z", - "shell.execute_reply": "2026-09-27T07:25:09.090715Z" - }, - "papermill": { - "duration": 0.05551, - "end_time": "2026-09-27T07:25:09.091106+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:09.035596+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Exercice 2 - 3 cours / 4 salles (capacités 30, 50, 20, 35)\n" + "Exercice 2 - 3 cours / 4 salles (capacités 30, 50, 20, 35)\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "En attente de votre implementation\n" + "En attente de votre implementation\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Indices : element(coût_taille, table_pénalités, x_i) + sum + minimize\n" + "Indices : element(coût_taille, table_pénalités, x_i) + sum + minimize\r\n" ] } ], @@ -2360,13 +2019,6 @@ "cell_type": "markdown", "id": "bbaedd17", "metadata": { - "papermill": { - "duration": 0.007708, - "end_time": "2026-09-27T07:25:09.107403+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:09.099695+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -2397,48 +2049,35 @@ "dotnet_interactive": { "language": "csharp" }, - "execution": { - "iopub.execute_input": "2026-09-27T07:25:09.124690Z", - "iopub.status.busy": "2026-09-27T07:25:09.124425Z", - "iopub.status.idle": "2026-09-27T07:25:09.175182Z", - "shell.execute_reply": "2026-09-27T07:25:09.174996Z" - }, - "papermill": { - "duration": 0.060253, - "end_time": "2026-09-27T07:25:09.175337+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:09.115084+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Exercice 3 - 4 cours sur 5 jours\n" + "Exercice 3 - 4 cours sur 5 jours\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Préférences : A(idéal), A(idéal), B(OK), B(OK), C(à éviter) (coûts 0, 0, 1, 1, 5)\n" + "Préférences : A(idéal), A(idéal), B(OK), B(OK), C(à éviter) (coûts 0, 0, 1, 1, 5)\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "En attente de votre implementation\n" + "En attente de votre implementation\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Contraintes : allDifferent(days) + max 2 type C + minimise sum(coût_jour_i)\n" + "Contraintes : allDifferent(days) + max 2 type C + minimise sum(coût_jour_i)\r\n" ] } ], @@ -2459,13 +2098,6 @@ "cell_type": "markdown", "id": "64337001", "metadata": { - "papermill": { - "duration": 0.007854, - "end_time": "2026-09-27T07:25:09.191691+00:00", - "exception": false, - "start_time": "2026-09-27T07:25:09.183837+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -2473,7 +2105,7 @@ "\n", "## Conclusion et parité .NET ⇄ Python\n", "\n", - "Ce notebook démontre les **primitives natives Choco 4.10.17** pour les CSP souples, en parité conceptuelle avec le [CSP-7-Soft.ipynb](CSP-7-Soft.ipynb) Python (OR-Tools CP-SAT) :\n", + "Ce notebook démontre les **primitives natives Choco 4.10.17** pour les CSP souples, en parité conceptuelle avec le [CSP-07-Soft-Python.ipynb](CSP-07-Soft-Python.ipynb) Python (OR-Tools CP-SAT) :\n", "\n", "| Capacité CSP souple | Choco 4.10.17 (.NET) | OR-Tools CP-SAT (Python) | Parité |\n", "|---------------------|----------------------|--------------------------|--------|\n", @@ -2494,10 +2126,10 @@ "- **C148** : .NET Interactive n'accepte PAS les blocs `{...}` au top-level — variables top-level avec noms distincts\n", "\n", "**Voir aussi** :\n", - "- [CSP-7-Soft.ipynb](CSP-7-Soft.ipynb) — version Python (OR-Tools)\n", - "- [CSP-3-Advanced-CSharp.ipynb](CSP-3-Advanced-CSharp.ipynb) — tranche 3 marathon (contraintes globales)\n", - "- [CSP-4-Scheduling-CSharp.ipynb](CSP-4-Scheduling-CSharp.ipynb) — tranche 1 marathon (scheduling)\n", - "- [CSP-5-Optimization-CSharp.ipynb](CSP-5-Optimization-CSharp.ipynb) — tranche 2 marathon (optimisation)\n", + "- [CSP-07-Soft-Python.ipynb](CSP-07-Soft-Python.ipynb) — version Python (OR-Tools)\n", + "- [CSP-03-Advanced-CSharp.ipynb](CSP-03-Advanced-CSharp.ipynb) — tranche 3 marathon (contraintes globales)\n", + "- [CSP-04-Scheduling-CSharp.ipynb](CSP-04-Scheduling-CSharp.ipynb) — tranche 1 marathon (scheduling)\n", + "- [CSP-05-Optimization-CSharp.ipynb](CSP-05-Optimization-CSharp.ipynb) — tranche 2 marathon (optimisation)\n", "- [Issue #4956](https://github.com/jsboige/CoursIA/issues/4956) — marathon parité .NET ⇄ Python\n", "\n", "Part of #4956 (marathon parité .NET ⇄ Python série CSP).\n", @@ -2545,9 +2177,9 @@ "source": [ "## Pour aller plus loin\n", "\n", - "- **Carnet suivant** : [CSP-8-Temporal-CSharp.ipynb](CSP-8-Temporal-CSharp.ipynb) — l'algèbre d'Allen et les contraintes temporelles côté Choco.\n", - "- **Carnets voisins** : [CSP-5-Optimization-CSharp.ipynb](CSP-5-Optimization-CSharp.ipynb) — l'optimisation combinatoire sous Choco ; [CSP-3-Advanced-CSharp.ipynb](CSP-3-Advanced-CSharp.ipynb) — les contraintes globales, socle des primitives souples utilisées ici.\n", - "- **Jumeau Python** : [CSP-7-Soft.ipynb](CSP-7-Soft.ipynb) — la version OR-Tools du carnet, qui porte l'équité, le voyage et le cadre sémiring complet.\n", + "- **Carnet suivant** : [CSP-08-Temporal-CSharp.ipynb](CSP-08-Temporal-CSharp.ipynb) — l'algèbre d'Allen et les contraintes temporelles côté Choco.\n", + "- **Carnets voisins** : [CSP-05-Optimization-CSharp.ipynb](CSP-05-Optimization-CSharp.ipynb) — l'optimisation combinatoire sous Choco ; [CSP-03-Advanced-CSharp.ipynb](CSP-03-Advanced-CSharp.ipynb) — les contraintes globales, socle des primitives souples utilisées ici.\n", + "- **Jumeau Python** : [CSP-07-Soft-Python.ipynb](CSP-07-Soft-Python.ipynb) — la version OR-Tools du carnet, qui porte l'équité, le voyage et le cadre sémiring complet.\n", "- **Lectures** : *Handbook of Constraint Programming*, ch. 9 *Soft Constraints* ; la section « Références » en bas de carnet détaille les deux autres notices (l'article fondateur du formalisme algébrique et le manuel du solveur CP-SAT)." ] }, @@ -2595,20 +2227,8 @@ "name": "C#", "pygments_lexer": "csharp", "version": "13.0" - }, - "papermill": { - "default_parameters": {}, - "duration": 8.834466, - "end_time": "2026-09-27T07:25:09.316530+00:00", - "environment_variables": {}, - "exception": null, - "input_path": "CSP-7-Soft-CSharp.ipynb", - "output_path": "CSP-7-Soft-CSharp.ipynb", - "parameters": {}, - "start_time": "2026-09-27T07:25:00.482064+00:00", - "version": "2.7.0" } }, "nbformat": 4, "nbformat_minor": 5 -} +} \ No newline at end of file diff --git a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb similarity index 99% rename from MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb rename to MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb index f44b51e253c..6f631625931 100644 --- a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb +++ b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb @@ -16,7 +16,7 @@ "source": [ "# CSP-7 : Contraintes Souples - Soft CSP\n", "\n", - "**Navigation** : [<< CSP-6-Hybridization](CSP-6-Hybridization.ipynb) | [Index CSP](README.md) | [CSP-8-Temporal >>](CSP-8-Temporal.ipynb)\n", + "**Navigation** : [<< CSP-06-Hybridization-Python](CSP-06-Hybridization-Python.ipynb) | [Index CSP](README.md) | [CSP-08-Temporal-Python >>](CSP-08-Temporal-Python.ipynb)\n", "\n", "> **Solveur** : CP-SAT (Google OR-Tools) pour les mises en œuvre résolues par programmation par contraintes. Son fonctionnement interne (presolve, LNS, hints) est détaillé dans [*The CP-SAT Primer*](https://d-krupke.github.io/cpsat-primer/) (Krupke & Schmitt, 2023, CC-BY, lecture en ligne gratuite).\n", "\n", @@ -2753,7 +2753,7 @@ "\n", "Les contraintes souples transforment un problème de **satisfiabilite** (oui/non) en un problème d'**optimisation** (meilleur compromis). Le framework semiring montre que la théorie est elegante, mais en pratique, OR-Tools CP-SAT avec ponderation des soft constraints est l'approche industrielle.\n", "\n", - "**Suite** : [CSP-8 - Contraintes temporelles](CSP-8-Temporal.ipynb) | [Retour au sommaire CSP](README.md)" + "**Suite** : [CSP-8 - Contraintes temporelles](CSP-08-Temporal-Python.ipynb) | [Retour au sommaire CSP](README.md)" ] }, { @@ -2783,9 +2783,9 @@ "source": [ "## Pour aller plus loin\n", "\n", - "- **Carnet suivant** : [CSP-8-Temporal.ipynb](CSP-8-Temporal.ipynb) — l'algèbre d'Allen et les contraintes temporelles, autre façon de relâcher le cadre classique.\n", - "- **Carnets voisins** : [CSP-6-Hybridization.ipynb](CSP-6-Hybridization.ipynb) — la Lazy Clause Generation, qui explique le nom de CP-SAT ; [CSP-5-Optimization.ipynb](CSP-5-Optimization.ipynb) — l'optimisation combinatoire.\n", - "- **Jumeau .NET** : [CSP-7-Soft-CSharp.ipynb](CSP-7-Soft-CSharp.ipynb) — les mêmes notions de semi-anneau côté Choco-solver, via IKVM.\n", + "- **Carnet suivant** : [CSP-08-Temporal-Python.ipynb](CSP-08-Temporal-Python.ipynb) — l'algèbre d'Allen et les contraintes temporelles, autre façon de relâcher le cadre classique.\n", + "- **Carnets voisins** : [CSP-06-Hybridization-Python.ipynb](CSP-06-Hybridization-Python.ipynb) — la Lazy Clause Generation, qui explique le nom de CP-SAT ; [CSP-05-Optimization-Python.ipynb](CSP-05-Optimization-Python.ipynb) — l'optimisation combinatoire.\n", + "- **Jumeau .NET** : [CSP-07-Soft-CSharp.ipynb](CSP-07-Soft-CSharp.ipynb) — les mêmes notions de semi-anneau côté Choco-solver, via IKVM.\n", "- **Lectures** : Bistarelli, Montanari & Rossi (1997), le cadre algébrique des semi-anneaux ; *Handbook of Constraint Programming*, ch. 9 *Soft Constraints* ; la [documentation OR-Tools CP-SAT](https://developers.google.com/optimization/cp). Les notices complètes figurent dans la section « References » de ce carnet." ] }, @@ -2814,9 +2814,9 @@ "\n", "### Navigation\n", "\n", - "- [<< CSP-6-Hybridization](CSP-6-Hybridization.ipynb)\n", + "- [<< CSP-06-Hybridization-Python](CSP-06-Hybridization-Python.ipynb)\n", "- [Index CSP](README.md)\n", - "- [CSP-8-Temporal >>](CSP-8-Temporal.ipynb)\n" + "- [CSP-08-Temporal-Python >>](CSP-08-Temporal-Python.ipynb)\n" ] } ], @@ -2861,7 +2861,7 @@ "end_time": "2026-10-31T18:54:53.254462+00:00", "environment_variables": {}, "exception": null, - "input_path": "CSP-7-Soft.ipynb", + "input_path": "CSP-07-Soft-Python.ipynb", "output_path": "csp7_passA.ipynb", "parameters": {}, "start_time": "2026-10-31T18:54:10.364679+00:00", diff --git a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb similarity index 63% rename from MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb rename to MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb index 8e516ff4592..620898e28d1 100644 --- a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb +++ b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb @@ -3,7 +3,16 @@ { "cell_type": "raw", "id": "quarto-vignette", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.004637, + "end_time": "2026-11-24T09:42:46.793017+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:46.788380+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "---\n", "image: ../../assets/vignettes/CSP-8-Temporal-CSharp.png\n", @@ -14,11 +23,20 @@ "attachments": {}, "cell_type": "markdown", "id": "4cb66f5a", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.004744, + "end_time": "2026-11-24T09:42:46.802594+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:46.797850+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "# CSP-8 : Temporels - Raisonnement sur le Temps\n", "\n", - "**Série .NET** : [<< CSP-7-Soft-CSharp](CSP-7-Soft-CSharp.ipynb) | [Index](../README.md) | [CSP-9-Distributed-CSharp >>](CSP-9-Distributed-CSharp.ipynb)\n", + "**Série .NET** : [<< CSP-07-Soft-CSharp](CSP-07-Soft-CSharp.ipynb) | [Index](../README.md) | [CSP-09-Distributed-CSharp >>](CSP-09-Distributed-CSharp.ipynb)\n", "\n", "## Objectif\n", "\n", @@ -65,7 +83,7 @@ " `scripts/dotnet/install-dotnet-interactive.sh`)\n", "- Bibliotheques NuGet : `ScottPlot 5.0.55` (visualisations inline PNG), `Google.OrTools 9.x`\n", " (solveur CP-SAT). Le kernel telecharge ces dependances a la volee via `#r \"nuget: ...\"`.\n", - "- Connaissance des bases CSP (cf. `CSP-1-Consistency-CSharp` et `CSP-2-Consistency-CSharp`) ;\n", + "- Connaissance des bases CSP (cf. `CSP-1-Consistency-CSharp` et `CSP-02-Consistency-CSharp`) ;\n", " Allen et STP sont des **CSP** sur des variables temporelles." ] }, @@ -73,36 +91,61 @@ "cell_type": "code", "execution_count": 1, "id": "4e1ee29b", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:42:46.821431Z", + "iopub.status.busy": "2026-11-24T09:42:46.815488Z", + "iopub.status.idle": "2026-11-24T09:42:48.416728Z", + "shell.execute_reply": "2026-11-24T09:42:48.412592Z" + }, + "papermill": { + "duration": 1.609753, + "end_time": "2026-11-24T09:42:48.416943+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:46.807190+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "display_data", "data": { - "text/html": "
Installing Packages
  • Google.OrTools
  • ScottPlot
" + "text/html": [ + "
Installed Packages
  • Google.OrTools, 9.15.6755
  • ScottPlot, 5.0.55
" + ] }, - "metadata": {} + "metadata": {}, + "output_type": "display_data" }, { - "output_type": "display_data", "data": { - "text/plain": "" + "text/plain": [ + + ] }, - "metadata": {} + "metadata": {}, + "output_type": "display_data" }, { - "output_type": "stream", "name": "stdout", - "text": "Dependances pretes :\r\n" + "output_type": "stream", + "text": [ + "Dependances pretes :\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " - ScottPlot 5.0.55 (visualisation inline PNG)\r\n" + "output_type": "stream", + "text": [ + " - ScottPlot 5.0.55 (visualisation inline PNG)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " - Google.OrTools 9.15.6755 (CP-SAT natif .NET)\r\n" + "output_type": "stream", + "text": [ + " - Google.OrTools 9.15.6755 (CP-SAT natif .NET)\r\n" + ] } ], "source": [ @@ -114,7 +157,7 @@ "using Microsoft.DotNet.Interactive.Formatting;\n", "\n", "// OR-Tools CP-SAT (SOTA solveur CSP natif .NET)\n", - "#r \"nuget: Google.OrTools\"\n", + "#r \"nuget: Google.OrTools, 9.15.6755\"\n", "\n", "Console.WriteLine(\"Dependances pretes :\");\n", "Console.WriteLine(\" - ScottPlot 5.0.55 (visualisation inline PNG)\");\n", @@ -122,9 +165,18 @@ ] }, { - "id": "198481a2", "cell_type": "markdown", - "metadata": {}, + "id": "198481a2", + "metadata": { + "papermill": { + "duration": 0.004856, + "end_time": "2026-11-24T09:42:48.426804+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:48.421948+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "**Lecture de la cellule d'imports** (code[0]) :\n", "\n", @@ -161,7 +213,16 @@ "attachments": {}, "cell_type": "markdown", "id": "a6aa47d1", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.004844, + "end_time": "2026-11-24T09:42:48.436375+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:48.431531+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "***" ] @@ -170,7 +231,16 @@ "attachments": {}, "cell_type": "markdown", "id": "1c308c10", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.004992, + "end_time": "2026-11-24T09:42:48.446022+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:48.441030+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "## Section 1 : Les 13 relations d'Allen\n", "\n", @@ -218,22 +288,43 @@ "cell_type": "code", "execution_count": 2, "id": "5549ad64", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:42:48.457243Z", + "iopub.status.busy": "2026-11-24T09:42:48.457019Z", + "iopub.status.idle": "2026-11-24T09:42:48.801275Z", + "shell.execute_reply": "2026-11-24T09:42:48.801094Z" + }, + "papermill": { + "duration": 0.350563, + "end_time": "2026-11-24T09:42:48.801345+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:48.450782+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Enum Allen + table de composition chargees.\r\n" + "output_type": "stream", + "text": [ + "Enum Allen + table de composition chargees.\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " - 13 relations : 13\r\n" + "output_type": "stream", + "text": [ + " - 13 relations : 13\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " - Entrees table (manuelle, controle de l'Exemple 1) : 19\r\n" + "output_type": "stream", + "text": [ + " - Entrees table (manuelle, controle de l'Exemple 1) : 19\r\n" + ] } ], "source": [ @@ -319,9 +410,18 @@ ] }, { - "id": "239a0411", "cell_type": "markdown", - "metadata": {}, + "id": "239a0411", + "metadata": { + "papermill": { + "duration": 0.004707, + "end_time": "2026-11-24T09:42:48.811205+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:48.806498+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Lecture : la déclaration Allen et ses trois propriétés structurales\n", "\n", @@ -379,7 +479,16 @@ "attachments": {}, "cell_type": "markdown", "id": "ad397beb", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.005059, + "end_time": "2026-11-24T09:42:48.821011+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:48.815952+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "***" ] @@ -388,7 +497,16 @@ "attachments": {}, "cell_type": "markdown", "id": "20747c70", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.004845, + "end_time": "2026-11-24T09:42:48.830700+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:48.825855+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "## Section 2 : Simple Temporal Problem (STP) + Floyd-Warshall\n", "\n", @@ -441,12 +559,29 @@ "cell_type": "code", "execution_count": 3, "id": "708a34ac", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:42:48.841588Z", + "iopub.status.busy": "2026-11-24T09:42:48.841388Z", + "iopub.status.idle": "2026-11-24T09:42:49.176066Z", + "shell.execute_reply": "2026-11-24T09:42:49.175883Z" + }, + "papermill": { + "duration": 0.340658, + "end_time": "2026-11-24T09:42:49.176137+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:48.835479+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Classe SimpleTemporalProblem (Floyd-Warshall O(n^3)) prete.\r\n" + "output_type": "stream", + "text": [ + "Classe SimpleTemporalProblem (Floyd-Warshall O(n^3)) prete.\r\n" + ] } ], "source": [ @@ -527,9 +662,18 @@ ] }, { - "id": "72ba0ddb", "cell_type": "markdown", - "metadata": {}, + "id": "72ba0ddb", + "metadata": { + "papermill": { + "duration": 0.00495, + "end_time": "2026-11-24T09:42:49.186379+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:49.181429+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "**Lecture de la classe STP** (code[2]) :\n", "\n", @@ -565,7 +709,16 @@ "attachments": {}, "cell_type": "markdown", "id": "f5929a1c", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.006068, + "end_time": "2026-11-24T09:42:49.197597+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:49.191529+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Exemple : Planification de journee (5 événements)\n", "\n", @@ -621,52 +774,86 @@ "cell_type": "code", "execution_count": 4, "id": "e3693fca", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:42:49.209423Z", + "iopub.status.busy": "2026-11-24T09:42:49.208951Z", + "iopub.status.idle": "2026-11-24T09:42:49.307538Z", + "shell.execute_reply": "2026-11-24T09:42:49.307393Z" + }, + "papermill": { + "duration": 0.104739, + "end_time": "2026-11-24T09:42:49.307604+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:49.202865+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "=== STP : Planification de Journee ===\r\n" + "output_type": "stream", + "text": [ + "=== STP : Planification de Journee ===\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Consistant : True\r\n" + "output_type": "stream", + "text": [ + "Consistant : True\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Temps resolution Floyd-Warshall : 5,64 ms\r\n" + "output_type": "stream", + "text": [ + "Temps resolution Floyd-Warshall : 2,07 ms\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\nSolution (heures) :\r\n" + "output_type": "stream", + "text": [ + "\n", + "Solution (heures) :\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " T0 : 0,00h\r\n" + "output_type": "stream", + "text": [ + " T0 : 0,00h\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " T1 : 8,50h\r\n" + "output_type": "stream", + "text": [ + " T1 : 8,50h\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " T2 : 10,50h\r\n" + "output_type": "stream", + "text": [ + " T2 : 10,50h\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " T3 : 11,75h\r\n" + "output_type": "stream", + "text": [ + " T3 : 11,75h\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " T4 : 12,50h\r\n" + "output_type": "stream", + "text": [ + " T4 : 12,50h\r\n" + ] } ], "source": [ @@ -701,19 +888,40 @@ "cell_type": "code", "execution_count": 5, "id": "ac832c61", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:42:49.318988Z", + "iopub.status.busy": "2026-11-24T09:42:49.318798Z", + "iopub.status.idle": "2026-11-24T09:42:49.555582Z", + "shell.execute_reply": "2026-11-24T09:42:49.555704Z" + }, + "papermill": { + "duration": 0.242989, + "end_time": "2026-11-24T09:42:49.555772+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:49.312783+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "display_data", "data": { - "text/html": "" + "text/html": [ + "" + ] }, - "metadata": {} + "metadata": {}, + "output_type": "display_data" }, { - "output_type": "stream", "name": "stderr", - "text": "\r\nwarning CS1701: En supposant que la référence d'assembly 'Microsoft.AspNetCore.Html.Abstractions, Version=2.3.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' utilisée par 'Microsoft.DotNet.Interactive' correspond à l'identité 'Microsoft.AspNetCore.Html.Abstractions, Version=10.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' de 'Microsoft.AspNetCore.Html.Abstractions', il se peut que vous deviez fournir une stratégie runtime\r\n\r\n" + "output_type": "stream", + "text": [ + "\r\n", + "warning CS1701: En supposant que la référence d'assembly 'Microsoft.AspNetCore.Html.Abstractions, Version=2.3.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' utilisée par 'Microsoft.DotNet.Interactive' correspond à l'identité 'Microsoft.AspNetCore.Html.Abstractions, Version=10.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' de 'Microsoft.AspNetCore.Html.Abstractions', il se peut que vous deviez fournir une stratégie runtime\r\n", + "\r\n" + ] } ], "source": [ @@ -746,7 +954,16 @@ "attachments": {}, "cell_type": "markdown", "id": "f7b05018", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.005579, + "end_time": "2026-11-24T09:42:49.568026+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:49.562447+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Interpretation : STP Floyd-Warshall\n", "\n", @@ -794,7 +1011,16 @@ "attachments": {}, "cell_type": "markdown", "id": "947133bb", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.006074, + "end_time": "2026-11-24T09:42:49.579567+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:49.573493+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "***" ] @@ -803,7 +1029,16 @@ "attachments": {}, "cell_type": "markdown", "id": "ad2e91d3", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.005808, + "end_time": "2026-11-24T09:42:49.592481+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:49.586673+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "## Section 3 : Temporal CSP (TCSP) avec intervalles multiples\n", "\n", @@ -847,12 +1082,29 @@ "cell_type": "code", "execution_count": 6, "id": "5163d5e3", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:42:49.606426Z", + "iopub.status.busy": "2026-11-24T09:42:49.606080Z", + "iopub.status.idle": "2026-11-24T09:42:49.703174Z", + "shell.execute_reply": "2026-11-24T09:42:49.703019Z" + }, + "papermill": { + "duration": 0.104525, + "end_time": "2026-11-24T09:42:49.703255+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:49.598730+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Classe TCSP (enumeration + path consistency) prete.\r\n" + "output_type": "stream", + "text": [ + "Classe TCSP (enumeration + path consistency) prete.\r\n" + ] } ], "source": [ @@ -925,9 +1177,18 @@ ] }, { - "id": "64743026", "cell_type": "markdown", - "metadata": {}, + "id": "64743026", + "metadata": { + "papermill": { + "duration": 0.005723, + "end_time": "2026-11-24T09:42:49.714923+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:49.709200+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "**Lecture de la classe TCSP** (code[5]) :\n", "\n", @@ -967,7 +1228,16 @@ "attachments": {}, "cell_type": "markdown", "id": "d2cd33cf", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.005304, + "end_time": "2026-11-24T09:42:49.725596+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:49.720292+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Exemple : Planification de reunion avec creneaux preferes\n", "\n", @@ -1016,37 +1286,65 @@ "cell_type": "code", "execution_count": 7, "id": "e63d094f", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:42:49.737607Z", + "iopub.status.busy": "2026-11-24T09:42:49.737399Z", + "iopub.status.idle": "2026-11-24T09:42:49.807099Z", + "shell.execute_reply": "2026-11-24T09:42:49.806944Z" + }, + "papermill": { + "duration": 0.076092, + "end_time": "2026-11-24T09:42:49.807165+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:49.731073+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "=== TCSP : Planification de Reunion ===\r\n" + "output_type": "stream", + "text": [ + "=== TCSP : Planification de Reunion ===\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Solutions admissibles : 8\r\n" + "output_type": "stream", + "text": [ + "Solutions admissibles : 8\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Temps enumeration : 4,24 ms\r\n" + "output_type": "stream", + "text": [ + "Temps enumeration : 2,49 ms\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\nPremiere solution :\r\n" + "output_type": "stream", + "text": [ + "\n", + "Premiere solution :\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " T_debut : 9,0h\r\n" + "output_type": "stream", + "text": [ + " T_debut : 9,0h\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " T_fin : 10,0h\r\n" + "output_type": "stream", + "text": [ + " T_fin : 10,0h\r\n" + ] } ], "source": [ @@ -1088,19 +1386,40 @@ "cell_type": "code", "execution_count": 8, "id": "836b7256", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:42:49.820519Z", + "iopub.status.busy": "2026-11-24T09:42:49.820251Z", + "iopub.status.idle": "2026-11-24T09:42:49.919131Z", + "shell.execute_reply": "2026-11-24T09:42:49.919241Z" + }, + "papermill": { + "duration": 0.106273, + "end_time": "2026-11-24T09:42:49.919307+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:49.813034+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "display_data", "data": { - "text/html": "" + "text/html": [ + "" + ] }, - "metadata": {} + "metadata": {}, + "output_type": "display_data" }, { - "output_type": "stream", "name": "stderr", - "text": "\r\nwarning CS1701: En supposant que la référence d'assembly 'Microsoft.AspNetCore.Html.Abstractions, Version=2.3.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' utilisée par 'Microsoft.DotNet.Interactive' correspond à l'identité 'Microsoft.AspNetCore.Html.Abstractions, Version=10.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' de 'Microsoft.AspNetCore.Html.Abstractions', il se peut que vous deviez fournir une stratégie runtime\r\n\r\n" + "output_type": "stream", + "text": [ + "\r\n", + "warning CS1701: En supposant que la référence d'assembly 'Microsoft.AspNetCore.Html.Abstractions, Version=2.3.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' utilisée par 'Microsoft.DotNet.Interactive' correspond à l'identité 'Microsoft.AspNetCore.Html.Abstractions, Version=10.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' de 'Microsoft.AspNetCore.Html.Abstractions', il se peut que vous deviez fournir une stratégie runtime\r\n", + "\r\n" + ] } ], "source": [ @@ -1136,7 +1455,16 @@ "attachments": {}, "cell_type": "markdown", "id": "59d8cdea", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.006929, + "end_time": "2026-11-24T09:42:49.932228+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:49.925299+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Interpretation : TCSP et creneaux preferes\n", "\n", @@ -1177,7 +1505,16 @@ "attachments": {}, "cell_type": "markdown", "id": "ec1bd316", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.007438, + "end_time": "2026-11-24T09:42:49.946170+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:49.938732+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "***" ] @@ -1186,7 +1523,16 @@ "attachments": {}, "cell_type": "markdown", "id": "ae7b2bed", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.011237, + "end_time": "2026-11-24T09:42:49.964670+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:49.953433+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "***" ] @@ -1195,7 +1541,16 @@ "attachments": {}, "cell_type": "markdown", "id": "b6dc6740", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.008676, + "end_time": "2026-11-24T09:42:49.983350+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:49.974674+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "## Section 4 : Exemples guides et Exercices\n", "\n", @@ -1235,7 +1590,16 @@ "attachments": {}, "cell_type": "markdown", "id": "40ef105f", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.006915, + "end_time": "2026-11-24T09:42:49.998667+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:49.991752+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Exemple guide 1 : Generation de la table de composition d'Allen par enumeration\n", "\n", @@ -1273,127 +1637,192 @@ "cell_type": "code", "execution_count": 9, "id": "4f2639f0", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:42:50.014035Z", + "iopub.status.busy": "2026-11-24T09:42:50.013838Z", + "iopub.status.idle": "2026-11-24T09:42:50.181514Z", + "shell.execute_reply": "2026-11-24T09:42:50.181354Z" + }, + "papermill": { + "duration": 0.176266, + "end_time": "2026-11-24T09:42:50.181579+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:50.005313+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Table generee : 169 paires (13 x 13 = 169 attendues) ; grille stable 7 -> 8 : True\r\n" + "output_type": "stream", + "text": [ + "Table generee : 169 paires (13 x 13 = 169 attendues) ; grille stable 7 -> 8 : True\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Controle positif vs les 19 entrees manuelles de la Section 1 :\r\n" + "output_type": "stream", + "text": [ + "Controle positif vs les 19 entrees manuelles de la Section 1 :\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " DIVERGE Overlaps o Overlaps : manuel = {Before, Meets, Overlaps, During} / genere = {Before, Meets, Overlaps}\r\n" + "output_type": "stream", + "text": [ + " DIVERGE Overlaps o Overlaps : manuel = {Before, Meets, Overlaps, During} / genere = {Before, Meets, Overlaps}\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " DIVERGE During o During : manuel = {Before, Meets, Overlaps, During, After} / genere = {During}\r\n" + "output_type": "stream", + "text": [ + " DIVERGE During o During : manuel = {Before, Meets, Overlaps, During, After} / genere = {During}\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " DIVERGE During o Finishes : manuel = {Finishes} / genere = {During}\r\n" + "output_type": "stream", + "text": [ + " DIVERGE During o Finishes : manuel = {Finishes} / genere = {During}\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " DIVERGE During o Meets : manuel = {Before, Overlaps} / genere = {Before}\r\n" + "output_type": "stream", + "text": [ + " DIVERGE During o Meets : manuel = {Before, Overlaps} / genere = {Before}\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " -> 15/19 reproduites ; les divergences sont des entrees manuelles fausses (le generateur est temoin par triplet concret)\r\n" + "output_type": "stream", + "text": [ + " -> 15/19 reproduites ; les divergences sont des entrees manuelles fausses (le generateur est temoin par triplet concret)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Identite R o Equals = {R} : 13/13\r\n" + "output_type": "stream", + "text": [ + "Identite R o Equals = {R} : 13/13\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\n=== Composition Allen generee (R1 o R2) ===\r\n" + "output_type": "stream", + "text": [ + "\n", + "=== Composition Allen generee (R1 o R2) ===\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "R1 | R2 | Resultat\r\n" + "output_type": "stream", + "text": [ + "R1 | R2 | Resultat\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "------------------------------------------------------------\r\n" + "output_type": "stream", + "text": [ + "------------------------------------------------------------\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Before | During | Before, Meets, Overlaps, Starts, During\r\n" + "output_type": "stream", + "text": [ + "Before | During | Before, Meets, Overlaps, Starts, During\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Before | Finishes | Before, Meets, Overlaps, Starts, During\r\n" + "output_type": "stream", + "text": [ + "Before | Finishes | Before, Meets, Overlaps, Starts, During\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Before | After | Before, Meets, Overlaps, Starts, During, Finishes, Equals, After, MetBy, OverlappedBy, StartedBy, Contains, FinishedBy\r\n" + "output_type": "stream", + "text": [ + "Before | After | Before, Meets, Overlaps, Starts, During, Finishes, Equals, After, MetBy, OverlappedBy, StartedBy, Contains, FinishedBy\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Before | MetBy | Before, Meets, Overlaps, Starts, During\r\n" + "output_type": "stream", + "text": [ + "Before | MetBy | Before, Meets, Overlaps, Starts, During\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Before | OverlappedBy | Before, Meets, Overlaps, Starts, During\r\n" + "output_type": "stream", + "text": [ + "Before | OverlappedBy | Before, Meets, Overlaps, Starts, During\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Meets | During | Overlaps, Starts, During\r\n" + "output_type": "stream", + "text": [ + "Meets | During | Overlaps, Starts, During\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Meets | Finishes | Overlaps, Starts, During\r\n" + "output_type": "stream", + "text": [ + "Meets | Finishes | Overlaps, Starts, During\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Meets | After | After, MetBy, OverlappedBy, StartedBy, Contains\r\n" + "output_type": "stream", + "text": [ + "Meets | After | After, MetBy, OverlappedBy, StartedBy, Contains\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Meets | MetBy | Finishes, Equals, FinishedBy\r\n" + "output_type": "stream", + "text": [ + "Meets | MetBy | Finishes, Equals, FinishedBy\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Meets | OverlappedBy | Overlaps, Starts, During\r\n" + "output_type": "stream", + "text": [ + "Meets | OverlappedBy | Overlaps, Starts, During\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Overlaps | Overlaps | Before, Meets, Overlaps\r\n" + "output_type": "stream", + "text": [ + "Overlaps | Overlaps | Before, Meets, Overlaps\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Overlaps | During | Overlaps, Starts, During\r\n" + "output_type": "stream", + "text": [ + "Overlaps | During | Overlaps, Starts, During\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\nTotal paires : 169, disjonctions : 72 -- toutes calculees, zero repli\r\n" + "output_type": "stream", + "text": [ + "\n", + "Total paires : 169, disjonctions : 72 -- toutes calculees, zero repli\r\n" + ] } ], "source": [ @@ -1505,9 +1934,18 @@ ] }, { - "id": "f90cdbb8", "cell_type": "markdown", - "metadata": {}, + "id": "f90cdbb8", + "metadata": { + "papermill": { + "duration": 0.006711, + "end_time": "2026-11-24T09:42:50.194756+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:50.188045+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "**Lecture de l'exemple 1 (table generee)** :\n", "\n", @@ -1537,7 +1975,16 @@ "attachments": {}, "cell_type": "markdown", "id": "e8656471", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.006962, + "end_time": "2026-11-24T09:42:50.208664+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:50.201702+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Exercice 1b : Inverse et composition partielle d'Allen\n", "\n", @@ -1581,27 +2028,50 @@ "cell_type": "code", "execution_count": 10, "id": "7ca8eee0", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:42:50.223468Z", + "iopub.status.busy": "2026-11-24T09:42:50.223228Z", + "iopub.status.idle": "2026-11-24T09:42:50.279800Z", + "shell.execute_reply": "2026-11-24T09:42:50.279616Z" + }, + "papermill": { + "duration": 0.06468, + "end_time": "2026-11-24T09:42:50.279878+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:50.215198+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Exercice 1b a completer\r\n" + "output_type": "stream", + "text": [ + "Exercice 1b a completer\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Inverse(Before) = Before\r\n" + "output_type": "stream", + "text": [ + "Inverse(Before) = Before\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Exercice 1b a completer\r\n" + "output_type": "stream", + "text": [ + "Exercice 1b a completer\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "ComposeChain([Before, Meets, Overlaps]) = {}\r\n" + "output_type": "stream", + "text": [ + "ComposeChain([Before, Meets, Overlaps]) = {}\r\n" + ] } ], "source": [ @@ -1641,7 +2111,16 @@ "attachments": {}, "cell_type": "markdown", "id": "363fc862", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.007489, + "end_time": "2026-11-24T09:42:50.294764+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:50.287275+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Exemple guide 2 : STP avec deadlines strictes\n", "\n", @@ -1685,62 +2164,101 @@ "cell_type": "code", "execution_count": 11, "id": "b8fa163f", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:42:50.314775Z", + "iopub.status.busy": "2026-11-24T09:42:50.314349Z", + "iopub.status.idle": "2026-11-24T09:42:50.376117Z", + "shell.execute_reply": "2026-11-24T09:42:50.375982Z" + }, + "papermill": { + "duration": 0.069823, + "end_time": "2026-11-24T09:42:50.376182+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:50.306359+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "=== STP avec deadlines ===\r\n" + "output_type": "stream", + "text": [ + "=== STP avec deadlines ===\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Consistant : True\r\n" + "output_type": "stream", + "text": [ + "Consistant : True\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Temps Floyd-Warshall : 0,11 ms\r\n" + "output_type": "stream", + "text": [ + "Temps Floyd-Warshall : 0,05 ms\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\nDuree totale projet : 7,25h (deadline 10h)\r\n" + "output_type": "stream", + "text": [ + "\n", + "Duree totale projet : 7,25h (deadline 10h)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\nPlanning :\r\n" + "output_type": "stream", + "text": [ + "\n", + "Planning :\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " start : -1,50h\r\n" + "output_type": "stream", + "text": [ + " start : -1,50h\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " A : 0,00h\r\n" + "output_type": "stream", + "text": [ + " A : 0,00h\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " B : 1,50h\r\n" + "output_type": "stream", + "text": [ + " B : 1,50h\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " C : 3,50h\r\n" + "output_type": "stream", + "text": [ + " C : 3,50h\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " D : 4,25h\r\n" + "output_type": "stream", + "text": [ + " D : 4,25h\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " end : 5,75h\r\n" + "output_type": "stream", + "text": [ + " end : 5,75h\r\n" + ] } ], "source": [ @@ -1783,7 +2301,16 @@ "attachments": {}, "cell_type": "markdown", "id": "2f57e84c", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.007382, + "end_time": "2026-11-24T09:42:50.391190+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:50.383808+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Exercice 2b : STP pour planification de projet avec contraintes souples\n", "\n", @@ -1826,12 +2353,29 @@ "cell_type": "code", "execution_count": 12, "id": "6a32f7dd", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:42:50.407351Z", + "iopub.status.busy": "2026-11-24T09:42:50.407107Z", + "iopub.status.idle": "2026-11-24T09:42:50.448028Z", + "shell.execute_reply": "2026-11-24T09:42:50.447866Z" + }, + "papermill": { + "duration": 0.049542, + "end_time": "2026-11-24T09:42:50.448095+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:50.398553+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Exercice 2b a completer\r\n" + "output_type": "stream", + "text": [ + "Exercice 2b a completer\r\n" + ] } ], "source": [ @@ -1872,7 +2416,16 @@ "attachments": {}, "cell_type": "markdown", "id": "81b1d4b6", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.006899, + "end_time": "2026-11-24T09:42:50.462205+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:50.455306+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Exemple guide 3 : Planning multi-reunions avec précédence\n", "\n", @@ -1919,67 +2472,107 @@ "cell_type": "code", "execution_count": 13, "id": "7234e2c9", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:42:50.477675Z", + "iopub.status.busy": "2026-11-24T09:42:50.477349Z", + "iopub.status.idle": "2026-11-24T09:42:50.540340Z", + "shell.execute_reply": "2026-11-24T09:42:50.540432Z" + }, + "papermill": { + "duration": 0.071321, + "end_time": "2026-11-24T09:42:50.540510+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:50.469189+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "=== Multi-reunions avec precedence ===\r\n" + "output_type": "stream", + "text": [ + "=== Multi-reunions avec precedence ===\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Consistant : True\r\n" + "output_type": "stream", + "text": [ + "Consistant : True\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Duree totale (t0 -> end) : 15,75h\r\n" + "output_type": "stream", + "text": [ + "Duree totale (t0 -> end) : 15,75h\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\nPlanning :\r\n" + "output_type": "stream", + "text": [ + "\n", + "Planning :\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " t0 : -15,75h\r\n" + "output_type": "stream", + "text": [ + " t0 : -15,75h\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " R1_start : -6,75h\r\n" + "output_type": "stream", + "text": [ + " R1_start : -6,75h\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " R1_end : -6,00h\r\n" + "output_type": "stream", + "text": [ + " R1_end : -6,00h\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " R2_start : -5,75h\r\n" + "output_type": "stream", + "text": [ + " R2_start : -5,75h\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " R2_end : -5,00h\r\n" + "output_type": "stream", + "text": [ + " R2_end : -5,00h\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " R3_start : -4,75h\r\n" + "output_type": "stream", + "text": [ + " R3_start : -4,75h\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " R3_end : -4,00h\r\n" + "output_type": "stream", + "text": [ + " R3_end : -4,00h\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " end : 0,00h\r\n" + "output_type": "stream", + "text": [ + " end : 0,00h\r\n" + ] } ], "source": [ @@ -2013,7 +2606,16 @@ "attachments": {}, "cell_type": "markdown", "id": "6cfe0e2d", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.007315, + "end_time": "2026-11-24T09:42:50.555169+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:50.547854+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Exercice 3b : Planification de cours avec contraintes de salle\n", "\n", @@ -2062,12 +2664,29 @@ "cell_type": "code", "execution_count": 14, "id": "a743973a", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:42:50.572295Z", + "iopub.status.busy": "2026-11-24T09:42:50.571919Z", + "iopub.status.idle": "2026-11-24T09:42:50.629384Z", + "shell.execute_reply": "2026-11-24T09:42:50.629136Z" + }, + "papermill": { + "duration": 0.066849, + "end_time": "2026-11-24T09:42:50.629530+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:50.562681+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Exercice 3b a completer\r\n" + "output_type": "stream", + "text": [ + "Exercice 3b a completer\r\n" + ] } ], "source": [ @@ -2107,7 +2726,16 @@ "attachments": {}, "cell_type": "markdown", "id": "b1e7a2f5", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.007059, + "end_time": "2026-11-24T09:42:50.643953+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:50.636894+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Exemple guide 4 : STP resolu avec OR-Tools CP-SAT natif .NET\n", "\n", @@ -2146,52 +2774,86 @@ "cell_type": "code", "execution_count": 15, "id": "26dd18d4", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:42:50.663607Z", + "iopub.status.busy": "2026-11-24T09:42:50.663384Z", + "iopub.status.idle": "2026-11-24T09:42:50.825368Z", + "shell.execute_reply": "2026-11-24T09:42:50.825208Z" + }, + "papermill": { + "duration": 0.173901, + "end_time": "2026-11-24T09:42:50.825439+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:50.651538+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "=== OR-Tools CP-SAT : STP optimise ===\r\n" + "output_type": "stream", + "text": [ + "=== OR-Tools CP-SAT : STP optimise ===\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Statut : Optimal\r\n" + "output_type": "stream", + "text": [ + "Statut : Optimal\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Wall time solveur : 0,0623 s\r\n" + "output_type": "stream", + "text": [ + "Wall time solveur : 0,0199 s\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\nPlanning optimal :\r\n" + "output_type": "stream", + "text": [ + "\n", + "Planning optimal :\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " T0 = 0h (reference)\r\n" + "output_type": "stream", + "text": [ + " T0 = 0h (reference)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " T1 = 8h (arrivee)\r\n" + "output_type": "stream", + "text": [ + " T1 = 8h (arrivee)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " T2 = 10h (debut reunion)\r\n" + "output_type": "stream", + "text": [ + " T2 = 10h (debut reunion)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " T3 = 12h (fin reunion)\r\n" + "output_type": "stream", + "text": [ + " T3 = 12h (fin reunion)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " T4 = 12h (dejeuner) [OPTIMISE]\r\n" + "output_type": "stream", + "text": [ + " T4 = 12h (dejeuner) [OPTIMISE]\r\n" + ] } ], "source": [ @@ -2241,9 +2903,18 @@ ] }, { - "id": "b47b38f7", "cell_type": "markdown", - "metadata": {}, + "id": "b47b38f7", + "metadata": { + "papermill": { + "duration": 0.008474, + "end_time": "2026-11-24T09:42:50.842525+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:50.834051+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "**Lecture de l'exemple 4 (OR-Tools CP-SAT)** (code[14]) :\n", "\n", @@ -2279,7 +2950,16 @@ "attachments": {}, "cell_type": "markdown", "id": "2ed0a345", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.007407, + "end_time": "2026-11-24T09:42:50.857850+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:50.850443+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Exercice 4b : STP disjonctif avec relations d'Allen\n", "\n", @@ -2335,32 +3015,57 @@ "cell_type": "code", "execution_count": 16, "id": "309614f8", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-11-24T09:42:50.874911Z", + "iopub.status.busy": "2026-11-24T09:42:50.874523Z", + "iopub.status.idle": "2026-11-24T09:42:50.952750Z", + "shell.execute_reply": "2026-11-24T09:42:50.952575Z" + }, + "papermill": { + "duration": 0.087316, + "end_time": "2026-11-24T09:42:50.952821+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:50.865505+00:00", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Statut : Optimal\r\n" + "output_type": "stream", + "text": [ + "Statut : Optimal\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "A : [0, 1]\r\n" + "output_type": "stream", + "text": [ + "A : [0, 1]\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "B : [0, 1]\r\n" + "output_type": "stream", + "text": [ + "B : [0, 1]\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "C : [0, 1]\r\n" + "output_type": "stream", + "text": [ + "C : [0, 1]\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Duree optimale : 1h\r\n" + "output_type": "stream", + "text": [ + "Duree optimale : 1h\r\n" + ] } ], "source": [ @@ -2410,7 +3115,16 @@ "attachments": {}, "cell_type": "markdown", "id": "d531d61c", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.007569, + "end_time": "2026-11-24T09:42:50.968673+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:50.961104+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "***" ] @@ -2419,7 +3133,16 @@ "attachments": {}, "cell_type": "markdown", "id": "009153c5", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.008443, + "end_time": "2026-11-24T09:42:50.985006+00:00", + "exception": false, + "start_time": "2026-11-24T09:42:50.976563+00:00", + "status": "completed" + }, + "tags": [] + }, "source": [ "## Conclusion\n", "\n", @@ -2446,9 +3169,9 @@ "\n", "**Pour aller plus loin** :\n", "\n", - "- `CSP-9-Distributed-CSharp` : TCSP distribue (plusieurs agents cooperent pour résoudre un\n", + "- `CSP-09-Distributed-CSharp` : TCSP distribue (plusieurs agents cooperent pour résoudre un\n", " TCSP partage)\n", - "- `CSP-6-Hybridization-CSharp` : hybridation CP-SAT avec recherche locale (LNS = Large\n", + "- `CSP-06-Hybridization-CSharp` : hybridation CP-SAT avec recherche locale (LNS = Large\n", " Neighborhood Search)\n", "- `App-13-TSP-Metaheuristics-Python` :.planification de tournees avec fenêtres temporelles\n", " (TSP-TW), cas industriel classique\n", @@ -2479,6 +3202,23 @@ } ], "metadata": { + "cost": { + "api_provider": "none", + "api_usd_est": 0.0, + "cpu_min": 2, + "external_account": "none", + "free_alternative": "self", + "gpu_min": 0, + "gpu_required": false, + "metadata_written": "2026-07-28", + "network": false, + "qcc_tokens_est": 0, + "reduced_pedagogical": null, + "reproducibility": "HIGH", + "validator": "manual", + "vram_gb": 0, + "vram_tier": "NONE" + }, "kernelspec": { "display_name": ".NET (C#)", "language": "C#", @@ -2489,26 +3229,21 @@ "mimetype": "text/x-csharp", "name": "C#", "pygments_lexer": "csharp", - "version": "12.0" + "version": "13.0" }, - "cost": { - "api_usd_est": 0.0, - "api_provider": "none", - "qcc_tokens_est": 0, - "cpu_min": 2, - "gpu_min": 0, - "gpu_required": false, - "vram_gb": 0, - "vram_tier": "NONE", - "network": false, - "external_account": "none", - "free_alternative": "self", - "reduced_pedagogical": null, - "reproducibility": "HIGH", - "metadata_written": "2026-07-28", - "validator": "manual" + "papermill": { + "default_parameters": {}, + "duration": 6.452205, + "end_time": "2026-11-24T09:42:51.240101+00:00", + "environment_variables": {}, + "exception": null, + "input_path": "CSP-08-Temporal-CSharp.ipynb", + "output_path": "CSP-08-Temporal-CSharp.ipynb", + "parameters": {}, + "start_time": "2026-11-24T09:42:44.787896+00:00", + "version": "2.7.0" } }, "nbformat": 4, "nbformat_minor": 5 -} +} \ No newline at end of file diff --git a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb similarity index 99% rename from MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb rename to MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb index d1d574328bc..3bf277e24cf 100644 --- a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb +++ b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb @@ -16,7 +16,7 @@ "source": [ "# CSP-8 : Temporels - Raisonnement sur le Temps\n", "\n", - "**Navigation** : [<< CSP-7-Soft](CSP-7-Soft.ipynb) | [Index CSP](README.md) | [CSP-9-Distributed >>](CSP-9-Distributed.ipynb)\n", + "**Navigation** : [<< CSP-07-Soft-Python](CSP-07-Soft-Python.ipynb) | [Index CSP](README.md) | [CSP-09-Distributed-Python >>](CSP-09-Distributed-Python.ipynb)\n", "\n", "## Problèmes de Satisfaction de Contraintes Temporels\n", "\n", @@ -2171,9 +2171,9 @@ "\n", "### Navigation\n", "\n", - "- [<< CSP-7-Soft](CSP-7-Soft.ipynb)\n", + "- [<< CSP-07-Soft-Python](CSP-07-Soft-Python.ipynb)\n", "- [Index CSP](README.md)\n", - "- [CSP-9-Distributed >>](CSP-9-Distributed.ipynb)\n" + "- [CSP-09-Distributed-Python >>](CSP-09-Distributed-Python.ipynb)\n" ] }, { @@ -2206,7 +2206,7 @@ "\n", "L'algebre d'Allen offre un **cadre qualitatif** pour raisonner sur les relations entre événements (avant, après, pendant, etc.) tandis que le STP fournit un cadre **quantitatif** pour les contraintes metriques (durée minimale, delais). Le résultat cle de tractabilite : le STP est polynomial (Floyd-Warshall detecte les cycles négatifs = inconsistances), tandis que le TCSP avec disjonctions devient NP-hard.\n", "\n", - "**Suite** : [CSP-9 - Contraintes distribuees](CSP-9-Distributed.ipynb) | [Retour au sommaire CSP](README.md)" + "**Suite** : [CSP-9 - Contraintes distribuees](CSP-09-Distributed-Python.ipynb) | [Retour au sommaire CSP](README.md)" ] } ], @@ -2251,7 +2251,7 @@ "end_time": "2026-10-31T18:59:42.631003+00:00", "environment_variables": {}, "exception": null, - "input_path": "CSP-8-Temporal.ipynb", + "input_path": "CSP-08-Temporal-Python.ipynb", "output_path": "csp8_passA.ipynb", "parameters": {}, "start_time": "2026-10-31T18:59:31.263323+00:00", diff --git a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb similarity index 88% rename from MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb rename to MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb index 75d546725e1..cdd94ddf518 100644 --- a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb +++ b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb @@ -14,21 +14,14 @@ "cell_type": "markdown", "id": "51c388f5", "metadata": { - "papermill": { - "duration": 0.007699, - "end_time": "2026-11-06T16:35:30.692585+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:30.684886+00:00", - "status": "completed" - }, "tags": [] }, "source": [ - "# CSP-9-Distributed : CSP Distribués (DisCSP)\n", + "# CSP-09-Distributed-Python : CSP Distribués (DisCSP)\n", "\n", - "**Navigation** : [<< CSP-8-Temporal](CSP-8-Temporal.ipynb) | [Index](../README.md) | [CSP-10-Optimisation-Z3 >>](CSP-10-Optimisation-Z3.ipynb)\n", + "**Navigation** : [<< CSP-08-Temporal-Python](CSP-08-Temporal-Python.ipynb) | [Index](../README.md) | [CSP-10-Optimisation-Z3-Python >>](CSP-10-Optimisation-Z3-Python.ipynb)\n", "\n", - "**Série .NET** : [<< CSP-8-Temporal-CSharp](CSP-8-Temporal-CSharp.ipynb) | [Index](../README.md)\n", + "**Série .NET** : [<< CSP-08-Temporal-CSharp](CSP-08-Temporal-CSharp.ipynb) | [Index](../README.md)\n", "\n", "> **Durée estimée** : 2h00\n", "\n", @@ -42,12 +35,12 @@ "5. **Résoudre** des problèmes de coordination multi-agents\n", "\n", "## Prérequis\n", - "- [CSP-1-Fundamentals-CSharp.ipynb](CSP-1-Fundamentals-CSharp.ipynb) — notions CSP (variables, domaines, contraintes)\n", - "- [CSP-2-Consistency-CSharp.ipynb](CSP-2-Consistency-CSharp.ipynb) — propagation de contraintes\n", + "- [CSP-01-Fundamentals-CSharp.ipynb](CSP-01-Fundamentals-CSharp.ipynb) — notions CSP (variables, domaines, contraintes)\n", + "- [CSP-02-Consistency-CSharp.ipynb](CSP-02-Consistency-CSharp.ipynb) — propagation de contraintes\n", "\n", "## Implémentation en .NET\n", "\n", - "Ce notebook est le **binôme .NET** du [CSP-9-Distributed.ipynb](CSP-9-Distributed.ipynb) (Python). L'algorithme distribué Yokoo 1992 est implémenté **from scratch en C#** (pas de solver externe : l'ABT n'a pas de \"moteur SOTA centralisé\", c'est l'**algorithme** qui est le sujet)." + "Ce notebook est le **binôme .NET** du [CSP-09-Distributed-Python.ipynb](CSP-09-Distributed-Python.ipynb) (Python). L'algorithme distribué Yokoo 1992 est implémenté **from scratch en C#** (pas de solver externe : l'ABT n'a pas de \"moteur SOTA centralisé\", c'est l'**algorithme** qui est le sujet)." ] }, { @@ -55,39 +48,26 @@ "execution_count": 1, "id": "93379df9", "metadata": { - "execution": { - "iopub.execute_input": "2026-11-06T16:35:30.725789Z", - "iopub.status.busy": "2026-11-06T16:35:30.714593Z", - "iopub.status.idle": "2026-11-06T16:35:33.378542Z", - "shell.execute_reply": "2026-11-06T16:35:33.368740Z" - }, - "papermill": { - "duration": 2.679123, - "end_time": "2026-11-06T16:35:33.378788+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:30.699665+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - ".NET Version : 10.0.14\r\n" + ".NET Version : 10.0.15\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "Repertoire courant : CoursIA-csp9cs\r\n" + "Repertoire courant : Part2-CSP\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "Environnement DisCSP pret (System.* imports)\r\n" ] @@ -110,13 +90,6 @@ "cell_type": "markdown", "id": "c2017647", "metadata": { - "papermill": { - "duration": 0.006995, - "end_time": "2026-11-06T16:35:33.394741+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:33.387746+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -153,32 +126,19 @@ "execution_count": 2, "id": "c7e87141", "metadata": { - "execution": { - "iopub.execute_input": "2026-11-06T16:35:33.414212Z", - "iopub.status.busy": "2026-11-06T16:35:33.413651Z", - "iopub.status.idle": "2026-11-06T16:35:34.072833Z", - "shell.execute_reply": "2026-11-06T16:35:34.072639Z" - }, - "papermill": { - "duration": 0.669262, - "end_time": "2026-11-06T16:35:34.072934+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:33.403672+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "Records Message et Nogood definis.\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "Test : Msg(1->2, ok?)\r\n" ] @@ -218,13 +178,6 @@ "cell_type": "markdown", "id": "cc993327", "metadata": { - "papermill": { - "duration": 0.005919, - "end_time": "2026-11-06T16:35:34.085117+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:34.079198+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -258,25 +211,12 @@ "execution_count": 3, "id": "1cecb869", "metadata": { - "execution": { - "iopub.execute_input": "2026-11-06T16:35:34.158212Z", - "iopub.status.busy": "2026-11-06T16:35:34.098318Z", - "iopub.status.idle": "2026-11-06T16:35:34.756970Z", - "shell.execute_reply": "2026-11-06T16:35:34.756749Z" - }, - "papermill": { - "duration": 0.665963, - "end_time": "2026-11-06T16:35:34.757081+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:34.091118+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "Classe ABTAgent definie.\r\n" ] @@ -500,13 +440,6 @@ "cell_type": "markdown", "id": "81050a23", "metadata": { - "papermill": { - "duration": 0.006863, - "end_time": "2026-11-06T16:35:34.770269+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:34.763406+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -524,25 +457,12 @@ "execution_count": 4, "id": "635f3231", "metadata": { - "execution": { - "iopub.execute_input": "2026-11-06T16:35:34.794594Z", - "iopub.status.busy": "2026-11-06T16:35:34.794200Z", - "iopub.status.idle": "2026-11-06T16:35:35.080766Z", - "shell.execute_reply": "2026-11-06T16:35:35.080556Z" - }, - "papermill": { - "duration": 0.30142, - "end_time": "2026-11-06T16:35:35.080863+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:34.779443+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "Classe ABTSystem definie.\r\n" ] @@ -707,13 +627,6 @@ "cell_type": "markdown", "id": "c53c4f6e", "metadata": { - "papermill": { - "duration": 0.006343, - "end_time": "2026-11-06T16:35:35.093897+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:35.087554+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -743,13 +656,6 @@ "cell_type": "markdown", "id": "db70f189", "metadata": { - "papermill": { - "duration": 0.005877, - "end_time": "2026-11-06T16:35:35.105747+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:35.099870+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -762,75 +668,62 @@ "execution_count": 5, "id": "9798f8ab", "metadata": { - "execution": { - "iopub.execute_input": "2026-11-06T16:35:35.120589Z", - "iopub.status.busy": "2026-11-06T16:35:35.120191Z", - "iopub.status.idle": "2026-11-06T16:35:35.385071Z", - "shell.execute_reply": "2026-11-06T16:35:35.384682Z" - }, - "papermill": { - "duration": 0.273504, - "end_time": "2026-11-06T16:35:35.385214+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:35.111710+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "=== Resultat ABT (coloration cycle 4) ===\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "Solution : {0=R, 1=G, 2=R, 3=B}\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "Statistiques : 10 messages, 0 nogoods\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "\n", "Verification :\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Arete 0-1 : R vs G -> OK\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Arete 1-2 : G vs R -> OK\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Arete 2-3 : R vs B -> OK\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Arete 3-0 : B vs R -> OK\r\n" ] @@ -887,13 +780,6 @@ "cell_type": "markdown", "id": "d6ee1c81", "metadata": { - "papermill": { - "duration": 0.009492, - "end_time": "2026-11-06T16:35:35.403211+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:35.393719+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -905,13 +791,6 @@ "cell_type": "markdown", "id": "c25d7bf9", "metadata": { - "papermill": { - "duration": 0.009967, - "end_time": "2026-11-06T16:35:35.423610+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:35.413643+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -923,50 +802,39 @@ "execution_count": 6, "id": "8f9b0b73", "metadata": { - "execution": { - "iopub.execute_input": "2026-11-06T16:35:35.449402Z", - "iopub.status.busy": "2026-11-06T16:35:35.448966Z", - "iopub.status.idle": "2026-11-06T16:35:36.285801Z", - "shell.execute_reply": "2026-11-06T16:35:36.286055Z" - }, - "papermill": { - "duration": 0.849808, - "end_time": "2026-11-06T16:35:36.286193+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:35.436385+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { + "output_type": "display_data", "data": { "text/html": [ - "
Installed Packages
  • ScottPlot, 5.0.55
" + "
Installing Packages
  • ScottPlot
" ] }, - "metadata": {}, - "output_type": "display_data" + "metadata": {} }, { + "output_type": "display_data", "data": { - "text/plain": [] + "text/plain": [ + + ] }, - "metadata": {}, - "output_type": "display_data" + "metadata": {} }, { + "output_type": "display_data", "data": { "text/html": [ "" ] }, - "metadata": {}, - "output_type": "display_data" + "metadata": {} }, { - "name": "stderr", "output_type": "stream", + "name": "stderr", "text": [ "\r\n", "warning CS1701: En supposant que la référence d'assembly 'Microsoft.AspNetCore.Html.Abstractions, Version=2.3.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' utilisée par 'Microsoft.DotNet.Interactive' correspond à l'identité 'Microsoft.AspNetCore.Html.Abstractions, Version=10.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' de 'Microsoft.AspNetCore.Html.Abstractions', il se peut que vous deviez fournir une stratégie runtime\r\n", @@ -1039,13 +907,6 @@ "cell_type": "markdown", "id": "5bf6b957", "metadata": { - "papermill": { - "duration": 0.008603, - "end_time": "2026-11-06T16:35:36.302522+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:36.293919+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -1065,13 +926,6 @@ "cell_type": "markdown", "id": "93a92599", "metadata": { - "papermill": { - "duration": 0.009638, - "end_time": "2026-11-06T16:35:36.321982+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:36.312344+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -1095,25 +949,12 @@ "execution_count": 7, "id": "347b86d7", "metadata": { - "execution": { - "iopub.execute_input": "2026-11-06T16:35:36.342442Z", - "iopub.status.busy": "2026-11-06T16:35:36.342009Z", - "iopub.status.idle": "2026-11-06T16:35:36.456634Z", - "shell.execute_reply": "2026-11-06T16:35:36.456330Z" - }, - "papermill": { - "duration": 0.124975, - "end_time": "2026-11-06T16:35:36.456776+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:36.331801+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "Classe AWCAgent definie (herite de ABTAgent, ajoute AwcRank + promotion).\r\n" ] @@ -1173,13 +1014,6 @@ "cell_type": "markdown", "id": "b35ae939", "metadata": { - "papermill": { - "duration": 0.009336, - "end_time": "2026-11-06T16:35:36.475948+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:36.466612+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -1215,13 +1049,6 @@ "cell_type": "markdown", "id": "a572d52f", "metadata": { - "papermill": { - "duration": 0.011955, - "end_time": "2026-11-06T16:35:36.498727+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:36.486772+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -1244,25 +1071,12 @@ "execution_count": 8, "id": "1e4a444d", "metadata": { - "execution": { - "iopub.execute_input": "2026-11-06T16:35:36.520760Z", - "iopub.status.busy": "2026-11-06T16:35:36.520421Z", - "iopub.status.idle": "2026-11-06T16:35:36.689358Z", - "shell.execute_reply": "2026-11-06T16:35:36.688890Z" - }, - "papermill": { - "duration": 0.181462, - "end_time": "2026-11-06T16:35:36.689493+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:36.508031+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "Classes PrivateConstraint et PrivacyPreservingAgent definies.\r\n" ] @@ -1341,13 +1155,6 @@ "cell_type": "markdown", "id": "c72f1676", "metadata": { - "papermill": { - "duration": 0.01176, - "end_time": "2026-11-06T16:35:36.712715+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:36.700955+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -1379,13 +1186,6 @@ "cell_type": "markdown", "id": "ca7a21c7", "metadata": { - "papermill": { - "duration": 0.012233, - "end_time": "2026-11-06T16:35:36.734350+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:36.722117+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -1411,90 +1211,77 @@ "execution_count": 9, "id": "c3afe23c", "metadata": { - "execution": { - "iopub.execute_input": "2026-11-06T16:35:36.762150Z", - "iopub.status.busy": "2026-11-06T16:35:36.761726Z", - "iopub.status.idle": "2026-11-06T16:35:36.915828Z", - "shell.execute_reply": "2026-11-06T16:35:36.915581Z" - }, - "papermill": { - "duration": 0.168586, - "end_time": "2026-11-06T16:35:36.915941+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:36.747355+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "=== Ordonnancement Multi-Hopital (Privacy-Preserving) ===\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "\n", "Solution trouvee :\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Hopital 0 : Lundi_AM\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Hopital 1 : Lundi_PM\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Hopital 2 : Mardi_AM\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "\n", "Rapports de confidentialite :\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Agent 0 : privacy=high, constraints privees=0\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Agent 1 : privacy=high, constraints privees=0\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Agent 2 : privacy=high, constraints privees=0\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "\n", "Messages totaux : 4\r\n" @@ -1554,13 +1341,6 @@ "cell_type": "markdown", "id": "786087d8", "metadata": { - "papermill": { - "duration": 0.011502, - "end_time": "2026-11-06T16:35:36.936661+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:36.925159+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -1576,13 +1356,6 @@ "cell_type": "markdown", "id": "ad1b753b", "metadata": { - "papermill": { - "duration": 0.011155, - "end_time": "2026-11-06T16:35:36.958042+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:36.946887+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -1596,280 +1369,267 @@ "execution_count": 10, "id": "efbbced8", "metadata": { - "execution": { - "iopub.execute_input": "2026-11-06T16:35:36.985375Z", - "iopub.status.busy": "2026-11-06T16:35:36.984932Z", - "iopub.status.idle": "2026-11-06T16:35:38.056147Z", - "shell.execute_reply": "2026-11-06T16:35:38.055784Z" - }, - "papermill": { - "duration": 1.086183, - "end_time": "2026-11-06T16:35:38.056311+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:36.970128+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "\n", "Resultats ABT:\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Run 1 (15 aretes): Resolu, 54 messages, 0 nogoods, 0,000s\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Run 2 (15 aretes): Non resolu, 3598 messages, 1095 nogoods, 0,076s\r\n" + " Run 2 (15 aretes): Non resolu, 3598 messages, 1095 nogoods, 0,116s\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Run 3 (11 aretes): Resolu, 41 messages, 0 nogoods, 0,000s\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Run 4 (11 aretes): Resolu, 66 messages, 0 nogoods, 0,000s\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - " Run 5 (16 aretes): Non resolu, 5008 messages, 1232 nogoods, 0,133s\r\n" + " Run 5 (16 aretes): Non resolu, 5008 messages, 1232 nogoods, 0,076s\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "\n", "Moyennes ABT:\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Messages: 1753,4\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Nogoods: 465,4\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Taux de succes: 60,0%\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "\n", "Resultats AWC:\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Run 1 (15 aretes): Resolu, 54 messages, 0 nogoods, 0,000s\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Run 2 (15 aretes): Non resolu, 347 messages, 9 nogoods, 0,003s\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Run 3 (11 aretes): Resolu, 41 messages, 0 nogoods, 0,000s\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Run 4 (11 aretes): Resolu, 66 messages, 0 nogoods, 0,000s\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Run 5 (16 aretes): Non resolu, 297 messages, 8 nogoods, 0,001s\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "\n", "Moyennes AWC:\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Messages: 161,0\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Nogoods: 3,4\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Taux de succes: 60,0%\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "\n", "Instance, satisfiabilite exacte (3^8) et cause d'arret:\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "run aretes colorable arret ABT arret AWC promo AWC\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "----------------------------------------------------------------------------------\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " 1 15 True solution solution 0\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " 2 15 False stop (nogood vide) stop (nogood vide) 25\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " 3 11 True solution solution 0\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " 4 11 True solution solution 0\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " 5 16 False stop (nogood vide) stop (nogood vide) 28\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "\n", "Instances colorables : 3/5\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "Resolues parmi les colorables : ABT 3/3 | AWC 3/3\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "Instances declarees resolues alors qu'insatisfiables (doit valoir 0) : 0\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "\n", "Comparaison ABT vs AWC:\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Messages : ABT 1753,4 | AWC 161,0 (rapport AWC/ABT = 0,09)\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Nogoods : ABT 465,4 | AWC 3,4 (rapport AWC/ABT = 0,01)\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Resolus : ABT 60% | AWC 60%\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "\n", - "Duree totale du benchmark : 0,237s\r\n" + "Duree totale du benchmark : 0,208s\r\n" ] } ], @@ -2092,13 +1852,6 @@ "cell_type": "markdown", "id": "c2a79964", "metadata": { - "papermill": { - "duration": 0.014721, - "end_time": "2026-11-06T16:35:38.085627+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:38.070906+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -2146,13 +1899,6 @@ "cell_type": "markdown", "id": "b68ce75a", "metadata": { - "papermill": { - "duration": 0.027939, - "end_time": "2026-11-06T16:35:38.144422+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:38.116483+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -2165,89 +1911,76 @@ "execution_count": 11, "id": "03e05d28", "metadata": { - "execution": { - "iopub.execute_input": "2026-11-06T16:35:38.181990Z", - "iopub.status.busy": "2026-11-06T16:35:38.181467Z", - "iopub.status.idle": "2026-11-06T16:35:38.594646Z", - "shell.execute_reply": "2026-11-06T16:35:38.594141Z" - }, - "papermill": { - "duration": 0.434841, - "end_time": "2026-11-06T16:35:38.594802+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:38.159961+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "=== N-reines distribuees (n=6) ===\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "Solution : {0->1, 1->3, 2->5, 3->0, 4->2, 5->4}\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "Valide : True\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "\n", "Plateau :\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ ". . . Q . .\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "Q . . . . .\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ ". . . . Q .\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ ". Q . . . .\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ ". . . . . Q\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ ". . Q . . .\r\n" ] @@ -2326,13 +2059,6 @@ "cell_type": "markdown", "id": "61b24cb8", "metadata": { - "papermill": { - "duration": 0.010924, - "end_time": "2026-11-06T16:35:38.620222+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:38.609298+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -2345,25 +2071,12 @@ "execution_count": 12, "id": "87c4444d", "metadata": { - "execution": { - "iopub.execute_input": "2026-11-06T16:35:38.650873Z", - "iopub.status.busy": "2026-11-06T16:35:38.650395Z", - "iopub.status.idle": "2026-11-06T16:35:38.714177Z", - "shell.execute_reply": "2026-11-06T16:35:38.713919Z" - }, - "papermill": { - "duration": 0.080778, - "end_time": "2026-11-06T16:35:38.714287+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:38.633509+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "Exercice 1b a completer (coloration 5-noeuds, 5 couleurs)\r\n" ] @@ -2388,13 +2101,6 @@ "cell_type": "markdown", "id": "2c3902fc", "metadata": { - "papermill": { - "duration": 0.01381, - "end_time": "2026-11-06T16:35:38.741655+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:38.727845+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -2407,53 +2113,40 @@ "execution_count": 13, "id": "1817fd7e", "metadata": { - "execution": { - "iopub.execute_input": "2026-11-06T16:35:38.804434Z", - "iopub.status.busy": "2026-11-06T16:35:38.804011Z", - "iopub.status.idle": "2026-11-06T16:35:39.097039Z", - "shell.execute_reply": "2026-11-06T16:35:39.096643Z" - }, - "papermill": { - "duration": 0.323315, - "end_time": "2026-11-06T16:35:39.097176+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:38.773861+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "density abt_suc awc_suc abt_msgs awc_msgs abt_ng awc_ng\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "------------------------------------------------------------\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " 0,30 100 % 100 % 22,8 22,8 0,0 0,0\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " 0,50 80 % 60 % 159,4 62,0 35,8 2,2\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " 0,70 80 % 60 % 54,4 65,0 6,2 2,2\r\n" ] @@ -2540,13 +2233,6 @@ "cell_type": "markdown", "id": "9024bb05", "metadata": { - "papermill": { - "duration": 0.01463, - "end_time": "2026-11-06T16:35:39.127844+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:39.113214+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -2559,25 +2245,12 @@ "execution_count": 14, "id": "63fdd7ca", "metadata": { - "execution": { - "iopub.execute_input": "2026-11-06T16:35:39.162323Z", - "iopub.status.busy": "2026-11-06T16:35:39.161863Z", - "iopub.status.idle": "2026-11-06T16:35:39.239650Z", - "shell.execute_reply": "2026-11-06T16:35:39.239312Z" - }, - "papermill": { - "duration": 0.097226, - "end_time": "2026-11-06T16:35:39.239926+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:39.142700+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "Exercice 2b a completer (densite 0.2 a 0.8, 10 runs par densite)\r\n" ] @@ -2599,13 +2272,6 @@ "cell_type": "markdown", "id": "d8d1125c", "metadata": { - "papermill": { - "duration": 0.014063, - "end_time": "2026-11-06T16:35:39.267908+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:39.253845+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -2618,75 +2284,62 @@ "execution_count": 15, "id": "7d329e8f", "metadata": { - "execution": { - "iopub.execute_input": "2026-11-06T16:35:39.302014Z", - "iopub.status.busy": "2026-11-06T16:35:39.301317Z", - "iopub.status.idle": "2026-11-06T16:35:39.637597Z", - "shell.execute_reply": "2026-11-06T16:35:39.637080Z" - }, - "papermill": { - "duration": 0.353849, - "end_time": "2026-11-06T16:35:39.637732+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:39.283883+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "=== Negociation multi-agent (4 agents, 5 ressources) ===\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "Messages : 9\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "\n", "Allocation :\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Agent 0 -> slot_0 (utilite secrete = 5)\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Agent 1 -> slot_4 (utilite secrete = 4)\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Agent 2 -> slot_2 (utilite secrete = 4)\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " Agent 3 -> slot_1 (utilite secrete = 5)\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "\n", "Bien-etre social : 18 / max theorique 20\r\n" @@ -2771,13 +2424,6 @@ "cell_type": "markdown", "id": "f225f1c3", "metadata": { - "papermill": { - "duration": 0.023407, - "end_time": "2026-11-06T16:35:39.680603+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:39.657196+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -2790,25 +2436,12 @@ "execution_count": 16, "id": "a1004f12", "metadata": { - "execution": { - "iopub.execute_input": "2026-11-06T16:35:39.739530Z", - "iopub.status.busy": "2026-11-06T16:35:39.739110Z", - "iopub.status.idle": "2026-11-06T16:35:39.836229Z", - "shell.execute_reply": "2026-11-06T16:35:39.835875Z" - }, - "papermill": { - "duration": 0.119263, - "end_time": "2026-11-06T16:35:39.836370+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:39.717107+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "Exercice 3b a completer (5 agents, 8 taches, preferences secretes)\r\n" ] @@ -2833,13 +2466,6 @@ "cell_type": "markdown", "id": "74b477c0", "metadata": { - "papermill": { - "duration": 0.014668, - "end_time": "2026-11-06T16:35:39.867788+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:39.853120+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -2852,89 +2478,76 @@ "execution_count": 17, "id": "0518e56f", "metadata": { - "execution": { - "iopub.execute_input": "2026-11-06T16:35:39.905114Z", - "iopub.status.busy": "2026-11-06T16:35:39.904673Z", - "iopub.status.idle": "2026-11-06T16:35:40.149735Z", - "shell.execute_reply": "2026-11-06T16:35:40.149232Z" - }, - "papermill": { - "duration": 0.265875, - "end_time": "2026-11-06T16:35:40.149870+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:39.883995+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "run std_ok min_ok std_leak min_leak reduction\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "------------------------------------------------------\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " 0 True True 28 13 54 %\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " 1 True True 22 8 64 %\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " 2 True True 16 4 75 %\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " 3 True True 19 8 58 %\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ " 4 True True 22 12 45 %\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "\n", "Moyenne fuite ABT standard : 21,4 revelations\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "Moyenne fuite disclosure min : 9,0 revelations\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "Reduction moyenne : 58 %\r\n" ] @@ -3013,13 +2626,6 @@ "cell_type": "markdown", "id": "ab71154d", "metadata": { - "papermill": { - "duration": 0.016791, - "end_time": "2026-11-06T16:35:40.182260+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:40.165469+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -3032,25 +2638,12 @@ "execution_count": 18, "id": "ccc8f5f8", "metadata": { - "execution": { - "iopub.execute_input": "2026-11-06T16:35:40.222435Z", - "iopub.status.busy": "2026-11-06T16:35:40.222024Z", - "iopub.status.idle": "2026-11-06T16:35:40.312302Z", - "shell.execute_reply": "2026-11-06T16:35:40.311688Z" - }, - "papermill": { - "duration": 0.110297, - "end_time": "2026-11-06T16:35:40.312456+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:40.202159+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "Exercice 4b a completer (creer PartialDisclosureAgent + comparer 3 niveaux)\r\n" ] @@ -3074,13 +2667,6 @@ "cell_type": "markdown", "id": "8796adb8", "metadata": { - "papermill": { - "duration": 0.015879, - "end_time": "2026-11-06T16:35:40.343893+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:40.328014+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -3109,10 +2695,10 @@ "\n", "### Ressources locales\n", "\n", - "- [CSP-1-Fundamentals.ipynb](CSP-1-Fundamentals.ipynb) — bases CSP\n", - "- [CSP-1-Fundamentals-CSharp.ipynb](CSP-1-Fundamentals-CSharp.ipynb) — version .NET (IKVM + Choco)\n", - "- [CSP-8-Temporal.ipynb](CSP-8-Temporal.ipynb) — CSP temporels\n", - "- [CSP-8-Temporal-CSharp.ipynb](CSP-8-Temporal-CSharp.ipynb) — version .NET (OR-Tools)" + "- [CSP-01-Fundamentals-Python.ipynb](CSP-01-Fundamentals-Python.ipynb) — bases CSP\n", + "- [CSP-01-Fundamentals-CSharp.ipynb](CSP-01-Fundamentals-CSharp.ipynb) — version .NET (IKVM + Choco)\n", + "- [CSP-08-Temporal-Python.ipynb](CSP-08-Temporal-Python.ipynb) — CSP temporels\n", + "- [CSP-08-Temporal-CSharp.ipynb](CSP-08-Temporal-CSharp.ipynb) — version .NET (OR-Tools)" ] }, { @@ -3120,144 +2706,131 @@ "execution_count": 19, "id": "3a355ecd", "metadata": { - "execution": { - "iopub.execute_input": "2026-11-06T16:35:40.401145Z", - "iopub.status.busy": "2026-11-06T16:35:40.400600Z", - "iopub.status.idle": "2026-11-06T16:35:40.492628Z", - "shell.execute_reply": "2026-11-06T16:35:40.492286Z" - }, - "papermill": { - "duration": 0.123061, - "end_time": "2026-11-06T16:35:40.492757+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:40.369696+00:00", - "status": "completed" - }, "tags": [] }, "outputs": [ { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ - "=== Resume CSP-9-Distributed : CSP Distribues ===\r\n" + "=== Resume CSP-09-Distributed-Python : CSP Distribues ===\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "Concepts couverts :\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "1. Formalisation DisCSP (agents, contraintes inter-agent)\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "2. Asynchronous Backtracking (ABT) - algorithme de base (Yokoo 1992)\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "3. Messages ok?, nogood, addlink, stop\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "4. Apprentissage par nogoods + vues agent_view\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "5. Asynchronous Weak-Commitment (AWC) - reordonnancement dynamique (Yokoo 1995)\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "6. Privacy-preserving CSP - PrivateConstraint + PrivacyPreservingAgent\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "7. Application : Ordonnancement multi-hopital + Negociation preferences secretes\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "Implementation : 100% C# from scratch (records + classes), System.Collections.Generic + LINQ\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "Pas de solver externe : algorithme distribue = protocole de messages, pas moteur centralise\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "Prochaines etapes possibles :\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "- Explorer Distributed Breakout pour l'optimisation\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "- Combiner avec des techniques de ML pour l'apprentissage de contraintes\r\n" ] }, { - "name": "stdout", "output_type": "stream", + "name": "stdout", "text": [ "- Appliquer aux smart grids et reseaux peer-to-peer\r\n" ] @@ -3266,7 +2839,7 @@ "source": [ "\n", "// Cellule finale - Resume du notebook\n", - "Console.WriteLine(\"=== Resume CSP-9-Distributed : CSP Distribues ===\");\n", + "Console.WriteLine(\"=== Resume CSP-09-Distributed-Python : CSP Distribues ===\");\n", "Console.WriteLine();\n", "Console.WriteLine(\"Concepts couverts :\");\n", "Console.WriteLine(\"1. Formalisation DisCSP (agents, contraintes inter-agent)\");\n", @@ -3290,13 +2863,6 @@ "cell_type": "markdown", "id": "3bff6eac", "metadata": { - "papermill": { - "duration": 0.017888, - "end_time": "2026-11-06T16:35:40.527293+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:40.509405+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -3333,13 +2899,6 @@ "cell_type": "markdown", "id": "eaad00db", "metadata": { - "papermill": { - "duration": 0.016458, - "end_time": "2026-11-06T16:35:40.560916+00:00", - "exception": false, - "start_time": "2026-11-06T16:35:40.544458+00:00", - "status": "completed" - }, "tags": [] }, "source": [ @@ -3392,20 +2951,8 @@ "name": "C#", "pygments_lexer": "csharp", "version": "13.0" - }, - "papermill": { - "default_parameters": {}, - "duration": 13.379846, - "end_time": "2026-11-06T16:35:40.816398+00:00", - "environment_variables": {}, - "exception": null, - "input_path": "CSP-9-Distributed-CSharp.ipynb", - "output_path": "CSP-9-Distributed-CSharp.ipynb", - "parameters": {}, - "start_time": "2026-11-06T16:35:27.436552+00:00", - "version": "2.7.0" } }, "nbformat": 4, "nbformat_minor": 5 -} +} \ No newline at end of file diff --git a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb similarity index 99% rename from MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb rename to MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb index d54b814ca5c..fa2d521b344 100644 --- a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb +++ b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb @@ -14,9 +14,9 @@ "tags": [] }, "source": [ - "# CSP-9-Distributed : CSP Distribués (DisCSP)\n", + "# CSP-09-Distributed-Python : CSP Distribués (DisCSP)\n", "\n", - "**Navigation** : [<< CSP-8-Temporal](CSP-8-Temporal.ipynb) | [Index CSP](README.md) | [CSP-10-Optimisation-Z3 >>](CSP-10-Optimisation-Z3.ipynb)\n", + "**Navigation** : [<< CSP-08-Temporal-Python](CSP-08-Temporal-Python.ipynb) | [Index CSP](README.md) | [CSP-10-Optimisation-Z3-Python >>](CSP-10-Optimisation-Z3-Python.ipynb)\n", "\n", "> **Durée estimée** : 2h00\n", "\n", @@ -3489,7 +3489,7 @@ "tags": [] }, "source": [ - "## Resume CSP-9-Distributed : CSP Distribues\n", + "## Resume CSP-09-Distributed-Python : CSP Distribues\n", "\n", "**Concepts couverts :**\n", "\n", @@ -3575,7 +3575,7 @@ "2. **La privacy est un enjeu réel** : dans le cas multi-hopital, chaque etablissement ne peut pas reveler ses contraintes internes aux autres\n", "3. **Le compromis asynchroniete vs complexité** : ABT ne demande pas de synchronisation globale, mais le nombre de messages peut exploser (6-Queens : 442 messages, 110 nogoods)\n", "\n", - "Poursuivez avec [CSP-10 : Optimisation Z3](CSP-10-Optimisation-Z3.ipynb), qui complète le parcours par une formulation SMT de couverture minimale. Pour les applications concrètes, voir les [notebooks d’application](../Part3-Cas-pratiques/README.md).\n", + "Poursuivez avec [CSP-10 : Optimisation Z3](CSP-10-Optimisation-Z3-Python.ipynb), qui complète le parcours par une formulation SMT de couverture minimale. Pour les applications concrètes, voir les [notebooks d’application](../Part3-Cas-pratiques/README.md).\n", "\n", "**Retour au sommaire** : [Part2-CSP](README.md) | [Search](../README.md)" ] @@ -3622,8 +3622,8 @@ "end_time": "2026-11-11T23:25:44.714285+00:00", "environment_variables": {}, "exception": null, - "input_path": "CSP-9-Distributed.ipynb", - "output_path": "CSP-9-Distributed.ipynb", + "input_path": "CSP-09-Distributed-Python.ipynb", + "output_path": "CSP-09-Distributed-Python.ipynb", "parameters": {}, "start_time": "2026-11-11T23:25:34.453490+00:00", "version": "2.6.0" diff --git a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-CSharp.ipynb b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-CSharp.ipynb index dc9d8c76eec..155566adde5 100644 --- a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-CSharp.ipynb +++ b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-CSharp.ipynb @@ -9,7 +9,7 @@ "source": [ "# CSP-10 — Couverture minimale avec Z3 en C#\n", "\n", - "[<< CSP-9](CSP-9-Distributed-CSharp.ipynb) | [Index CSP](README.md) | [Version Python](CSP-10-Optimisation-Z3.ipynb)\n", + "[<< CSP-9](CSP-09-Distributed-CSharp.ipynb) | [Index CSP](README.md) | [Version Python](CSP-10-Optimisation-Z3-Python.ipynb)\n", "\n", "**Durée indicative : 1 h 30.** Ce binôme du notebook Python formule une couverture minimale, compare Z3 à une énumération exacte sur une petite instance et démontre une borne inférieure par insatisfaisabilité. Prérequis : CSP-1, CSP-2 et CSP-5, ainsi que C# et .NET Interactive.\n", "\n", diff --git a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3.ipynb b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Python.ipynb similarity index 98% rename from MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3.ipynb rename to MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Python.ipynb index fec73df40bc..c780d0e0dc7 100644 --- a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3.ipynb +++ b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Python.ipynb @@ -14,9 +14,9 @@ "tags": [] }, "source": [ - "# CSP-10-Optimisation-Z3 : Couverture Minimale avec le Solveur SMT Z3\n", + "# CSP-10-Optimisation-Z3-Python : Couverture Minimale avec le Solveur SMT Z3\n", "\n", - "**Navigation** : [<< CSP-9-Distributed](CSP-9-Distributed.ipynb) | [Index CSP](README.md) | [Partie 3 : Cas pratiques >>](../Part3-Cas-pratiques/README.md) | [jumeau Rust](CSP-10-Optimisation-Z3-Rust.ipynb)\n", + "**Navigation** : [<< CSP-09-Distributed-Python](CSP-09-Distributed-Python.ipynb) | [Index CSP](README.md) | [Partie 3 : Cas pratiques >>](../Part3-Cas-pratiques/README.md) | [jumeau Rust](CSP-10-Optimisation-Z3-Rust.ipynb)\n", "\n", "> **Durée estimée** : 1h30\n", "\n", @@ -37,7 +37,7 @@ "## Prérequis\n", "\n", "- Notebooks CSP-1 à CSP-2 (le paradigme déclaratif : variables, contraintes, solveur)\n", - "- CSP-5-Optimization (optimisation combinatoire sous CP-SAT)\n", + "- CSP-05-Optimization-Python (optimisation combinatoire sous CP-SAT)\n", "- Python 3.10+ : `z3-solver`, `matplotlib`, `numpy`\n", "\n", "> *Ancres savantes -- de Moura, L. & Bjørner, N. (2008), Z3: An Efficient SMT Solver, TACAS 2008, LNCS 4956:357-371 (le solveur SMT utilisé ici, ses théories et son moteur d'optimisation) ; Garey, M.R. & Johnson, D.S. (1979), Computers and Intractability, W.H. Freeman (la couverture d'ensembles, set cover, parmi les 21 problèmes NP-complets fondateurs) ; Bardin, S., Bjørner, N. & Cadar, C. (2019), Bringing CP, SAT and SMT together, Dagstuhl Reports 9(2):27 (le pont entre les trois familles de solveurs que ce notebook franchit).*" @@ -847,7 +847,7 @@ "source": [ "## Pour aller plus loin\n", "\n", - "- **Carnets voisins** : [CSP-6-Hybridization.ipynb](CSP-6-Hybridization.ipynb) — la Lazy Clause Generation, d'où le passage CP → SAT → SMT ; [CSP-5-Optimization.ipynb](CSP-5-Optimization.ipynb) — la même famille de problèmes d'optimum, résolue sous CP-SAT.\n", + "- **Carnets voisins** : [CSP-06-Hybridization-Python.ipynb](CSP-06-Hybridization-Python.ipynb) — la Lazy Clause Generation, d'où le passage CP → SAT → SMT ; [CSP-05-Optimization-Python.ipynb](CSP-05-Optimization-Python.ipynb) — la même famille de problèmes d'optimum, résolue sous CP-SAT.\n", "- **Jumeau Rust** → [CSP-10-Optimisation-Z3-Rust](CSP-10-Optimisation-Z3-Rust.ipynb) — le même carnet, porté en Rust.\n", "- **Lectures** : la section « Références » en bas de carnet récapitule les quatre notices — le solveur SMT utilisé ici, la NP-complétude de la couverture et de l'ensemble dominant, et le passage d'une famille de solveurs à l'autre." ] @@ -877,8 +877,8 @@ "end_time": "2026-10-23T20:05:34.928467+00:00", "environment_variables": {}, "exception": null, - "input_path": "CSP-10-Optimisation-Z3.ipynb", - "output_path": "CSP-10-Optimisation-Z3.ipynb", + "input_path": "CSP-10-Optimisation-Z3-Python.ipynb", + "output_path": "CSP-10-Optimisation-Z3-Python.ipynb", "parameters": {}, "start_time": "2026-10-23T20:05:25.556362+00:00", "version": "2.7.0" diff --git a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Rust.ipynb b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Rust.ipynb index af50c618d4b..9dd7ab1695b 100644 --- a/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Rust.ipynb +++ b/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Rust.ipynb @@ -7,7 +7,7 @@ "source": [ "# CSP-10-Optimisation-Z3-Rust : Couverture Minimale avec le Solveur SMT Z3\n", "\n", - "**Navigation** : [<< CSP-9-Distributed](CSP-9-Distributed.ipynb) | [Index CSP](README.md) | [Version C#](CSP-10-Optimisation-Z3-CSharp.ipynb) | [Version Python](CSP-10-Optimisation-Z3.ipynb) | [Partie 3 : Cas pratiques >>](../Part3-Cas-pratiques/README.md)\n", + "**Navigation** : [<< CSP-09-Distributed-Python](CSP-09-Distributed-Python.ipynb) | [Index CSP](README.md) | [Version C#](CSP-10-Optimisation-Z3-CSharp.ipynb) | [Version Python](CSP-10-Optimisation-Z3-Python.ipynb) | [Partie 3 : Cas pratiques >>](../Part3-Cas-pratiques/README.md)\n", "\n", "> **Durée estimée** : 1h30\n", "\n", @@ -28,7 +28,7 @@ "## Prérequis\n", "\n", "- Notebooks CSP-1 à CSP-2 (le paradigme déclaratif : variables, contraintes, solveur)\n", - "- CSP-5-Optimization (optimisation combinatoire sous CP-SAT)\n", + "- CSP-05-Optimization-Python (optimisation combinatoire sous CP-SAT)\n", "- Rust stable sur le noyau `rust` (evcxr) : crate `z3` 0.24.0 ; le rendu de la grille est **textuel** (aucune figure n'est produite dans ce portage)\n", "\n", "> *Ancres savantes -- de Moura, L. & Bjørner, N. (2008), Z3: An Efficient SMT Solver, TACAS 2008, LNCS 4956:357-371 (le solveur SMT utilisé ici, ses théories et son moteur d'optimisation) ; Garey, M.R. & Johnson, D.S. (1979), Computers and Intractability, W.H. Freeman (la couverture d'ensembles, set cover, parmi les 21 problèmes NP-complets fondateurs) ; Bardin, S., Bjørner, N. & Cadar, C. (2019), Bringing CP, SAT and SMT together, Dagstuhl Reports 9(2):27 (le pont entre les trois familles de solveurs que ce notebook franchit).*" @@ -1108,7 +1108,7 @@ "source": [ "## Pour aller plus loin\n", "\n", - "- **Carnets voisins** : [CSP-6-Hybridization.ipynb](CSP-6-Hybridization.ipynb) — la Lazy Clause Generation, d'où le passage CP → SAT → SMT ; [CSP-5-Optimization.ipynb](CSP-5-Optimization.ipynb) — la même famille de problèmes d'optimum, résolue sous CP-SAT.\n", + "- **Carnets voisins** : [CSP-06-Hybridization-Python.ipynb](CSP-06-Hybridization-Python.ipynb) — la Lazy Clause Generation, d'où le passage CP → SAT → SMT ; [CSP-05-Optimization-Python.ipynb](CSP-05-Optimization-Python.ipynb) — la même famille de problèmes d'optimum, résolue sous CP-SAT.\n", "- **Lectures** : la section « Références » en bas de carnet récapitule les quatre notices — le solveur SMT utilisé ici, la NP-complétude de la couverture et de l'ensemble dominant, et le passage d'une famille de solveurs à l'autre.\n" ] } diff --git a/MyIA.AI.Notebooks/Search/Part2-CSP/README.md b/MyIA.AI.Notebooks/Search/Part2-CSP/README.md index 3671de6f664..fe0cd79608b 100644 --- a/MyIA.AI.Notebooks/Search/Part2-CSP/README.md +++ b/MyIA.AI.Notebooks/Search/Part2-CSP/README.md @@ -6,11 +6,11 @@ Au lieu de concevoir un algorithme d'exploration, on peut déclarer ce qu'une so Le fil rouge des deux premières étapes est la coloration de la carte d'Australie. L'étape 1 en pose le **graphe de contraintes** : sept régions, trois couleurs possibles pour chacune, une contrainte de différence par frontière ; la Tasmanie, sans voisine, reste à l'écart du graphe. -[![Graphe de contraintes de la coloration de l'Australie : sept variables aux domaines de trois couleurs, la Tasmanie isolée](assets/readme/csp1-backtracking-tree.png)](CSP-1-Fundamentals.ipynb) +[![Graphe de contraintes de la coloration de l'Australie : sept variables aux domaines de trois couleurs, la Tasmanie isolée](assets/readme/csp1-backtracking-tree.png)](CSP-01-Fundamentals-Python.ipynb) L'étape 2 montre la propagation sur ce même graphe : une fois l'Australie-Occidentale (WA) fixée à Rouge, l'algorithme AC-3 réduit à {Vert, Bleu} les domaines de ses deux voisines, sans essayer aucune valeur. -[![Propagation AC-3 sur la coloration de l'Australie, avant et après : WA fixée à Rouge, domaines de SA et NT réduits à Vert et Bleu](assets/readme/csp2-ac3-propagation.png)](CSP-2-Consistency.ipynb) +[![Propagation AC-3 sur la coloration de l'Australie, avant et après : WA fixée à Rouge, domaines de SA et NT réduits à Vert et Bleu](assets/readme/csp2-ac3-propagation.png)](CSP-02-Consistency-Python.ipynb) La suite monte en puissance : contraintes globales, ordonnancement, optimisation combinatoire, fonctionnement interne d'un solveur moderne, puis trois variantes du modèle — contraintes souples, temporelles, distribuées — et un passage au solveur SMT Z3. Chaque étape existe en deux versions jumelles, l'une en Python, l'autre en C# sous .NET Interactive : même sujet, mêmes problèmes, et de chaque côté, dès que le sujet s'y prête, un solveur reconnu plutôt qu'une réimplémentation simplifiée. L'étape 4 offre en outre un troisième jumeau en Rust (kernel evcxr), qui exécute le même moteur CP-SAT par la crate `cp_sat`. La partie s'adresse à des lecteurs qui connaissent le backtracking de la Partie 1 et lisent l'un des deux langages. @@ -28,16 +28,16 @@ Les numéros donnent un ordre de lecture conseillé, pas une chaîne de dépenda | # | Notebook | Ce qu'on y apprend | Public et prérequis | Pour approfondir | |---|----------|--------------------|---------------------|------------------| -| 1 | Fondamentaux — [Python](CSP-1-Fundamentals.ipynb) · [C#](CSP-1-Fundamentals-CSharp.ipynb) | Écrire un problème comme un triplet (X, D, C), le résoudre par backtracking, puis ordonner la recherche avec deux heuristiques : MRV (choisir la variable la plus contrainte) et LCV (essayer d'abord la valeur la moins contraignante). Sur les 8-Reines, MRV ramène la recherche de 876 à 572 affectations. | Découverte. Le backtracking de la Partie 1 ([Search-2](../Part1-Foundations/Search-02-Uninformed.ipynb)). | [Autour de 1](#autour-de-1) | -| 2 | Consistance et propagation — [Python](CSP-2-Consistency.ipynb) · [C#](CSP-2-Consistency-CSharp.ipynb) | Réduire les domaines par déduction locale : consistance de nœud, AC-3, Forward Checking, maintien de l'arc-consistance (MAC). Sur les 8-Reines, la recherche sans propagation tente 876 affectations, Forward Checking 67, MAC 20. | Découverte. L'étape 1. | [Autour de 2](#autour-de-2) | -| 3 | Contraintes globales — [Python](CSP-3-Advanced.ipynb) · [C#](CSP-3-Advanced-CSharp.ipynb) | Modéliser avec `AllDifferent`, `Cumulative`, `Circuit` et `Table`, que les solveurs propagent par des algorithmes dédiés ; énumérer toutes les solutions, casser les symétries (les 92 solutions des 8-Reines se réduisent à 35), améliorer une solution par recherche à grand voisinage (LNS). | Licence. Les étapes 1 et 2. | [Autour de 3](#autour-de-3) | -| 4 | Ordonnancement — [Python](CSP-4-Scheduling.ipynb) · [C#](CSP-4-Scheduling-CSharp.ipynb) · [Rust](CSP-4-Scheduling-Rust.ipynb) | Poser un atelier (Job-Shop), un projet à ressources limitées (RCPSP) et un planning d'infirmiers avec des variables d'intervalle. Sur l'atelier de trois jobs et trois machines, CP-SAT prouve une durée totale de 11, quand la règle gloutonne « tâche la plus courte d'abord » s'arrête à 18. | Licence. L'étape 3. | [Autour de 4](#autour-de-4) | -| 5 | Optimisation combinatoire — [Python](CSP-5-Optimization.ipynb) · [C#](CSP-5-Optimization-CSharp.ipynb) | Ajouter un objectif : rangement en boîtes (Bin Packing), sac à dos, découpe de barres, portefeuille à nombre d'actifs borné. Comparer une preuve d'optimalité à une heuristique gloutonne, et voir à quelle taille la preuve devient trop chère. | Licence. L'étape 3. | [Autour de 5](#autour-de-5) | -| 6 | Hybridation — [Python](CSP-6-Hybridization.ipynb) · [C#](CSP-6-Hybridization-CSharp.ipynb) | Comprendre pourquoi CP-SAT porte ce nom : la génération paresseuse de clauses (*Lazy Clause Generation*) fait apprendre des clauses SAT à un solveur de contraintes. Puis trois couplages : apprentissage automatique, modèle de langage qui rédige le modèle, recherche parallèle. | Lecture avancée. Les étapes 3 à 5 ; notions de SAT. | [Autour de 6](#autour-de-6) | -| 7 | Contraintes souples — [Python](CSP-7-Soft.ipynb) · [C#](CSP-7-Soft-CSharp.ipynb) | Remplacer « satisfaite ou non » par un degré ou un coût : cadre algébrique des semi-anneaux, CSP flous, pondérés et hiérarchiques ; planning d'infirmiers avec préférences, puis avec un critère d'équité. | Lecture avancée. Les étapes 1 et 2 ; CP-SAT (étape 3) pour les sections qui l'utilisent. | [Autour de 7](#autour-de-7) | -| 8 | Contraintes temporelles — [Python](CSP-8-Temporal.ipynb) · [C#](CSP-8-Temporal-CSharp.ipynb) | Raisonner sur des intervalles de temps : les treize relations d'Allen et leur table de composition, les problèmes temporels simples (STP) résolus par plus courts chemins, leur extension à des créneaux disjoints (TCSP). | Lecture avancée. Les étapes 1 et 2 ; l'algorithme de Floyd-Warshall. | [Autour de 8](#autour-de-8) | -| 9 | Résolution distribuée — [Python](CSP-9-Distributed.ipynb) · [C#](CSP-9-Distributed-CSharp.ipynb) | Résoudre quand aucun agent ne détient le problème entier : backtracking asynchrone (ABT), variante à engagement faible (AWC), protection des contraintes privées. | Lecture avancée. Les étapes 1 et 2 ; échange de messages entre agents. | [Autour de 9](#autour-de-9) | -| 10 | Optimisation SMT avec Z3 — [Python](CSP-10-Optimisation-Z3.ipynb) · [C#](CSP-10-Optimisation-Z3-CSharp.ipynb) · [Rust](CSP-10-Optimisation-Z3-Rust.ipynb) | Formuler une couverture minimale — placer le moins de capteurs possible pour couvrir une grille — pour un solveur SMT, et obtenir une preuve de minimalité là où l'énumération exhaustive devient impraticable. | Licence. Les étapes 1, 2 et 5. | [Autour de 10](#autour-de-10) | +| 1 | Fondamentaux — [Python](CSP-01-Fundamentals-Python.ipynb) · [C#](CSP-01-Fundamentals-CSharp.ipynb) | Écrire un problème comme un triplet (X, D, C), le résoudre par backtracking, puis ordonner la recherche avec deux heuristiques : MRV (choisir la variable la plus contrainte) et LCV (essayer d'abord la valeur la moins contraignante). Sur les 8-Reines, MRV ramène la recherche de 876 à 572 affectations. | Découverte. Le backtracking de la Partie 1 ([Search-2](../Part1-Foundations/Search-02-Uninformed.ipynb)). | [Autour de 1](#autour-de-1) | +| 2 | Consistance et propagation — [Python](CSP-02-Consistency-Python.ipynb) · [C#](CSP-02-Consistency-CSharp.ipynb) | Réduire les domaines par déduction locale : consistance de nœud, AC-3, Forward Checking, maintien de l'arc-consistance (MAC). Sur les 8-Reines, la recherche sans propagation tente 876 affectations, Forward Checking 67, MAC 20. | Découverte. L'étape 1. | [Autour de 2](#autour-de-2) | +| 3 | Contraintes globales — [Python](CSP-03-Advanced-Python.ipynb) · [C#](CSP-03-Advanced-CSharp.ipynb) | Modéliser avec `AllDifferent`, `Cumulative`, `Circuit` et `Table`, que les solveurs propagent par des algorithmes dédiés ; énumérer toutes les solutions, casser les symétries (les 92 solutions des 8-Reines se réduisent à 35), améliorer une solution par recherche à grand voisinage (LNS). | Licence. Les étapes 1 et 2. | [Autour de 3](#autour-de-3) | +| 4 | Ordonnancement — [Python](CSP-04-Scheduling-Python.ipynb) · [C#](CSP-04-Scheduling-CSharp.ipynb) · [Rust](CSP-04-Scheduling-Rust.ipynb) | Poser un atelier (Job-Shop), un projet à ressources limitées (RCPSP) et un planning d'infirmiers avec des variables d'intervalle. Sur l'atelier de trois jobs et trois machines, CP-SAT prouve une durée totale de 11, quand la règle gloutonne « tâche la plus courte d'abord » s'arrête à 18. | Licence. L'étape 3. | [Autour de 4](#autour-de-4) | +| 5 | Optimisation combinatoire — [Python](CSP-05-Optimization-Python.ipynb) · [C#](CSP-05-Optimization-CSharp.ipynb) | Ajouter un objectif : rangement en boîtes (Bin Packing), sac à dos, découpe de barres, portefeuille à nombre d'actifs borné. Comparer une preuve d'optimalité à une heuristique gloutonne, et voir à quelle taille la preuve devient trop chère. | Licence. L'étape 3. | [Autour de 5](#autour-de-5) | +| 6 | Hybridation — [Python](CSP-06-Hybridization-Python.ipynb) · [C#](CSP-06-Hybridization-CSharp.ipynb) | Comprendre pourquoi CP-SAT porte ce nom : la génération paresseuse de clauses (*Lazy Clause Generation*) fait apprendre des clauses SAT à un solveur de contraintes. Puis trois couplages : apprentissage automatique, modèle de langage qui rédige le modèle, recherche parallèle. | Lecture avancée. Les étapes 3 à 5 ; notions de SAT. | [Autour de 6](#autour-de-6) | +| 7 | Contraintes souples — [Python](CSP-07-Soft-Python.ipynb) · [C#](CSP-07-Soft-CSharp.ipynb) | Remplacer « satisfaite ou non » par un degré ou un coût : cadre algébrique des semi-anneaux, CSP flous, pondérés et hiérarchiques ; planning d'infirmiers avec préférences, puis avec un critère d'équité. | Lecture avancée. Les étapes 1 et 2 ; CP-SAT (étape 3) pour les sections qui l'utilisent. | [Autour de 7](#autour-de-7) | +| 8 | Contraintes temporelles — [Python](CSP-08-Temporal-Python.ipynb) · [C#](CSP-08-Temporal-CSharp.ipynb) | Raisonner sur des intervalles de temps : les treize relations d'Allen et leur table de composition, les problèmes temporels simples (STP) résolus par plus courts chemins, leur extension à des créneaux disjoints (TCSP). | Lecture avancée. Les étapes 1 et 2 ; l'algorithme de Floyd-Warshall. | [Autour de 8](#autour-de-8) | +| 9 | Résolution distribuée — [Python](CSP-09-Distributed-Python.ipynb) · [C#](CSP-09-Distributed-CSharp.ipynb) | Résoudre quand aucun agent ne détient le problème entier : backtracking asynchrone (ABT), variante à engagement faible (AWC), protection des contraintes privées. | Lecture avancée. Les étapes 1 et 2 ; échange de messages entre agents. | [Autour de 9](#autour-de-9) | +| 10 | Optimisation SMT avec Z3 — [Python](CSP-10-Optimisation-Z3-Python.ipynb) · [C#](CSP-10-Optimisation-Z3-CSharp.ipynb) · [Rust](CSP-10-Optimisation-Z3-Rust.ipynb) | Formuler une couverture minimale — placer le moins de capteurs possible pour couvrir une grille — pour un solveur SMT, et obtenir une preuve de minimalité là où l'énumération exhaustive devient impraticable. | Licence. Les étapes 1, 2 et 5. | [Autour de 10](#autour-de-10) | ```mermaid flowchart LR @@ -69,7 +69,7 @@ L'étape oppose trois dosages de propagation. Sur les 8-Reines : 876 affectation Une contrainte globale dit en une ligne ce que des dizaines de contraintes binaires diraient moins bien : sur le mini-Sudoku 4×4 du carnet, douze `AllDifferent` remplacent soixante-douze contraintes de différence. `Cumulative` ordonnance quatre tâches sous une capacité de deux, pour une durée totale de 6, sans jamais dépasser deux tâches simultanées : -[![Contrainte globale Cumulative : ordonnancement optimal de quatre tâches sous une capacité de deux, diagramme de Gantt et profil de charge](assets/readme/csp3-global-constraints.png)](CSP-3-Advanced.ipynb) +[![Contrainte globale Cumulative : ordonnancement optimal de quatre tâches sous une capacité de deux, diagramme de Gantt et profil de charge](assets/readme/csp3-global-constraints.png)](CSP-03-Advanced-Python.ipynb) `Circuit` résout une tournée de cinq villes, `Table` restreint les combinaisons permises. Le carnet énumère ensuite les solutions des N-Reines (92 pour huit reines, 724 pour dix), mesure ce qu'élimine le cassage de symétries (de 92 à 35) et termine par une recherche à grand voisinage qui ramène un ordonnancement de 20 à 19, sa borne inférieure. Une annexe reprend les mêmes contraintes avec Choco ; la version C# est entièrement construite sur cette bibliothèque. @@ -77,7 +77,7 @@ Une contrainte globale dit en une ligne ce que des dizaines de contraintes binai Trois jobs s'entrelacent sur trois machines grâce à des variables d'intervalle et à une contrainte de non-chevauchement par machine ; CP-SAT prouve une durée totale de 11. -[![Diagramme de Gantt d'un Job-Shop résolu par CP-SAT : trois jobs entrelacés sur trois machines, durée totale 11](assets/readme/csp4-jobshop-gantt.png)](CSP-4-Scheduling.ipynb) +[![Diagramme de Gantt d'un Job-Shop résolu par CP-SAT : trois jobs entrelacés sur trois machines, durée totale 11](assets/readme/csp4-jobshop-gantt.png)](CSP-04-Scheduling-Python.ipynb) Le projet à ressources limitées, six tâches, se termine en 10 ; le planning d'infirmiers répartit 42 gardes sur une semaine. La comparaison avec la règle « tâche la plus courte d'abord » — 18 contre 11 — mesure ce que vaut une preuve d'optimalité, même sur un petit atelier. @@ -99,7 +99,7 @@ Le carnet ouvre le capot de CP-SAT : génération paresseuse de clauses, effet d - **Modèle de langage.** Un énoncé en langue naturelle devient un modèle CP-SAT : le modèle de langage remplit un schéma JSON par appel d'outil, le solveur résout. L'appel est réel quand un service est configuré (voir [Installation](#installation--pratique-tous-niveaux)) ; sinon un exemple de référence prend le relais. La version C# ajoute un garde-fou : vérifier que la solution respecte les faits de l'énoncé, car un JSON conforme au schéma peut décrire un autre problème que celui posé. - **Recherche parallèle.** Sur un problème de douze reines résolu en quelques millisecondes, passer de un à quatre fils d'exécution n'accélère rien : le coût de coordination l'emporte. -[![Parallélisation de CP-SAT sur les douze reines : temps de résolution et accélération restant sous 1 avec un, deux puis quatre fils d'exécution](assets/readme/csp6-lazy-clause-generation.png)](CSP-6-Hybridization.ipynb) +[![Parallélisation de CP-SAT sur les douze reines : temps de résolution et accélération restant sous 1 avec un, deux puis quatre fils d'exécution](assets/readme/csp6-lazy-clause-generation.png)](CSP-06-Hybridization-Python.ipynb) Cette figure provient d'une exécution antérieure à la sortie actuellement enregistrée dans le carnet : les durées diffèrent, la conclusion — une accélération inférieure à 1 sur une instance aussi petite — est la même. @@ -113,7 +113,7 @@ La version C# aborde le sujet par les outils de Choco — CSP pondérés, coût L'algèbre d'Allen donne le vocabulaire du temps qualitatif : treize relations possibles entre deux intervalles. Le carnet les définit toutes ; la figure n'en trace que cinq (avant, rencontre, chevauche, pendant, égale). -[![Relations d'Allen entre deux intervalles : cinq des treize relations tracées (before, meets, overlaps, during, equals)](assets/readme/csp8-allen-algebra.png)](CSP-8-Temporal.ipynb) +[![Relations d'Allen entre deux intervalles : cinq des treize relations tracées (before, meets, overlaps, during, equals)](assets/readme/csp8-allen-algebra.png)](CSP-08-Temporal-Python.ipynb) La table de composition n'est pas recopiée : elle est engendrée par énumération de triplets d'intervalles, ce qui donne 169 entrées, dont 72 sont des disjonctions. Un contrôle croisé la confronte à cinq entrées écrites à la main ; deux divergent, et le carnet explique pourquoi l'entrée engendrée, appuyée sur des intervalles concrets, désigne l'entrée manuelle comme celle à corriger. diff --git a/MyIA.AI.Notebooks/Search/Part2-CSP/assets/readme/MANIFEST.md b/MyIA.AI.Notebooks/Search/Part2-CSP/assets/readme/MANIFEST.md index 3d390545d43..0af1d5b68bb 100644 --- a/MyIA.AI.Notebooks/Search/Part2-CSP/assets/readme/MANIFEST.md +++ b/MyIA.AI.Notebooks/Search/Part2-CSP/assets/readme/MANIFEST.md @@ -8,7 +8,7 @@ Provenance des images de `assets/readme/` (EPIC #5654, source 1 = extraction d'o ## csp1-backtracking-tree.png -- **Source** : notebook `CSP-1-Fundamentals.ipynb` (cellule 9, output 0) +- **Source** : notebook `CSP-01-Fundamentals-Python.ipynb` (cellule 9, output 0) - **Description visuelle** : Graphe networkx matplotlib (989×693, fond blanc quasi-pur) titré « Graphe de contraintes - Australie ». 7 nœuds cyan pâle uniformes (V, NSW, SA, WA, NT, Q + T isolé) labellés en gras noir, chacun avec son label `|D|=3` adjacent ; arêtes grises non-orientées connectant les variables continentales (WA-NT, WA-SA, NT-SA, NT-Q, SA-NSW, SA-Q, SA-V, NSW-Q, NSW-V) ; Tasmanie positionnée en bas-droite hors du graphe principal (sans voisin). Stats RGB PIL : moyenne (252.31, 252.79, 252.88), std (19.86, 18.30, 18.22) — **fond blanc quasi-pur**, std faible signature de peu de couleurs saturées. Cohérent avec un **graphe de contraintes CSP coloré uniforme** (premier rendu networkx avant coloriage). - **Alt-text (FR)** : Graphe de contraintes de la coloration de l'Australie : sept variables — WA, NT, SA, Q, NSW, V, T (Tasmanie) — chacune avec un domaine de trois couleurs (Rouge, Vert, Bleu), reliées par des contraintes de différence sur les frontières partagées. La Tasmanie, sans voisin, flotte hors du graphe. Le titre de fichier historique `csp1-backtracking-tree` renvoie à la section du notebook qui produit ce tracé (introduction du backtracking MRV avant l'exemple de coloration). - **Contenu réel vérifié (c.472)** : Graphe titré « Graphe de contraintes - Australie » avec exactement 7 noeuds (V, NSW, SA, WA, NT, Q, T) connectés comme décrit ; chaque noeud porte un label `|D|=3` (T isolé, sans voisin, est positionné en bas-droite hors du graphe principal). Couleur uniforme cyan pâle. Arêtes grises non-orientées. **Alt-text cohérent avec l'image.** @@ -17,7 +17,7 @@ Provenance des images de `assets/readme/` (EPIC #5654, source 1 = extraction d'o ## csp2-ac3-propagation.png -- **Source** : notebook `CSP-2-Consistency.ipynb` (cellule 20, output 0) +- **Source** : notebook `CSP-02-Consistency-Python.ipynb` (cellule 20, output 0) - **Description visuelle** : Figure networkx matplotlib 2 panneaux côte à côte (1200×533, fond blanc) titrée « Propagation AC-3 sur la coloration de l'Australie ». **Gauche « Avant AC-3 (WA=Rouge fixé) »** : 7 nœuds, WA en vert singleton (`{Rouge}`), tous les autres nœuds en cyan pâle domaine complet `{Rouge, Vert, Bleu}`. **Droite « Après AC-3 »** : WA reste vert singleton, SA et NT passent en jaune domaine réduit `{Vert, Bleu}` (effet de l'arc-cohérence qui déduit après fixation de WA), NSW/Q/V/T restent cyan complets. Légende horizontale en bas : « Singleton (assigné) » vert / « Domaine reduit » jaune / « Domaine complet » cyan pâle. Stats RGB PIL : moyenne (250.32, 250.85, 249.91), std (24.87, 23.31, 27.54) — std modéré signature du code couleur 3-états (vert/jaune/cyan) sur fond blanc. Cohérent avec une **démonstration AC-3** où l'arc-cohérence réduit les domaines de SA et NT par déduction unaire, pas par propagation lointaine. - **Alt-text (FR)** : Propagation de contraintes AC-3 sur le graphe de la coloration de l'Australie, avant / après fixation de WA = Rouge : à gauche les domaines complets (trois couleurs par variable), à droite les domaines réduits après l'arc-cohérence (WA singleton Rouge, SA et NT ramenés à {Vert, Bleu} par déduction, les autres variables intactes). - **Contenu réel vérifié (c.472)** : Figure titrée « Propagation AC-3 sur la coloration de l'Australie » en deux panneaux « Avant AC-3 (WA=Rouge fixé) » / « Après AC-3 ». 7 noeuds dans chaque panneau ; sur le panneau gauche tous les domaines sont `{Rouge, Vert, Bleu}` (cyan pâle = domaine complet) ; sur le panneau droit WA est passé en vert singleton (`{Rouge}`), SA et NT en jaune (`{Vert, Bleu}` = domaine réduit), NSW, Q, V, T restent cyan (domaine complet). Légende en bas = « Singleton (assigné) » / « Domaine réduit » / « Domaine complet ». **Alt-text cohérent avec l'image.** @@ -25,7 +25,7 @@ Provenance des images de `assets/readme/` (EPIC #5654, source 1 = extraction d'o ## csp3-global-constraints.png -- **Source** : notebook `CSP-3-Advanced.ipynb` (cellule 10, output 0) +- **Source** : notebook `CSP-03-Advanced-Python.ipynb` (cellule 10, output 0) - **Description visuelle** : Figure matplotlib 2 panneaux empilés (1189×589, fond blanc) titrée « Ordonnancement optimal - 4 taches, 2 machines » (haut) + « Profil de charge des ressources » (bas). **Haut : diagramme de Gantt** — 4 barres horizontales colorées saturées sur l'axe Temps [0, 6] : A[0-3] bleu, B[3-5] vert, C[0-4] orange, D[4-6] rose-rouge (axe Y = nom de tâche). **Bas : profil de charge** — barres verticales bleu clair (charge 1 ou 2) avec ligne pointillée rouge horizontale « Capacite = 2 » en haut. Profil : charge=2 sur [0, 4], charge=1 sur [4, 6]. Stats RGB PIL : moyenne (225.16, 226.90, 227.27), std (65.33, 58.04, 71.49) — **std élevé sur les 3 canaux** signature des couleurs saturées 4-tâches en Gantt + barres bleu clair profil + ligne rouge pointillée. Cohérent avec une **résolution CP-SAT d'un job-shop cumulatif** (contrainte `Cumulative` capacity=2, makespan=6). - **Alt-text (FR)** : Contrainte globale Cumulative d'OR-Tools CP-SAT : ordonnancement optimal de quatre tâches (A[0-3], B[3-5], C[0-4], D[4-6]) sur deux machines de capacité 2 — diagramme de Gantt en haut, profil de charge en bas qui sature la capacité 2 presque partout (un seul créneau de capacité 1 visible). - **Contenu réel vérifié (c.472)** : Figure composite en deux sous-graphiques. Haut : diagramme de Gantt titré « Ordonnancement optimal - 4 taches, 2 machines » avec 4 barres horizontales (A[0-3] bleu, B[3-5] vert, C[0-4] orange, D[4-6] rouge) — A et C simultanées sur deux machines distinctes de t=0 à t=4, puis B sur machine 0 t=3-5 et D sur machine 1 t=4-6. Bas : « Profil de charge des ressources » — barres verticales de charge (1 ou 2) au-dessus de l'axe Temps, ligne pointillée rouge horizontale « Capacite = 2 ». Profil : charge=2 sur [0,4], charge=1 sur [4,5], charge=1 sur [5,6]. **Alt-text cohérent avec l'image** (le « seul créneau de capacité 1 » mentionné correspond exactement au segment t∈[4,6] du profil de charge). @@ -34,7 +34,7 @@ Provenance des images de `assets/readme/` (EPIC #5654, source 1 = extraction d'o ## csp4-jobshop-gantt.png -- **Source** : notebook `CSP-4-Scheduling.ipynb` (cellule 7, output 0) +- **Source** : notebook `CSP-04-Scheduling-Python.ipynb` (cellule 7, output 0) - **Description visuelle** : Diagramme de Gantt matplotlib (1189×540, fond blanc) titré « Diagramme de Gantt - JSSP », axe Y = Machine 0 / Machine 1 / Machine 2 (3 lignes horizontales), axe X = Temps [0, 11]. **9 barres horizontales colorées** (3 jobs × 3 opérations) entrelacées sur les 3 machines : job 0 bleu foncé (J0T0, J0T1, J0T2), job 1 brun-rouge (J1T0, J1T1, J1T2), job 2 cyan (J2T0, J2T1, J2T2). Légende interne haut-droite. Stats RGB PIL : moyenne (182.25, 205.98, 213.78), std **(98.39, 69.20, 64.94)** — **std énorme** signature de 9 barres colorées saturées occupant une fraction importante du PNG. Cohérent avec un **ordonnancement JSSP 3×3 résolu par CP-SAT** (makespan=11, optimal, via `IntervalVar`+`NoOverlap`). - **Alt-text (FR)** : Diagramme de Gantt d'un ordonnancement Job-Shop (JSSP) résolu par CP-SAT : trois jobs (trois opérations chacun) entrelacés sur trois machines via `IntervalVar` et `NoOverlap`. Makespan optimal = 11, fin de la dernière opération à t=11. - **Contenu réel vérifié (c.472)** : Diagramme de Gantt titré « Diagramme de Gantt - JSSP », axe Y = Machine 0 / Machine 1 / Machine 2, axe X = Temps [0, 11]. 3 jobs (job 0 bleu foncé, job 1 brun-rouge, job 2 cyan) chacun avec 3 opérations (J0T0/J0T1/J0T2, J1T0/J1T1/J1T2, J2T0/J2T1/J2T2). Machine 0 : J0T0 [0,3] + J1T0 [3,5]. Machine 1 : J2T0 [0,6] + J0T1 [6,10] + J1T2 [10,11]. Machine 2 : J1T1 [5,8] + J2T1 [8,10] + J0T2 [10,11]. Makespan = 11 visible en fin de la dernière opération. **Alt-text cohérent avec l'image.** @@ -42,7 +42,7 @@ Provenance des images de `assets/readme/` (EPIC #5654, source 1 = extraction d'o ## csp6-lazy-clause-generation.png -- **Source** : notebook `CSP-6-Hybridization.ipynb` (cellule 20, output 0) +- **Source** : notebook `CSP-06-Hybridization-Python.ipynb` (cellule 20, output 0) - **Description visuelle** : Figure matplotlib 2 panneaux côte à côte (1189×390, fond blanc). **Gauche « Temps de résolution »** — bar chart bleu (axe Y = Temps (s) ∈ [0, 0.006+], axe X = Nombre de workers ∈ {1, 2, 4}) avec 3 barres bleues saturées ≈ 0.0046 / 0.0056 / 0.0066 s (croissance monotone, surcoût léger à 4 workers). **Droite « Speedup vs Workers »** — courbe verte pleine décroissante de (1, 1.0) vers (2, ~0.85) puis (4, ~0.70), tous sous 1×, marqueurs ronds verts ; ligne pointillée grise « Accélération idéale » linéaire (référence théorique au-dessus). Légende interne haut-gauche. Stats RGB PIL : moyenne (208.87, 222.49, 232.95), std (80.89, 58.09, 43.86) — **R > G > B avec R élevé** signature des barres bleues saturées (tirent B vers le haut) + courbe verte (contribue à G) + fond blanc. Cohérent avec un **benchmark N-Queens 12 multi-workers CP-SAT** où le surcoût de coordination l'emporte sur le gain (speedup réel < 1× — cas pédagogique de coordination-dominant). - **Alt-text (FR)** : Benchmark de parallélisation CP-SAT sur N-Queens 12 : deux graphiques — temps de résolution (en secondes) pour 1, 2 puis 4 workers (≈ 4.7 / 5.6 / 6.5 ms, croissance légère), et speedup effectif vs workers (courbe verte décroissante sous 1×, idéal linéaire en pointillé). Sur cette instance le surcoût de coordination l'emporte et le speedup réel reste sous 1×. - **Contenu réel vérifié (c.472)** : Figure composite à 2 sous-graphiques juxtaposés. Gauche : « Temps de résolution » — bar chart bleu (axe Y = Temps (s) ∈ [0, 0.006+], axe X = Nombre de workers ∈ {1, 2, 4}) avec 3 barres ≈ 0.0046 / 0.0056 / 0.0066 s (croissance monotone, léger surcoût à 4 workers). Droite : « Speedup vs Workers » — courbe verte pleine décroissante partant de (1, 1.0) vers (2, ~0.85) puis (4, ~0.70), tous sous 1×, avec ligne pointillée grise « Accélération idéale » linéaire (référence théorique). **Alt-text cohérent avec l'image** (les valeurs exactes 4.7 / 5.6 / 6.5 ms annoncées correspondent visuellement aux barres ; speedup < 1× sur les 3 points, conformément à la description). @@ -51,7 +51,7 @@ Provenance des images de `assets/readme/` (EPIC #5654, source 1 = extraction d'o ## csp8-allen-algebra.png -- **Source** : notebook `CSP-8-Temporal.ipynb` (cellule 6, output 0) +- **Source** : notebook `CSP-08-Temporal-Python.ipynb` (cellule 6, output 0) - **Description visuelle** : Figure matplotlib grille de vignettes (1200×850, fond blanc quasi-pur) titrée « Allen's Interval Algebra - 13 Relations ». Grille 4×4 de vignettes labellisées (rangée 1: before/meets/overlaps/starts, rangée 2: during/finishes/equals/finished_by, rangée 3: contains/started_by/overlapped_by/met_by, rangée 4: after/[vide]/[vide]/[vide]). **Barres effectivement tracées dans 5 vignettes uniquement** : `before` (2 barres disjointes, orange+bleu), `meets` (2 barres contiguës, orange touche bleu), `overlaps` (2 barres qui se chevauchent partiellement), `during` (1 barre englobante + 1 englobée, couleurs inversées), `equals` (2 barres superposées avec contours colorés). **8 autres vignettes vides** (aucun tracé). Stats RGB PIL : moyenne (252.02, 251.53, 251.67), std (22.74, 21.43, 21.72) — **fond blanc quasi-pur** dominant, std faible signature du peu de pixels colorés (5/13 vignettes seulement). Cohérent avec un **rendu partiel de l'algèbre d'Allen** (limitation illustrative assumée héritée de l'audit c.472 po-2025). - **Alt-text (FR)** : Algèbre d'intervalles d'Allen : rendu partiel des 13 relations temporelles de base entre deux intervalles — seulement 5 vignettes correctement tracées (before, meets, overlaps, during, equals) sur les 13 attendues. Le tracé des huit autres vignettes (after, started-by, contains, finishes, finished-by, started-by, overlaps-with-inverse, met-by) est défaillant dans la sortie actuelle du notebook ; limitation illustrative assumée, en attente de correction du tracé et de ré-exécution. - **Contenu réel vérifié (c.472)** : Figure titrée « Allen's Interval Algebra - 13 Relations » avec grille de vignettes labellisées : rangée 1 (before, meets, overlaps, starts), rangée 2 (during, finishes, equals, finished_by), rangée 3 (contains, started_by, overlapped_by, met_by), rangée 4 (after, [vide], [vide], [vide]). Barres effectivement tracées dans **5 vignettes uniquement** : `before` (2 barres disjointes), `meets` (2 barres contiguës), `overlaps` (2 barres qui se chevauchent partiellement), `during` (1 barre englobante + 1 englobée), `equals` (2 barres superposées). Les 8 autres vignettes (starts, finished_by, contains, started_by, overlapped_by, met_by, after, plus 3 cellules vides de la dernière rangée) sont **vides** (aucune barre tracée). **Alt-text cohérent avec l'image** — limitation disclosed honnêtement : seulement 5/13 vignettes rendues. diff --git a/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-01-NQueens-CSharp.ipynb b/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-01-NQueens-CSharp.ipynb index a15cab18262..06036ca5b47 100644 --- a/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-01-NQueens-CSharp.ipynb +++ b/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-01-NQueens-CSharp.ipynb @@ -35,7 +35,7 @@ "\n", "Le twin Python **appelle** un solveur ; ce twin **déroule** les algorithmes. Les deux se complètent : on voit ici *ce que fait* CP-SAT sous le capot (propagation, énumération, brisure de symétrie).\n", "\n", - "**Durée estimée : 35 min.** Prérequis : [`Search-1`](../Part1-Foundations/Search-01-StateSpace-CSharp.ipynb), [`CSP-1`](../Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb) (CSP).\n" + "**Durée estimée : 35 min.** Prérequis : [`Search-1`](../Part1-Foundations/Search-01-StateSpace-CSharp.ipynb), [`CSP-1`](../Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb) (CSP).\n" ] }, { @@ -1722,7 +1722,7 @@ "- **Min-Conflicts** = la recherche locale qui passe à l'échelle (le « miracle » N = 1000) ;\n", "- **Énumération + brisure de symétrie D4** = le comptage exact des solutions fondamentales (12 pour N = 8).\n", "\n", - "**Lien avec les Foundations** : backtracking ⇄ [`Search-1`](../Part1-Foundations/Search-01-StateSpace-CSharp.ipynb) (DFS), CSP ⇄ [`CSP-1`](../Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb), Min-Conflicts ⇄ [`Search-11`](../Part1-Foundations/Search-11-Metaheuristics-CSharp.ipynb) (métaheuristiques), CP-SAT ⇄ [`App-01-NQueens-Python`](App-01-NQueens-Python.ipynb) (twin Python, solveur industriel).\n", + "**Lien avec les Foundations** : backtracking ⇄ [`Search-1`](../Part1-Foundations/Search-01-StateSpace-CSharp.ipynb) (DFS), CSP ⇄ [`CSP-1`](../Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb), Min-Conflicts ⇄ [`Search-11`](../Part1-Foundations/Search-11-Metaheuristics-CSharp.ipynb) (métaheuristiques), CP-SAT ⇄ [`App-01-NQueens-Python`](App-01-NQueens-Python.ipynb) (twin Python, solveur industriel).\n", "\n", "Les chiffres clés de ce twin, lus dans les sorties commitées : `113 -> 52 -> 51` nœuds à N = 8 (simple / MRV / FC), `92` solutions dont `12` fondamentales, N = 1000 en `735` itérations (Min-Conflicts), et `92 solutions trouvées en 68,4 ms` côté CP-SAT.\n" ] diff --git a/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-01-NQueens-Python.ipynb b/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-01-NQueens-Python.ipynb index 967c060f8b4..e3dfb47572e 100644 --- a/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-01-NQueens-Python.ipynb +++ b/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-01-NQueens-Python.ipynb @@ -56,7 +56,7 @@ "\n", "### Prerequis\n", "- Python 3.10+, matplotlib, numpy, ortools\n", - "- [CSP-1 : Fundamentals](../Part2-CSP/CSP-1-Fundamentals.ipynb) -- backtracking, MRV, formalisme CSP\n", + "- [CSP-1 : Fundamentals](../Part2-CSP/CSP-01-Fundamentals-Python.ipynb) -- backtracking, MRV, formalisme CSP\n", "\n", "### Duree estimee : 30 minutes" ] @@ -1907,9 +1907,9 @@ "\n", "| Concept applique | Notebook de reference |\n", "|-----------------|----------------------|\n", - "| Backtracking CSP, MRV, LCV | [CSP-1 : Fundamentals](../Part2-CSP/CSP-1-Fundamentals.ipynb) |\n", - "| Forward Checking, Arc Consistency | [CSP-2 : Consistency](../Part2-CSP/CSP-2-Consistency.ipynb) |\n", - "| CP-SAT, contraintes globales | [CSP-3 : Advanced](../Part2-CSP/CSP-3-Advanced.ipynb) |" + "| Backtracking CSP, MRV, LCV | [CSP-1 : Fundamentals](../Part2-CSP/CSP-01-Fundamentals-Python.ipynb) |\n", + "| Forward Checking, Arc Consistency | [CSP-2 : Consistency](../Part2-CSP/CSP-02-Consistency-Python.ipynb) |\n", + "| CP-SAT, contraintes globales | [CSP-3 : Advanced](../Part2-CSP/CSP-03-Advanced-Python.ipynb) |" ] }, { @@ -3836,8 +3836,8 @@ "**Carnets voisins.**\n", "\n", "- [App-2 : Graph Coloring](App-02-GraphColoring-Python.ipynb) -- un autre problème CSP classique avec applications cartographiques\n", - "- [CSP-2 : Consistency](../Part2-CSP/CSP-2-Consistency.ipynb) -- propagation de contraintes (AC-3, MAC)\n", - "- [CSP-3 : Advanced](../Part2-CSP/CSP-3-Advanced.ipynb) -- contraintes globales, Large Neighborhood Search\n", + "- [CSP-2 : Consistency](../Part2-CSP/CSP-02-Consistency-Python.ipynb) -- propagation de contraintes (AC-3, MAC)\n", + "- [CSP-3 : Advanced](../Part2-CSP/CSP-03-Advanced-Python.ipynb) -- contraintes globales, Large Neighborhood Search\n", "- [App-1-NQueens-CSharp](App-01-NQueens-CSharp.ipynb) -- le jumeau C#, qui déroule les mêmes algorithmes à la main avant de brancher CP-SAT.\n" ] }, diff --git a/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-02-GraphColoring-CSharp.ipynb b/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-02-GraphColoring-CSharp.ipynb index 82a12ea4e60..3eb3e8a99f7 100644 --- a/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-02-GraphColoring-CSharp.ipynb +++ b/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-02-GraphColoring-CSharp.ipynb @@ -28,7 +28,7 @@ "\n", "Le twin Python **appelle** networkx (graphes) et CP-SAT (optimum) ; ce twin **déroule** les heuristiques et le branch-and-bound. ★ **Amélioration pédagogique** : utilisation de **graphes canoniques à χ connu** (Petersen=3, K4=4, Mycielski-4 triangle-free χ=4) plutôt qu'un graphe ad hoc — on peut **vérifier** que chaque heuristique atteint (ou non) l'optimum.\n", "\n", - "**Durée estimée : 40 min.** Prérequis : [`CSP-1`](../Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb) (CSP).\n" + "**Durée estimée : 40 min.** Prérequis : [`CSP-1`](../Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb) (CSP).\n" ] }, { @@ -1258,7 +1258,7 @@ "\n", "★ **Leçon paradoxe** : les graphes de **Mycielski** (triangle-free, χ arbitrairement grand) montrent que la complexité chromatique **ne se réduit pas** à la densité de triangles — un résultat fondamental que la sortie du notebook rend tangible.\n", "\n", - "**Lien avec les Foundations** : CSP ⇄ [`CSP-1`](../Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb), backtracking ⇄ [`Search-1`](../Part1-Foundations/Search-01-StateSpace-CSharp.ipynb), CP-SAT ⇄ [`App-02-GraphColoring-Python`](App-02-GraphColoring-Python.ipynb) (twin Python, solveur industriel).\n", + "**Lien avec les Foundations** : CSP ⇄ [`CSP-1`](../Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb), backtracking ⇄ [`Search-1`](../Part1-Foundations/Search-01-StateSpace-CSharp.ipynb), CP-SAT ⇄ [`App-02-GraphColoring-Python`](App-02-GraphColoring-Python.ipynb) (twin Python, solveur industriel).\n", "\n" ] }, diff --git a/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-02-GraphColoring-Python.ipynb b/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-02-GraphColoring-Python.ipynb index 8509ccaa8e9..3877ffeae4d 100644 --- a/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-02-GraphColoring-Python.ipynb +++ b/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-02-GraphColoring-Python.ipynb @@ -58,7 +58,7 @@ "\n", "### Prérequis\n", "- Python 3.10+, notions de graphes (sommets, aretes, adjacence)\n", - "- [CSP-1 : Fundamentals](../Part2-CSP/CSP-1-Fundamentals.ipynb) et [CSP-2 : Consistency](../Part2-CSP/CSP-2-Consistency.ipynb)\n", + "- [CSP-1 : Fundamentals](../Part2-CSP/CSP-01-Fundamentals-Python.ipynb) et [CSP-2 : Consistency](../Part2-CSP/CSP-02-Consistency-Python.ipynb)\n", "\n", "### Durée estimee : 45 minutes" ] diff --git a/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-04-JobShopScheduling-Python.ipynb b/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-04-JobShopScheduling-Python.ipynb index 041861510c5..b886268f8cb 100644 --- a/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-04-JobShopScheduling-Python.ipynb +++ b/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-04-JobShopScheduling-Python.ipynb @@ -35,7 +35,7 @@ "\n", "### Prerequis\n", "- [Search-4 : Local Search](../Part1-Foundations/Search-04-LocalSearch.ipynb) (métaheuristiques)\n", - "- [CSP-3 : Advanced](../Part2-CSP/CSP-3-Advanced.ipynb) (contraintes globales, OR-Tools)\n", + "- [CSP-3 : Advanced](../Part2-CSP/CSP-03-Advanced-Python.ipynb) (contraintes globales, OR-Tools)\n", "- Python : numpy, matplotlib\n", "\n", "### Duree estimee : 60 minutes\n", @@ -3102,7 +3102,7 @@ "| **Timetabling** | Variante du JSSP avec contraintes de salle et de professeur | [App-5 Timetabling](App-05-Timetabling-Python.ipynb) |\n", "| **Nurse Scheduling** | Ordonnancement de personnel (contraintes soft/hard) | [App-3 NurseScheduling](App-03-NurseScheduling-Python.ipynb) |\n", "| **MiniZinc** | Langage de modelisation declaratif pour l'ordonnancement | [App-8 MiniZinc](App-08-MiniZinc-Python.ipynb) |\n", - "| **LNS** | Large Neighborhood Search pour les grandes instances | [CSP-3 : Advanced](../Part2-CSP/CSP-3-Advanced.ipynb) |\n", + "| **LNS** | Large Neighborhood Search pour les grandes instances | [CSP-3 : Advanced](../Part2-CSP/CSP-03-Advanced-Python.ipynb) |\n", "\n", "### References\n", "\n", diff --git a/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-05-Timetabling-CSharp.ipynb b/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-05-Timetabling-CSharp.ipynb index e03cd319a69..b36a625db1b 100644 --- a/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-05-Timetabling-CSharp.ipynb +++ b/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-05-Timetabling-CSharp.ipynb @@ -22,7 +22,7 @@ "\n", "### Prérequis\n", "- .NET 9.0 + .NET Interactive\n", - "- [CSP-3 : Advanced](../Part2-CSP/CSP-3-Advanced.ipynb)\n", + "- [CSP-3 : Advanced](../Part2-CSP/CSP-03-Advanced-Python.ipynb)\n", "\n", "### Durée estimee : 35 minutes\n", "\n", @@ -401,7 +401,7 @@ "2. **Pour chaque cours**, parcourir les creneaux et salles dans l'ordre, et affecter au premier creneau+salle disponible (sans conflit salle ni enseignant)\n", "3. **Pas de backtracking** : si echec, le cours reste non place\n", "\n", - "C'est la version séquentielle de l'algorithme MRV déjà vu dans [App-01-NQueens-CSharp](App-01-NQueens-CSharp.ipynb) et [CSP-3-Advanced](../Part2-CSP/CSP-3-Advanced.ipynb)." + "C'est la version séquentielle de l'algorithme MRV déjà vu dans [App-01-NQueens-CSharp](App-01-NQueens-CSharp.ipynb) et [CSP-03-Advanced-Python](../Part2-CSP/CSP-03-Advanced-Python.ipynb)." ] }, { @@ -1619,7 +1619,7 @@ "### References\n", "\n", "- [App-01-NQueens-CSharp](App-01-NQueens-CSharp.ipynb) — backtracking + MRV\n", - "- [CSP-3-Advanced](../Part2-CSP/CSP-3-Advanced.ipynb) — propagation de contraintes\n", + "- [CSP-03-Advanced-Python](../Part2-CSP/CSP-03-Advanced-Python.ipynb) — propagation de contraintes\n", "- [App-04-JobShopScheduling-Python.ipynb](App-04-JobShopScheduling-Python.ipynb) — jumeau Python avec OR-Tools\n", "- [App-04-JobShopScheduling-CSharp.ipynb](App-04-JobShopScheduling-CSharp.ipynb) — jumeau C# App-4 (dispatching + B&B)\n", "- [EPIC #3801 — SOTA ledger](../README.md)\n", diff --git a/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-05-Timetabling-Python.ipynb b/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-05-Timetabling-Python.ipynb index fedcd75d3c9..912edc9abe7 100644 --- a/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-05-Timetabling-Python.ipynb +++ b/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-05-Timetabling-Python.ipynb @@ -57,7 +57,7 @@ "\n", "### Prérequis\n", "- Python 3.10+, numpy, matplotlib, ortools\n", - "- [CSP-3 : Advanced](../Part2-CSP/CSP-3-Advanced.ipynb)\n", + "- [CSP-3 : Advanced](../Part2-CSP/CSP-03-Advanced-Python.ipynb)\n", "\n", "### Durée estimee : 50 minutes" ] diff --git a/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-08-MiniZinc-Python.ipynb b/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-08-MiniZinc-Python.ipynb index 5aa4cf7b7c7..81f5bfa9b03 100644 --- a/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-08-MiniZinc-Python.ipynb +++ b/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-08-MiniZinc-Python.ipynb @@ -28,7 +28,7 @@ "5. **Piloter** MiniZinc depuis Python (package `minizinc` ou ligne de commande)\n", "\n", "### Prerequis\n", - "- Programmation par contraintes avancee ([CSP-3 : Advanced](../Part2-CSP/CSP-3-Advanced.ipynb))\n", + "- Programmation par contraintes avancee ([CSP-3 : Advanced](../Part2-CSP/CSP-03-Advanced-Python.ipynb))\n", "- Notions de contraintes globales (AllDifferent, cumulative)\n", "- Python 3.10+\n", "\n", diff --git a/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-11-Picross-CSharp.ipynb b/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-11-Picross-CSharp.ipynb index 3f580a87a45..8099841308e 100644 --- a/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-11-Picross-CSharp.ipynb +++ b/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-11-Picross-CSharp.ipynb @@ -28,7 +28,7 @@ "\n", "Le twin Python **appelle** CP-SAT et constate un speedup de plusieurs millions ; ce twin **déroule** l'algorithme de propagation qui produit ce speedup, rendant la mécanique explicite.\n", "\n", - "**Durée estimée : 40 min.** Prérequis : [`CSP-1`](../Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb) (CSP).\n" + "**Durée estimée : 40 min.** Prérequis : [`CSP-1`](../Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb) (CSP).\n" ] }, { @@ -1178,7 +1178,7 @@ "\n", "★ **Leçon** : la propagation de contraintes (déduction locale itérée) transforme un problème exponentiel en problème polynomial — c'est exactement ce que CP-SAT industrialise, et dont le « speedup spectaculaire » du twin Python n'est que la manifestation mesurée.\n", "\n", - "**Lien avec les Foundations** : CSP ⇄ [`CSP-1`](../Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb), propagation ⇄ [`CSP-1` §consistance arc](../Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb), CP-SAT ⇄ [`App-11-Picross-Python`](App-11-Picross-Python.ipynb) (twin Python, solveur industriel).\n", + "**Lien avec les Foundations** : CSP ⇄ [`CSP-1`](../Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb), propagation ⇄ [`CSP-1` §consistance arc](../Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb), CP-SAT ⇄ [`App-11-Picross-Python`](App-11-Picross-Python.ipynb) (twin Python, solveur industriel).\n", "\n", "***\n", "*Marathon .NET ⇄ Python #4956 — Search/Part3-Cas-pratiques, tranche Picross / nonogrammes. See #4956, #3801.*\n" diff --git a/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-16-Crossword-CSP-Python.ipynb b/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-16-Crossword-CSP-Python.ipynb index 547a9734c9d..331354f74b6 100644 --- a/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-16-Crossword-CSP-Python.ipynb +++ b/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-16-Crossword-CSP-Python.ipynb @@ -47,8 +47,8 @@ "\n", "### Prerequis\n", "\n", - "- **Notebooks precedents** : [App-15 SportsScheduling](App-15-SportsScheduling-Python.ipynb) (autre CSP), [Part2-CSP](../Part2-CSP/) (bases CSP), [CSP-3-Advanced](../Part2-CSP/CSP-3-Advanced.ipynb) (heuristiques MRV, LCV)\n", - "- **Notebooks jumeaux** : [CSP-8-Temporal-CSharp.ipynb](../Part2-CSP/CSP-8-Temporal-CSharp.ipynb) (meme theme en .NET C#)\n", + "- **Notebooks precedents** : [App-15 SportsScheduling](App-15-SportsScheduling-Python.ipynb) (autre CSP), [Part2-CSP](../Part2-CSP/) (bases CSP), [CSP-03-Advanced-Python](../Part2-CSP/CSP-03-Advanced-Python.ipynb) (heuristiques MRV, LCV)\n", + "- **Notebooks jumeaux** : [CSP-08-Temporal-CSharp.ipynb](../Part2-CSP/CSP-08-Temporal-CSharp.ipynb) (meme theme en .NET C#)\n", "- **Concepts** : `arc-consistency`, `MRV heuristic`, `forward checking`, `constraint propagation`\n", "- **Bibliotheques** : `ortools` (Google OR-Tools), `matplotlib`, `numpy`, `dataclasses`\n", "\n", @@ -2243,7 +2243,7 @@ "### Pour aller plus loin\n", "\n", "- **EPIC implicite** : integration des techniques CSP avec l'apprentissage par renforcement (RL + CSP)\n", - "- **Notebook jumeau** : [CSP-8-Temporal-CSharp.ipynb](../Part2-CSP/CSP-8-Temporal-CSharp.ipynb) pour la version .NET C#\n", + "- **Notebook jumeau** : [CSP-08-Temporal-CSharp.ipynb](../Part2-CSP/CSP-08-Temporal-CSharp.ipynb) pour la version .NET C#\n", "- **Recherche actuelle** : \"Learning to Search\" (NeuroCSP) combine reseaux de neurones et recherche arborescente\n", "\n", "**Suite** : [App-15 - Planification sportive](App-15-SportsScheduling-Python.ipynb) | [Retour au sommaire](../README.md)\n" diff --git a/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-21-VoiceLeading-CSharp.ipynb b/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-21-VoiceLeading-CSharp.ipynb index 947f737c035..07774a51e69 100644 --- a/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-21-VoiceLeading-CSharp.ipynb +++ b/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-21-VoiceLeading-CSharp.ipynb @@ -1614,7 +1614,7 @@ "\n", "Les références bibliographiques et la description des projets sont reprises du notebook Python versionné ; elles ne résultent pas d'une nouvelle lecture des sources primaires pour ce compagnon.\n", "\n", - "[Kuhn (1955)](https://doi.org/10.1002/nav.3800020109), Munkres (1957), Tymoczko, *A Geometry of Music* (2011) ; [App-22 — sélection d'algorithmes](App-22-AlgorithmSelection-Python.ipynb) ; [CSP-3](../Part2-CSP/CSP-3-Advanced.ipynb)." + "[Kuhn (1955)](https://doi.org/10.1002/nav.3800020109), Munkres (1957), Tymoczko, *A Geometry of Music* (2011) ; [App-22 — sélection d'algorithmes](App-22-AlgorithmSelection-Python.ipynb) ; [CSP-3](../Part2-CSP/CSP-03-Advanced-Python.ipynb)." ] } ], diff --git a/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-21-VoiceLeading-Python.ipynb b/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-21-VoiceLeading-Python.ipynb index 39dd32e451b..f1de3a63c83 100644 --- a/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-21-VoiceLeading-Python.ipynb +++ b/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-21-VoiceLeading-Python.ipynb @@ -1766,7 +1766,7 @@ "\n", "- **Carnet suivant** : [App-22-AlgorithmSelection-Python](App-22-AlgorithmSelection-Python.ipynb) — le même arbitrage exactitude/coût, mais appliqué au choix d'algorithme sur des résultats empiriques.\n", "- **Même exigence de preuve, autre formalisme** : [App-23-PRESENT-Differential-Cryptanalysis-SAT](App-23-PRESENT-Differential-Cryptanalysis-SAT-Python.ipynb) — l'affectation devient une **frontière SAT/UNSAT** : ce qui se prouvait par un coût se prouve ici par une formule.\n", - "- **Le solveur de contraintes** : [CSP-3-Advanced](../Part2-CSP/CSP-3-Advanced.ipynb) — l'encodage CP-SAT de la section 7, en version générale.\n", + "- **Le solveur de contraintes** : [CSP-03-Advanced-Python](../Part2-CSP/CSP-03-Advanced-Python.ipynb) — l'encodage CP-SAT de la section 7, en version générale.\n", "- **Lecture** : Kuhn (1955), « The Hungarian Method for the Assignment Problem », *Naval Research Logistics Quarterly* ; Munkres (1957), « Algorithms for the Assignment and Transportation Problems », *J. SIAM* 5(1) ; Tymoczko, *A Geometry of Music* (Oxford University Press, 2011), chapitre 4.\n" ] } diff --git a/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-23-PRESENT-Differential-Cryptanalysis-SAT-Python.ipynb b/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-23-PRESENT-Differential-Cryptanalysis-SAT-Python.ipynb index 25b7e07dae2..68053de03ca 100644 --- a/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-23-PRESENT-Differential-Cryptanalysis-SAT-Python.ipynb +++ b/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-23-PRESENT-Differential-Cryptanalysis-SAT-Python.ipynb @@ -1054,7 +1054,7 @@ "## Pour aller plus loin\n", "\n", "- **Carnet suivant** : [App-27-Sparse-Index-Tracking-Walk-Forward](App-27-Sparse-Index-Tracking-Walk-Forward-Python.ipynb) — l'autre lecture du protocole : ici la frontière est **prouvée** par un solveur, là-bas elle est **mesurée** par un walk-forward.\n", - "- **Le solveur de contraintes** : [CSP-3-Advanced](../Part2-CSP/CSP-3-Advanced.ipynb) — le passage d'une relation booléenne à une contrainte arithmétique, avec la notion de borne.\n", + "- **Le solveur de contraintes** : [CSP-03-Advanced-Python](../Part2-CSP/CSP-03-Advanced-Python.ipynb) — le passage d'une relation booléenne à une contrainte arithmétique, avec la notion de borne.\n", "- **Sélection empirique** : [App-22-AlgorithmSelection-Python](App-22-AlgorithmSelection-Python.ipynb) — choisir un solveur sur des résultats mesurés plutôt que sur une préférence." ] } diff --git a/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-27-Sparse-Index-Tracking-Walk-Forward-Python.ipynb b/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-27-Sparse-Index-Tracking-Walk-Forward-Python.ipynb index b3737da1d48..dd681fe9fee 100644 --- a/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-27-Sparse-Index-Tracking-Walk-Forward-Python.ipynb +++ b/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-27-Sparse-Index-Tracking-Walk-Forward-Python.ipynb @@ -17,7 +17,7 @@ "# App-27 — Sparse index tracking\n", "## Une recherche, deux lectures : du modèle vérifiable à l'épreuve QuantConnect\n", "\n", - "**Navigation** : [Applications Search](../README.md) · [CSP-3 — CP-SAT avancé](../Part2-CSP/CSP-3-Advanced.ipynb) · [CSP-5 — optimisation](../Part2-CSP/CSP-5-Optimization.ipynb) · [Projet QuantConnect réel](../../QuantConnect/projects/Sparse-Index-Tracking-QC/README.md)\n", + "**Navigation** : [Applications Search](../README.md) · [CSP-3 — CP-SAT avancé](../Part2-CSP/CSP-03-Advanced-Python.ipynb) · [CSP-5 — optimisation](../Part2-CSP/CSP-05-Optimization-Python.ipynb) · [Projet QuantConnect réel](../../QuantConnect/projects/Sparse-Index-Tracking-QC/README.md)\n", "\n", "> **Hommage à Godric Bouteloup — projet M2, EPITA SCIA 2026.** Son travail part d'une question financière concrète : peut-on suivre un indice avec peu de lignes tout en respectant budget, cardinalité, secteurs et évolution du portefeuille ? Le choix de lots entiers, de variables de sélection et d'un solveur CP-SAT donne une forme combinatoire explicite à une intuition souvent traitée uniquement par régression continue. Cette articulation entre finance et contraintes est le geste central que cette application conserve.\n", "\n", @@ -1271,7 +1271,7 @@ "## Pour aller plus loin\n", "\n", "- **Carnet voisin** : [App-10-Portfolio](App-10-Portfolio-Python.ipynb) — la construction du portefeuille de référence que l'on cherche ici à répliquer, et son jumeau .NET.\n", - "- **Le solveur** : [CSP-3-Advanced](../Part2-CSP/CSP-3-Advanced.ipynb) — l'encodage CP-SAT en lots entiers et la notion de borne et de gap.\n", + "- **Le solveur** : [CSP-03-Advanced-Python](../Part2-CSP/CSP-03-Advanced-Python.ipynb) — l'encodage CP-SAT en lots entiers et la notion de borne et de gap.\n", "- **L'épreuve de marché** : [Sparse-Index-Tracking-QC](../../QuantConnect/projects/Sparse-Index-Tracking-QC/README.md) — les résultats QuantConnect du même sujet, à lire pour leurs ordres et leur turnover, pas pour un score." ] } diff --git a/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-03-MAPF-Guarantee-Audit-CSharp.ipynb b/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-03-MAPF-Guarantee-Audit-CSharp.ipynb index d2dc0135979..addce8e42b0 100644 --- a/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-03-MAPF-Guarantee-Audit-CSharp.ipynb +++ b/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-03-MAPF-Guarantee-Audit-CSharp.ipynb @@ -16,7 +16,7 @@ "source": [ "# Frontieres-03 — MAPF : auditer les garanties des solveurs\n", "\n", - "> **Navigation** : [Partie 5](README.md) · [App-23 PRESENT/SAT](../Part3-Cas-pratiques/App-23-PRESENT-Differential-Cryptanalysis-SAT-Python.ipynb) · [Search-3 A*](../Part1-Foundations/Search-03-Informed.ipynb) · [CSP-4 Scheduling](../Part2-CSP/CSP-4-Scheduling.ipynb) · [Jumeau Python](Frontieres-03-MAPF-Guarantee-Audit-Python.ipynb)\n", + "> **Navigation** : [Partie 5](README.md) · [App-23 PRESENT/SAT](../Part3-Cas-pratiques/App-23-PRESENT-Differential-Cryptanalysis-SAT-Python.ipynb) · [Search-3 A*](../Part1-Foundations/Search-03-Informed.ipynb) · [CSP-4 Scheduling](../Part2-CSP/CSP-04-Scheduling-Python.ipynb) · [Jumeau Python](Frontieres-03-MAPF-Guarantee-Audit-Python.ipynb)\n", "\n", "## Objectifs d'apprentissage\n", "\n", diff --git a/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-03-MAPF-Guarantee-Audit-Python.ipynb b/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-03-MAPF-Guarantee-Audit-Python.ipynb index 9504da4d8eb..3428f7a8804 100644 --- a/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-03-MAPF-Guarantee-Audit-Python.ipynb +++ b/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-03-MAPF-Guarantee-Audit-Python.ipynb @@ -16,7 +16,7 @@ "source": [ "# Frontieres-03 — MAPF : auditer les garanties des solveurs\n", "\n", - "> **Navigation** : [Partie 5](README.md) · [App-23 PRESENT/SAT](../Part3-Cas-pratiques/App-23-PRESENT-Differential-Cryptanalysis-SAT-Python.ipynb) · [Search-3 A*](../Part1-Foundations/Search-03-Informed.ipynb) · [CSP-4 Scheduling](../Part2-CSP/CSP-4-Scheduling.ipynb) · [Jumeau C#](Frontieres-03-MAPF-Guarantee-Audit-CSharp.ipynb)\n", + "> **Navigation** : [Partie 5](README.md) · [App-23 PRESENT/SAT](../Part3-Cas-pratiques/App-23-PRESENT-Differential-Cryptanalysis-SAT-Python.ipynb) · [Search-3 A*](../Part1-Foundations/Search-03-Informed.ipynb) · [CSP-4 Scheduling](../Part2-CSP/CSP-04-Scheduling-Python.ipynb) · [Jumeau C#](Frontieres-03-MAPF-Guarantee-Audit-CSharp.ipynb)\n", "\n", "## Objectifs d'apprentissage\n", "\n", diff --git a/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-04-CombinatorialAuctions-WDP-VCG-Python.ipynb b/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-04-CombinatorialAuctions-WDP-VCG-Python.ipynb index 4582622977d..e769d818298 100644 --- a/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-04-CombinatorialAuctions-WDP-VCG-Python.ipynb +++ b/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-04-CombinatorialAuctions-WDP-VCG-Python.ipynb @@ -16,7 +16,7 @@ "source": [ "# Frontieres-04 — Enchères combinatoires : Winner Determination à grande échelle et audit des garanties VCG\n", "\n", - "> **Navigation** : [Partie 5](README.md) · [GameTheory — théorie des mécanismes](../../GameTheory/README.md) · [CSP-3 (CP-SAT avancé)](../Part2-CSP/CSP-3-Advanced.ipynb)\n", + "> **Navigation** : [Partie 5](README.md) · [GameTheory — théorie des mécanismes](../../GameTheory/README.md) · [CSP-3 (CP-SAT avancé)](../Part2-CSP/CSP-03-Advanced-Python.ipynb)\n", "\n", "## Objectifs d'apprentissage\n", "\n", @@ -29,7 +29,7 @@ "5. **matérialiser un contre-exemple documenté** : VCG avec contrainte de budget n'est pas truthful (surplus 7 contre 0), alors que trois propriétés survivent mécaniquement ;\n", "6. lire un artefact numérique avec un œil forensique : le mismatch `PRICE_SCALE`/`bid_alpha` des outputs étudiants.\n", "\n", - "**Prérequis** : [CSP-3 (CP-SAT)](../Part2-CSP/CSP-3-Advanced.ipynb), bases de théorie des mécanismes ([GameTheory-16](../../GameTheory/GameTheory-16-MechanismDesign-Python.ipynb)). **Durée estimée** : 60 min.\n", + "**Prérequis** : [CSP-3 (CP-SAT)](../Part2-CSP/CSP-03-Advanced-Python.ipynb), bases de théorie des mécanismes ([GameTheory-16](../../GameTheory/GameTheory-16-MechanismDesign-Python.ipynb)). **Durée estimée** : 60 min.\n", "\n", "## Hommage à un travail étudiant\n", "\n", @@ -312,7 +312,7 @@ "source": [ "### 2.2 Le modèle CP-SAT : set packing pondéré\n", "\n", - "Variables $x_j \\in \\{0,1\\}$, objectif $\\max \\sum_j p_j x_j$, contraintes : (1) exclusivité d'item $\\sum_{j \\ni i} x_j \\le 1$ ; (2) budget global optionnel $\\sum_j p_j x_j \\le C$ — exprimé **en prix déclarés** (ce point deviendra central au §6) ; (3) groupes XOR optionnels $\\sum_{j \\in G} x_j \\le 1$. C'est la même famille de modèles que [CSP-3](../Part2-CSP/CSP-3-Advanced.ipynb) et [CSP-5](../Part2-CSP/CSP-5-Optimization.ipynb)." + "Variables $x_j \\in \\{0,1\\}$, objectif $\\max \\sum_j p_j x_j$, contraintes : (1) exclusivité d'item $\\sum_{j \\ni i} x_j \\le 1$ ; (2) budget global optionnel $\\sum_j p_j x_j \\le C$ — exprimé **en prix déclarés** (ce point deviendra central au §6) ; (3) groupes XOR optionnels $\\sum_{j \\in G} x_j \\le 1$. C'est la même famille de modèles que [CSP-3](../Part2-CSP/CSP-03-Advanced-Python.ipynb) et [CSP-5](../Part2-CSP/CSP-05-Optimization-Python.ipynb)." ] }, { @@ -2825,7 +2825,7 @@ "- [GameTheory-16 — Mechanism Design](../../GameTheory/GameTheory-16-MechanismDesign-Python.ipynb) : le principe de révélation, VCG additif, la non-monotonie de revenu (Conitzer-Sandholm) — prouvée formellement dans [`game_theory_lean/SocialChoice/MechanismDesign.lean`](../../GameTheory/game_theory_lean/SocialChoice/MechanismDesign.lean) ;\n", "- [GameTheory-16c — Extraction de revenu DSIC+IR](../../GameTheory/GameTheory-16c-Extraction-de-Revenu-DSIC-IR-Python.ipynb) : l'autre face du trade-off revenu/incitation ;\n", "- [`examples/vcg_auction.py`](../../GameTheory/examples/vcg_auction.py) : l'énumération brute dont le §2 mesure le mur ;\n", - "- [CSP-3](../Part2-CSP/CSP-3-Advanced.ipynb) et [CSP-5](../Part2-CSP/CSP-5-Optimization.ipynb) : la boîte à outils CP-SAT (`AddAtMostOne`, `Maximize`) mobilisée ici ;\n", + "- [CSP-3](../Part2-CSP/CSP-03-Advanced-Python.ipynb) et [CSP-5](../Part2-CSP/CSP-05-Optimization-Python.ipynb) : la boîte à outils CP-SAT (`AddAtMostOne`, `Maximize`) mobilisée ici ;\n", "- [App-23 — PRESENT par SAT](../Part3-Cas-pratiques/App-23-PRESENT-Differential-Cryptanalysis-SAT-Python.ipynb) : même discipline de niveaux de preuve — exécution finie, certification bornée, théorème.\n", "\n", "Le projet J2 reste la source : [dépôt](https://github.com/jsboigeEpita/2026-Epita-Programmation-par-Contraintes/tree/main/Groupe-J2-Enchere_combinatoire_et_Winner_Determination) (MIT), notes de recherche 01-04, package `wdp/` et 44 tests — non recopiés ici, conformément à la licence et à la politique de distillation." diff --git a/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-05-CoveringArrays-Guarantee-Audit-CSharp.ipynb b/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-05-CoveringArrays-Guarantee-Audit-CSharp.ipynb index ec1c2720a12..84c3b65f917 100644 --- a/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-05-CoveringArrays-Guarantee-Audit-CSharp.ipynb +++ b/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-05-CoveringArrays-Guarantee-Audit-CSharp.ipynb @@ -9,7 +9,7 @@ "source": [ "# Frontieres-05 — Covering Arrays : tester les interactions possibles, auditer les garanties\n", "\n", - "**Navigation** : [Version Python](Frontieres-05-CoveringArrays-Guarantee-Audit-Python.ipynb) · [Partie 5](README.md) · [CSP avancé](../Part2-CSP/CSP-3-Advanced.ipynb)\n", + "**Navigation** : [Version Python](Frontieres-05-CoveringArrays-Guarantee-Audit-Python.ipynb) · [Partie 5](README.md) · [CSP avancé](../Part2-CSP/CSP-03-Advanced-Python.ipynb)\n", "\n", "**Objectifs** : définir un covering array ; distinguer interaction absente et impossible ; résoudre un set cover exact avec CP-SAT ; comparer incumbent, borne et constructions approchées ; auditer couverture et reproductibilité.\n", "\n", @@ -1076,7 +1076,7 @@ "\n", "- [Frontieres-03 — MAPF](Frontieres-03-MAPF-Guarantee-Audit-Python.ipynb) : solution valide, optimum observé et garantie d'un algorithme.\n", "- [Frontieres-06 — Learning to Branch](Frontieres-06-LearningToBranch-Generalization-Audit-Python.ipynb) : mesurer la généralisation d'un ordre appris.\n", - "- [CSP-5 — optimisation](../Part2-CSP/CSP-5-Optimization.ipynb) : incumbent et borne.\n", + "- [CSP-5 — optimisation](../Part2-CSP/CSP-05-Optimization-Python.ipynb) : incumbent et borne.\n", "- Le geste source : [H4 Covering Arrays](https://github.com/jsboigeEpita/2026-Epita-Programmation-par-Contraintes/tree/main/H4-Covering-Arrays), Valérian Pichot, MIT ; documentation [Google OR-Tools CP-SAT](https://developers.google.com/optimization/cp/cp_solver)." ] } diff --git a/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-05-CoveringArrays-Guarantee-Audit-Python.ipynb b/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-05-CoveringArrays-Guarantee-Audit-Python.ipynb index 61b3756bea2..0ee3bcf3efb 100644 --- a/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-05-CoveringArrays-Guarantee-Audit-Python.ipynb +++ b/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-05-CoveringArrays-Guarantee-Audit-Python.ipynb @@ -16,7 +16,7 @@ "source": [ "# Frontieres-05 — Covering Arrays : tester les interactions possibles, auditer les garanties\n", "\n", - "> **Navigation** : [Version C#](Frontieres-05-CoveringArrays-Guarantee-Audit-CSharp.ipynb) · [Partie 5](README.md) · [CSP-3 (CP-SAT avancé)](../Part2-CSP/CSP-3-Advanced.ipynb) · [CSP-5 (optimisation)](../Part2-CSP/CSP-5-Optimization.ipynb)\n", + "> **Navigation** : [Version C#](Frontieres-05-CoveringArrays-Guarantee-Audit-CSharp.ipynb) · [Partie 5](README.md) · [CSP-3 (CP-SAT avancé)](../Part2-CSP/CSP-03-Advanced-Python.ipynb) · [CSP-5 (optimisation)](../Part2-CSP/CSP-05-Optimization-Python.ipynb)\n", "\n", "## Objectifs d'apprentissage\n", "\n", @@ -28,7 +28,7 @@ "4. comparer cette référence à deux constructions approchées : une extension **IPOG-like** déterministe et une recherche **AETG-like** semée ;\n", "5. auditer les limites d'une garantie expérimentale : borne inférieure, time-out, reproductibilité et validation.\n", "\n", - "**Prérequis** : combinatoire élémentaire, [CSP-3](../Part2-CSP/CSP-3-Advanced.ipynb). **Durée estimée** : 55 min.\n", + "**Prérequis** : combinatoire élémentaire, [CSP-3](../Part2-CSP/CSP-03-Advanced-Python.ipynb). **Durée estimée** : 55 min.\n", "\n", "## Hommage à un travail étudiant\n", "\n", @@ -1269,8 +1269,8 @@ "source": [ "## 8. Ponts avec CoursIA\n", "\n", - "- [CSP-3 — CP-SAT avancé](../Part2-CSP/CSP-3-Advanced.ipynb) : variables booléennes, contraintes réifiées et lecture des statuts ;\n", - "- [CSP-5 — Optimisation](../Part2-CSP/CSP-5-Optimization.ipynb) : incumbent, borne et différence entre faisabilité et optimalité ;\n", + "- [CSP-3 — CP-SAT avancé](../Part2-CSP/CSP-03-Advanced-Python.ipynb) : variables booléennes, contraintes réifiées et lecture des statuts ;\n", + "- [CSP-5 — Optimisation](../Part2-CSP/CSP-05-Optimization-Python.ipynb) : incumbent, borne et différence entre faisabilité et optimalité ;\n", "- [App-20 — Sudoku Benchmark](../Part3-Cas-pratiques/App-20-SudokuBenchmark-Python.ipynb) : autre comparaison d'algorithmes sous oracle commun ;\n", "- [Frontieres-03 — MAPF Guarantee Audit](Frontieres-03-MAPF-Guarantee-Audit-Python.ipynb) : même discipline, séparer solution valide, optimum observé et garantie prouvée.\n", "\n", diff --git a/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-06-LearningToBranch-Generalization-Audit-CSharp.ipynb b/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-06-LearningToBranch-Generalization-Audit-CSharp.ipynb index 4949495657a..5ab54ebd013 100644 --- a/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-06-LearningToBranch-Generalization-Audit-CSharp.ipynb +++ b/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-06-LearningToBranch-Generalization-Audit-CSharp.ipynb @@ -42,7 +42,7 @@ "\n", "### Prérequis\n", "\n", - "- [CSP-6 Hybridation](../Part2-CSP/CSP-6-Hybridization.ipynb)\n", + "- [CSP-6 Hybridation](../Part2-CSP/CSP-06-Hybridization-Python.ipynb)\n", "- [MGS-16 Sélection d'algorithmes](../Part4-Metaheuristics/MGS-16-AlgorithmSelection.ipynb)\n", "- C# et .NET Interactive ; Python 3.13 avec scikit-learn et NumPy via Python.NET 3.1. Les 36 fixtures sont des entrées produites par les générateurs Python de référence." ] diff --git a/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-06-LearningToBranch-Generalization-Audit-Python.ipynb b/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-06-LearningToBranch-Generalization-Audit-Python.ipynb index 3d1cf62d335..124db02ca3b 100644 --- a/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-06-LearningToBranch-Generalization-Audit-Python.ipynb +++ b/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-06-LearningToBranch-Generalization-Audit-Python.ipynb @@ -42,7 +42,7 @@ "\n", "### Prérequis\n", "\n", - "- [CSP-6 Hybridation](../Part2-CSP/CSP-6-Hybridization.ipynb)\n", + "- [CSP-6 Hybridation](../Part2-CSP/CSP-06-Hybridization-Python.ipynb)\n", "- [MGS-16 Sélection d'algorithmes](../Part4-Metaheuristics/MGS-16-AlgorithmSelection.ipynb)\n", "- Python 3.10+ ; `numpy`, `pandas`, `scikit-learn`, `matplotlib`\n", "\n", diff --git a/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-07-SALBP-AssemblyLineBalancing-Audit-CSharp.ipynb b/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-07-SALBP-AssemblyLineBalancing-Audit-CSharp.ipynb index 885dd385b72..1ab828cb327 100644 --- a/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-07-SALBP-AssemblyLineBalancing-Audit-CSharp.ipynb +++ b/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-07-SALBP-AssemblyLineBalancing-Audit-CSharp.ipynb @@ -20,7 +20,7 @@ "\n", "## De l'affectation au certificat : statut, borne, provenance\n", "\n", - "**Navigation** : [Partie 5](README.md) | [Série Search](../README.md) | [CSP-4 Scheduling](../Part2-CSP/CSP-4-Scheduling.ipynb)\n", + "**Navigation** : [Partie 5](README.md) | [Série Search](../README.md) | [CSP-4 Scheduling](../Part2-CSP/CSP-04-Scheduling-Python.ipynb)\n", "\n", "> **Hommage à Ilias Kalalou et Kaelan Grall — projet B1, EPITA SCIA 2026.** Leur projet ne s'est pas contenté d'écrire un modèle : il a réuni dans un même appareil **SALBP-1**, **SALBP-2**, CP-SAT, PuLP/CBC, l'heuristique historique **Ranked Positional Weight**, 25 instances, 57 tests, une application Streamlit, une variante multi-modèles et une exploration bi-objectif. Cette volonté de faire dialoguer modèle exact, formulation indépendante, heuristique de métier et interface est le geste central de cette distillation.\n", "\n", @@ -2247,7 +2247,7 @@ "\n", "- **Carnet suivant** : [Frontieres-10-NeuralDiving-Coloration-Python](Frontieres-10-NeuralDiving-Coloration-Python.ipynb) — le hint appris : une affectation partielle injectée dans CP-SAT, où la cohérence avec l’adjacence se mesure au lieu de se présumer\n", "- **Même exigence de preuve, autre échelle** : [Frontieres-11-Abstraction-Dette-ShortestPath-Python](Frontieres-11-Abstraction-Dette-ShortestPath-Python.ipynb) — l’abstraction à dette bornée : on paie l’agrégation interne pour resserrer la borne, l’agrégation moyenne servant de contre-témoin mesuré\n", - "- **Dans CoursIA** : [CSP-4 — Scheduling](../Part2-CSP/CSP-4-Scheduling.ipynb), le pont déjà cité en navigation, et [CSP-5 — Optimisation](../Part2-CSP/CSP-5-Optimization.ipynb) — incumbent, borne et écart, lus dans l'autre sens\n", + "- **Dans CoursIA** : [CSP-4 — Scheduling](../Part2-CSP/CSP-04-Scheduling-Python.ipynb), le pont déjà cité en navigation, et [CSP-5 — Optimisation](../Part2-CSP/CSP-05-Optimization-Python.ipynb) — incumbent, borne et écart, lus dans l'autre sens\n", "- **Source et prolongements** : le projet B1 « Équilibrage de chaîne d'assemblage » d'**Ilias Kalalou** et **Kaelan Grall** (EPITA SCIA 2026), dont la provenance et la licence sont consignées dans [SOURCE.md](data/app29-salbp-audit/SOURCE.md) ; et les références historiques citées en fin de carnet — Salveson (1955) sur la formulation du SALBP, Helgeson & Birnie (1961) sur le RPW, Scholl (1999) sur les modèles, les données et les méthodes\n" ] } diff --git a/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-07-SALBP-AssemblyLineBalancing-Audit-Python.ipynb b/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-07-SALBP-AssemblyLineBalancing-Audit-Python.ipynb index 9661584ec2a..d7cde54f050 100644 --- a/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-07-SALBP-AssemblyLineBalancing-Audit-Python.ipynb +++ b/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-07-SALBP-AssemblyLineBalancing-Audit-Python.ipynb @@ -17,7 +17,7 @@ "# Frontieres-07 — Équilibrage de chaîne d'assemblage (SALBP)\n", "## De l'affectation au certificat : statut, borne, provenance\n", "\n", - "**Navigation** : [Partie 5](README.md) | [Série Search](../README.md) | [CSP-4 Scheduling](../Part2-CSP/CSP-4-Scheduling.ipynb) | [Version C#](Frontieres-07-SALBP-AssemblyLineBalancing-Audit-CSharp.ipynb)\n", + "**Navigation** : [Partie 5](README.md) | [Série Search](../README.md) | [CSP-4 Scheduling](../Part2-CSP/CSP-04-Scheduling-Python.ipynb) | [Version C#](Frontieres-07-SALBP-AssemblyLineBalancing-Audit-CSharp.ipynb)\n", "\n", "> **Hommage à Ilias Kalalou et Kaelan Grall — projet B1, EPITA SCIA 2026.** Leur projet ne s'est pas contenté d'écrire un modèle : il a réuni dans un même appareil **SALBP-1**, **SALBP-2**, CP-SAT, PuLP/CBC, l'heuristique historique **Ranked Positional Weight**, 25 instances, 57 tests, une application Streamlit, une variante multi-modèles et une exploration bi-objectif. Cette volonté de faire dialoguer modèle exact, formulation indépendante, heuristique de métier et interface est le geste central de cette distillation.\n", "\n", @@ -1638,7 +1638,7 @@ "\n", "- **Carnet suivant** : [Frontieres-10-NeuralDiving-Coloration-Python](Frontieres-10-NeuralDiving-Coloration-Python.ipynb) — le hint appris : une affectation partielle injectée dans CP-SAT, où la cohérence avec l’adjacence se mesure au lieu de se présumer\n", "- **Même exigence de preuve, autre échelle** : [Frontieres-11-Abstraction-Dette-ShortestPath-Python](Frontieres-11-Abstraction-Dette-ShortestPath-Python.ipynb) — l’abstraction à dette bornée : on paie l’agrégation interne pour resserrer la borne, l’agrégation moyenne servant de contre-témoin mesuré\n", - "- **Dans CoursIA** : [CSP-4 — Scheduling](../Part2-CSP/CSP-4-Scheduling.ipynb), le pont déjà cité en navigation, et [CSP-5 — Optimisation](../Part2-CSP/CSP-5-Optimization.ipynb) — incumbent, borne et écart, lus dans l'autre sens\n", + "- **Dans CoursIA** : [CSP-4 — Scheduling](../Part2-CSP/CSP-04-Scheduling-Python.ipynb), le pont déjà cité en navigation, et [CSP-5 — Optimisation](../Part2-CSP/CSP-05-Optimization-Python.ipynb) — incumbent, borne et écart, lus dans l'autre sens\n", "- **Source et prolongements** : le projet B1 « Équilibrage de chaîne d'assemblage » d'**Ilias Kalalou** et **Kaelan Grall** (EPITA SCIA 2026), dont la provenance et la licence sont consignées dans [SOURCE.md](data/app29-salbp-audit/SOURCE.md) ; et les références historiques citées en fin de carnet — Salveson (1955) sur la formulation du SALBP, Helgeson & Birnie (1961) sur le RPW, Scholl (1999) sur les modèles, les données et les méthodes\n" ] } diff --git a/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-08-OrbitalAssembly-Certificate-Audit-Python.ipynb b/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-08-OrbitalAssembly-Certificate-Audit-Python.ipynb index cf2934965d8..bf8053b06b8 100644 --- a/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-08-OrbitalAssembly-Certificate-Audit-Python.ipynb +++ b/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-08-OrbitalAssembly-Certificate-Audit-Python.ipynb @@ -17,7 +17,7 @@ "# Frontieres-08 — Ordonnancement d'assemblage orbital\n", "## Le certificat, pas seulement le chiffre : encodage lexicographique, comparaison appariée, front d'échange\n", "\n", - "**Navigation** : [Partie 5](README.md) | [Série Search](../README.md) | [CSP-4 Scheduling](../Part2-CSP/CSP-4-Scheduling.ipynb) | [Frontieres-07 SALBP](Frontieres-07-SALBP-AssemblyLineBalancing-Audit-Python.ipynb)\n", + "**Navigation** : [Partie 5](README.md) | [Série Search](../README.md) | [CSP-4 Scheduling](../Part2-CSP/CSP-04-Scheduling-Python.ipynb) | [Frontieres-07 SALBP](Frontieres-07-SALBP-AssemblyLineBalancing-Audit-Python.ipynb)\n", "\n", "> **Hommage à Gurvan Estable, Joris Bely et Kévin Lubert — projet C4, EPITA SCIA 2026.** Leur projet n'a pas traité l'assemblage orbital comme un ordonnancement d'atelier déguisé. Il a fait descendre la physique dans le modèle : les durées de manœuvre viennent d'un temps de vol de Hohmann réellement calculé, les coûts viennent d'un Δv réellement calculé, et le budget d'ergol contraint les mêmes intervalles que les couloirs orbitaux. Coupler ainsi la décision temporelle et la décision énergétique dans un unique modèle CP-SAT — au lieu de fixer des durées arbitraires — est le geste central de cette distillation.\n", "\n", @@ -2670,8 +2670,8 @@ "\n", "### Pour aller plus loin\n", "\n", - "- [CSP-4 Scheduling](../Part2-CSP/CSP-4-Scheduling.ipynb) — les primitives d'intervalles, `NoOverlap` et `Cumulative` en contexte.\n", - "- [CSP-5 Optimisation](../Part2-CSP/CSP-5-Optimization.ipynb) — objectifs, bornes et lecture des statuts.\n", + "- [CSP-4 Scheduling](../Part2-CSP/CSP-04-Scheduling-Python.ipynb) — les primitives d'intervalles, `NoOverlap` et `Cumulative` en contexte.\n", + "- [CSP-5 Optimisation](../Part2-CSP/CSP-05-Optimization-Python.ipynb) — objectifs, bornes et lecture des statuts.\n", "- [Frontieres-07 SALBP](Frontieres-07-SALBP-AssemblyLineBalancing-Audit-Python.ipynb) — même exigence de certificats et de provenance sur l'équilibrage de ligne.\n", "- [App-24 MAPF](Frontieres-03-MAPF-Guarantee-Audit-Python.ipynb) — l'audit de garanties appliqué au *pathfinding* multi-agent." ] diff --git a/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-09-RCPSP-Max-Feasibility-Bounds-CSharp.ipynb b/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-09-RCPSP-Max-Feasibility-Bounds-CSharp.ipynb index 37db1ba9180..7983229bf8d 100644 --- a/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-09-RCPSP-Max-Feasibility-Bounds-CSharp.ipynb +++ b/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-09-RCPSP-Max-Feasibility-Bounds-CSharp.ipynb @@ -59,7 +59,7 @@ "aucune cellule en erreur. Les cellules de vérification qui suivent chaque stub comparent\n", "votre réponse à une implémentation de référence et affichent un verdict chiffré.\n", "\n", - "**Prérequis** : `CSP-4-Scheduling` pour le RCPSP et les contraintes cumulatives. Durée estimée\n", + "**Prérequis** : `CSP-04-Scheduling-Python` pour le RCPSP et les contraintes cumulatives. Durée estimée\n", "60 à 75 minutes.\n", "\n", "**Objectifs d’apprentissage** — Représenter un lag maximal, vérifier un circuit positif, distinguer les causes d’infaisabilité et comparer les niveaux de preuve.\n", @@ -83,7 +83,7 @@ "source": [ "## 1. L'exercice que le cours laissait ouvert\n", "\n", - "CoursIA enseigne déjà le RCPSP : `CSP-4-Scheduling` lui consacre une section entière, et\n", + "CoursIA enseigne déjà le RCPSP : `CSP-04-Scheduling-Python` lui consacre une section entière, et\n", "`Planners-08-Temporal-Python` le traite du côté planification. Ce dernier notebook referme d'ailleurs\n", "le sujet sur une phrase restée sans suite :\n", "\n", diff --git a/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-09-RCPSP-Max-Feasibility-Bounds-Python.ipynb b/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-09-RCPSP-Max-Feasibility-Bounds-Python.ipynb index fbd9195efeb..bf636731c78 100644 --- a/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-09-RCPSP-Max-Feasibility-Bounds-Python.ipynb +++ b/MyIA.AI.Notebooks/Search/Part5-Frontieres/Frontieres-09-RCPSP-Max-Feasibility-Bounds-Python.ipynb @@ -57,7 +57,7 @@ "aucune cellule en erreur. Les cellules de vérification qui suivent chaque stub comparent\n", "votre réponse à une implémentation de référence et affichent un verdict chiffré.\n", "\n", - "**Prérequis** : `CSP-4-Scheduling` pour le RCPSP et les contraintes cumulatives. Durée estimée\n", + "**Prérequis** : `CSP-04-Scheduling-Python` pour le RCPSP et les contraintes cumulatives. Durée estimée\n", "60 à 75 minutes." ] }, @@ -77,7 +77,7 @@ "source": [ "## 1. L'exercice que le cours laissait ouvert\n", "\n", - "CoursIA enseigne déjà le RCPSP : `CSP-4-Scheduling` lui consacre une section entière, et\n", + "CoursIA enseigne déjà le RCPSP : `CSP-04-Scheduling-Python` lui consacre une section entière, et\n", "`Planners-08-Temporal-Python` le traite du côté planification. Ce dernier notebook referme d'ailleurs\n", "le sujet sur une phrase restée sans suite :\n", "\n", diff --git a/MyIA.AI.Notebooks/Search/README.md b/MyIA.AI.Notebooks/Search/README.md index eff21ae79ba..59d5b075ab5 100644 --- a/MyIA.AI.Notebooks/Search/README.md +++ b/MyIA.AI.Notebooks/Search/README.md @@ -257,15 +257,15 @@ La parité `.NET ⇄ Python` de la Partie 2 CSP a été portée par un **maratho | Notebook | PR | Cycle | Solver C# | verdict SOTA | Sortie noteworthy | |----------|----|----|-----------|-------------|-------------------| -| **CSP-1-Fundamentals-CSharp** | [#5270](https://github.com/jsboige/CoursIA/pull/5270) | 14 (2026-07-03) | IKVM 8.15 + [Choco-solver](https://choco-solver.org/) 4.10.17 (DLL 12 MB) | **SOTA-OK** | Coloration de l'Australie 71 ms ; 8-Reines 102 ms | -| **CSP-2-Consistency-CSharp** | [#5274](https://github.com/jsboige/CoursIA/pull/5274) | 15 (2026-07-04) | IKVM 8.15 + Choco-solver 4.10.17 | **SOTA-OK** | AC-3 custom C# + Choco AC-3 builtin ; audit table Choco ⇔ OR-Tools | +| **CSP-01-Fundamentals-CSharp** | [#5270](https://github.com/jsboige/CoursIA/pull/5270) | 14 (2026-07-03) | IKVM 8.15 + [Choco-solver](https://choco-solver.org/) 4.10.17 (DLL 12 MB) | **SOTA-OK** | Coloration de l'Australie 71 ms ; 8-Reines 102 ms | +| **CSP-02-Consistency-CSharp** | [#5274](https://github.com/jsboige/CoursIA/pull/5274) | 15 (2026-07-04) | IKVM 8.15 + Choco-solver 4.10.17 | **SOTA-OK** | AC-3 custom C# + Choco AC-3 builtin ; audit table Choco ⇔ OR-Tools | | **CSP-3-Csharp** | PRs antérieurs | antérieur | IKVM 8.15 + Choco 4.10.17 | **MERGED** | (palette reine / équidistance, base historique) | -| **CSP-4-Scheduling-CSharp** | [#5067](https://github.com/jsboige/CoursIA/pull/5067) | tranche 1 cherry | IKVM 8.15 + Choco 4.10.17 (+ audit croisé OR-Tools) | **SOTA-OK** | Job-Shop / Nurse Scheduling en Choco `IntVar` / `Task` | -| **CSP-5-Optimization-CSharp** | [#5018](https://github.com/jsboige/CoursIA/pull/5018) → [#5133](https://github.com/jsboige/CoursIA/pull/5133) (rebase) | antérieur | IKVM 8.15 + Choco 4.10.17 | **SOTA-OK** | Bin Packing / Knapsack / cardinalité en Choco | -| **CSP-6-Hybridization-CSharp** | [#5275](https://github.com/jsboige/CoursIA/pull/5275) | 16 (2026-07-04) | [Google.OrTools](https://developers.google.com/optimization) 9.15.6755 NuGet | **SOTA-OK** | CP + ML 50 instances (98 % faisables) ; Portfolio multi-stratégies | +| **CSP-04-Scheduling-CSharp** | [#5067](https://github.com/jsboige/CoursIA/pull/5067) | tranche 1 cherry | IKVM 8.15 + Choco 4.10.17 (+ audit croisé OR-Tools) | **SOTA-OK** | Job-Shop / Nurse Scheduling en Choco `IntVar` / `Task` | +| **CSP-05-Optimization-CSharp** | [#5018](https://github.com/jsboige/CoursIA/pull/5018) → [#5133](https://github.com/jsboige/CoursIA/pull/5133) (rebase) | antérieur | IKVM 8.15 + Choco 4.10.17 | **SOTA-OK** | Bin Packing / Knapsack / cardinalité en Choco | +| **CSP-06-Hybridization-CSharp** | [#5275](https://github.com/jsboige/CoursIA/pull/5275) | 16 (2026-07-04) | [Google.OrTools](https://developers.google.com/optimization) 9.15.6755 NuGet | **SOTA-OK** | CP + ML 50 instances (98 % faisables) ; Portfolio multi-stratégies | | **CSP-7-Csharp** | PRs antérieurs | antérieur | IKVM 8.15 + Choco 4.10.17 | **MERGED** | (global-cardinality, symétrie, base historique) | -| **CSP-8-Temporal-CSharp** | [#5276](https://github.com/jsboige/CoursIA/pull/5276) | 17 (2026-07-04) | Google.OrTools 9.15.6755 | **SOTA-OK** | Allen 13 relations + STP Floyd-Warshall + TCSP ; CP-SAT optimal 0,0065 s | -| **CSP-9-Distributed-CSharp** | [#5277](https://github.com/jsboige/CoursIA/pull/5277) | 18 (2026-07-04) | Algo distribué **Yokoo 1992** from-scratch (DisCSP) | **SOTA-OK** | AWC 62,0 msgs vs ABT 159,4 msgs à densité 0,5 (**2,5× plus efficace**) ; -58 % de fuite privacy | +| **CSP-08-Temporal-CSharp** | [#5276](https://github.com/jsboige/CoursIA/pull/5276) | 17 (2026-07-04) | Google.OrTools 9.15.6755 | **SOTA-OK** | Allen 13 relations + STP Floyd-Warshall + TCSP ; CP-SAT optimal 0,0065 s | +| **CSP-09-Distributed-CSharp** | [#5277](https://github.com/jsboige/CoursIA/pull/5277) | 18 (2026-07-04) | Algo distribué **Yokoo 1992** from-scratch (DisCSP) | **SOTA-OK** | AWC 62,0 msgs vs ABT 159,4 msgs à densité 0,5 (**2,5× plus efficace**) ; -58 % de fuite privacy | Les 9 binômes sont **tous mergés sur `main`** (vérifié disque au 2026-07-07 : `Part2-CSP/CSP-1-Csharp` à `CSP-9-Csharp` présents et gît-trackés). Le verdict SOTA-OK est documenté dans les PRs du marathon (règle [EPIC #3801](https://github.com/jsboige/CoursIA/issues/3801) — vrai outil, pas workaround dégradé) ; les 2 PRs les plus anciennes (CSP-3, CSP-7) ont été livrées avant la formalisation de la règle et n'ont pas de verdict écrit. Équilibre solvers final : **6 Choco via IKVM** (CSP-1/2/3/4/5/7), **2 OR-Tools CP-SAT natif .NET** (CSP-6/8), **1 from-scratch** (CSP-9, algorithme distribué Yokoo 1992). @@ -371,15 +371,15 @@ Search/ │ └── Search-13a-Traverser-Murs-Certifies.ipynb # Traverser un mur : chemin minimal certifié (potentiels, 0-1 BFS, flot max/coupure min) sur pavage hexagonal (op 13 #12204) │ ├── Part2-CSP/ # Programmation par Contraintes (Python + jumeaux C#, marathon #4956 achevé) -│ ├── CSP-1-Fundamentals.ipynb -│ ├── CSP-2-Consistency.ipynb -│ ├── CSP-3-Advanced.ipynb -│ ├── CSP-4-Scheduling.ipynb -│ ├── CSP-5-Optimization.ipynb -│ ├── CSP-6-Hybridization.ipynb -│ ├── CSP-7-Soft.ipynb -│ ├── CSP-8-Temporal.ipynb -│ └── CSP-9-Distributed.ipynb +│ ├── CSP-01-Fundamentals-Python.ipynb +│ ├── CSP-02-Consistency-Python.ipynb +│ ├── CSP-03-Advanced-Python.ipynb +│ ├── CSP-04-Scheduling-Python.ipynb +│ ├── CSP-05-Optimization-Python.ipynb +│ ├── CSP-06-Hybridization-Python.ipynb +│ ├── CSP-07-Soft-Python.ipynb +│ ├── CSP-08-Temporal-Python.ipynb +│ └── CSP-09-Distributed-Python.ipynb │ ├── Part3-Cas-pratiques/ # Partie 3 — cas pratiques en dossier plat (Python + jumeaux C#, sélection ci-dessous) │ ├── App-01-NQueens-Python.ipynb @@ -413,7 +413,7 @@ Search/ │ └── _archive/ # Notebooks racine archivés (C209 tranche 8/8 #5081) — voir _archive/README.md ├── README.md - ├── CSPs_Intro.ipynb # Remplacé par Part2-CSP/CSP-1-Fundamentals.ipynb + ├── CSPs_Intro.ipynb # Remplacé par Part2-CSP/CSP-01-Fundamentals-Python.ipynb └── Exploration_non_informée_et_informée_intro.ipynb # Remplacé par Part1-Foundations/Search-{2,3}-... ``` @@ -495,7 +495,7 @@ Audit **disque ↔ CATALOG-STATUS ↔ prose** vérifié firsthand via `git ls-fi | **Part 2 — Programmation par Contraintes** (`Part2-CSP/`) | **18** (9 Python : CSP-1 → CSP-9 + **9 jumeaux C#**, marathon #4956 achevé) | Python + .NET (C#) | CSP Fundamentals (backtracking), AC-3/FC/MAC, CSP Advanced (AllDifferent/Cumulative/Circuit), Scheduling (Job-Shop/RCPSP/Nurse), Optimization (Bin Packing/Knapsack), Hybridization (LCG/CP+SAT/CP+ML/LLM+CSP), Soft, Temporal (Allen's Interval Algebra), Distributed (Yokoo 1992) | | **Part 4 — Métaheuristiques composables** (`Part4-Metaheuristics/`, C# .NET 9, MetaGeneticSharp) | **35** (MGS-1 → MGS-31 : cœur MGS-1..19, **trilogie MGS-7b/7c/7d** de projection N-D des paysages, MGS-17b sélection empirique, **MGS-21** représentation vs algorithme ; le **volet comparatif vs MEALPY** (MGS-22..31) vit dans la sous-série [`Part4-Metaheuristics/MGS-vs-mealpy/`](Part4-Metaheuristics/MGS-vs-mealpy/README.md) — duels PSO/DE/SA/WOA/EO/FBI/BBPSO/GA/ScatterSearch vs Mealpy + synthèse croisée ; tous C# .NET au-dessus de GeneticSharp vendored) | C# / .NET | Composition, Eukaryote, Islands, Compound Metaheuristics, TSP, projection N-D des paysages, Landscape Explorer, Center Bias, Island Synergy, Axis Alignment, Landscape Debias, Island Synergy Found, Landscape Analysis (FDC), Algorithm Selection (No-Free-Lunch), Parameter Control, CEC Banc, Metropolis Reinsertion, représentation vs algorithme, [campagne comparative MGS vs mealpy](Part4-Metaheuristics/MGS-vs-mealpy/README.md) | | **Partie 3 — Cas pratiques** (`Part3-Cas-pratiques/`) | **57** (37 Python + 20 C# — **20 binômes Python ⇄ C#** App-1 à App-20, plus compagnons statistical-validity, jumeaux Python et notebooks d'audit App-23 à App-31) | 37 Python + 20 C# | N-Queens, Graph Coloring, Nurse/Job-Shop/Timetabling Scheduling, Minesweeper, Wordle, MiniZinc, Picross (speedup mesuré 17.4x sur 10x10), Sports/Crossword/WFC CSP, SudokuBenchmark, Portfolio/TSP/VRP/Hyperparameter Tuning, Edge Detection, ConnectFour (Minimax/MCTS), Covering Arrays, Algorithm Selection | -| **_archive** (`_archive/`) | **2** (CSPs_Intro, Exploration_non_informée_et_informée_intro, historiques pré-tranche 8/8 #5081) | Python | Notebooks historiques, remplacés par Part2-CSP/CSP-1-Fundamentals et Part1-Foundations/Search-{2,3} | +| **_archive** (`_archive/`) | **2** (CSPs_Intro, Exploration_non_informée_et_informée_intro, historiques pré-tranche 8/8 #5081) | Python | Notebooks historiques, remplacés par Part2-CSP/CSP-01-Fundamentals-Python et Part1-Foundations/Search-{2,3} | | **Total** | **153** (43 + 18 + 35 + 57 = 153 pédagogiques, Search-09d inclus + 2 archive = 155) | Python + Lean 4 + C# | 4 piliers + archive, voir « Structure des fichiers » pour l'arborescence complète | **Note de maturité** : la validation end-to-end (Python 3.10+ stdlib + `ortools` + `deap` + `networkx` + `mealpy` + `pygad` ; C# = .NET 9.0 + `Microsoft.dotnet-interactive`) est documentée PR par PR dans l'EPIC #4956 pour les jumeaux C#, et dans les PRs po-2025:CoursIA-2 pour la série landscape-bias MGS-10 → MGS-19 (analyse comparative NFL/WOA encore en cours, cf EPIC #3975). @@ -568,7 +568,7 @@ La thèse est puissante et honnêtement présentée : il n'existe pas d'algorith - **Élargir aux jeux et à l'apprentissage par renforcement** : [GameTheory](../GameTheory/README.md) (Minimax, MCTS, choix social) et les notebooks RL (MCTS + DQN, AlphaGo) reprennent la recherche adversariale sous l'angle de l'apprentissage — où la valeur des positions n'est plus calculée mais *apprise*. - **Pratiquer sur la couverture exacte** : [Sudoku](../Sudoku/README.md) (DLX, automates symboliques) applique Dancing Links et les techniques de cette série à une famille de puzzles combinatoires concrets. - **Construire plutôt qu'utiliser** : la [Partie 4 — métaheuristiques composables](Part4-Metaheuristics/README.md) (C# .NET 9, MetaGeneticSharp) prolonge [Search-5](Part1-Foundations/Search-05-GeneticAlgorithms.ipynb)/[Search-11](Part1-Foundations/Search-11-Metaheuristics.ipynb) sous l'angle de l'*ingénierie* — au lieu d'importer WOA ou EO, on les *reconstruit* depuis des primitives composables (`Match`, `Container`, grammaire fluente) au-dessus de GeneticSharp, et l'on assemble des configurations qu'aucune bibliothèque monolithique n'offre (sous-populations spécialisées, îles migratoires). -- Pour la pratique : reprenez [CSP-6-Hybridization](Part2-CSP/CSP-6-Hybridization.ipynb) et expérimentez le pont LLM+CSP — comment un modèle de langage peut-il *amorçer* un solveur par contraintes, et où cette hybridation gagne-t-elle (ou perd-elle) par rapport au CP-SAT pur ? +- Pour la pratique : reprenez [CSP-06-Hybridization-Python](Part2-CSP/CSP-06-Hybridization-Python.ipynb) et expérimentez le pont LLM+CSP — comment un modèle de langage peut-il *amorçer* un solveur par contraintes, et où cette hybridation gagne-t-elle (ou perd-elle) par rapport au CP-SAT pur ? ### Le fil rouge diff --git a/MyIA.AI.Notebooks/Search/index.qmd b/MyIA.AI.Notebooks/Search/index.qmd index 8da9c5b71a1..08115b52fd9 100644 --- a/MyIA.AI.Notebooks/Search/index.qmd +++ b/MyIA.AI.Notebooks/Search/index.qmd @@ -57,16 +57,16 @@ listing: page-size: 12 - id: csp contents: - - "Part2-CSP/CSP-1-Fundamentals.ipynb" - - "Part2-CSP/CSP-2-Consistency.ipynb" - - "Part2-CSP/CSP-3-Advanced.ipynb" - - "Part2-CSP/CSP-4-Scheduling.ipynb" - - "Part2-CSP/CSP-5-Optimization.ipynb" - - "Part2-CSP/CSP-6-Hybridization.ipynb" - - "Part2-CSP/CSP-7-Soft.ipynb" - - "Part2-CSP/CSP-8-Temporal.ipynb" - - "Part2-CSP/CSP-9-Distributed.ipynb" - - "Part2-CSP/CSP-10-Optimisation-Z3.ipynb" + - "Part2-CSP/CSP-01-Fundamentals-Python.ipynb" + - "Part2-CSP/CSP-02-Consistency-Python.ipynb" + - "Part2-CSP/CSP-03-Advanced-Python.ipynb" + - "Part2-CSP/CSP-04-Scheduling-Python.ipynb" + - "Part2-CSP/CSP-05-Optimization-Python.ipynb" + - "Part2-CSP/CSP-06-Hybridization-Python.ipynb" + - "Part2-CSP/CSP-07-Soft-Python.ipynb" + - "Part2-CSP/CSP-08-Temporal-Python.ipynb" + - "Part2-CSP/CSP-09-Distributed-Python.ipynb" + - "Part2-CSP/CSP-10-Optimisation-Z3-Python.ipynb" type: grid sort: "filename" page-size: 12 diff --git a/MyIA.AI.Notebooks/Search/search_helpers.py b/MyIA.AI.Notebooks/Search/search_helpers.py index 7463be64aa1..3cf1cbdff7c 100644 --- a/MyIA.AI.Notebooks/Search/search_helpers.py +++ b/MyIA.AI.Notebooks/Search/search_helpers.py @@ -162,7 +162,7 @@ def draw_csp_graph(variables: list, domains: dict, constraints: list, pos: dictionnaire optionnel {variable: (x, y)} de positions fixes. Si None (defaut), utilise nx.spring_layout (force-directed, non geographique). Passer un dict explicite pour une carte geographique - (cf. CSP-1-Fundamentals Australie : positions AIMA-compatible + (cf. CSP-01-Fundamentals-Python Australie : positions AIMA-compatible pour que NT/WA/SA/Q/NSW/V/T apparaissent a l'endroit). Raises: diff --git a/MyIA.AI.Notebooks/Search/tests/test_search_helpers.py b/MyIA.AI.Notebooks/Search/tests/test_search_helpers.py index bb2299adcf1..29f27a78f94 100644 --- a/MyIA.AI.Notebooks/Search/tests/test_search_helpers.py +++ b/MyIA.AI.Notebooks/Search/tests/test_search_helpers.py @@ -197,7 +197,7 @@ def test_pos_non_dict_raises_typeerror(self): def test_valid_inputs_unaffected(self): """The guards must not perturb the happy path: a small CSP with a - geographic ``pos`` (the Australia use-case from CSP-1-Fundamentals) + geographic ``pos`` (the Australia use-case from CSP-01-Fundamentals-Python) still renders a figure. """ pos = {"WA": (0, 1), "NT": (1, 2), "SA": (1, 1)} diff --git a/MyIA.AI.Notebooks/Sudoku/Sudoku-01-Backtracking-CSharp.ipynb b/MyIA.AI.Notebooks/Sudoku/Sudoku-01-Backtracking-CSharp.ipynb index caa70caffc7..7af8e1be7a5 100644 --- a/MyIA.AI.Notebooks/Sudoku/Sudoku-01-Backtracking-CSharp.ipynb +++ b/MyIA.AI.Notebooks/Sudoku/Sudoku-01-Backtracking-CSharp.ipynb @@ -18,7 +18,7 @@ "2. **Comprendre** l'exploration en profondeur et le retour arrière\n", "3. **Analyser** les performances du backtracking selon la difficulté des puzzles\n", "\n", - "**Durée estimée** : ~7 min | **Prérequis** : [Sudoku-00 Environment](Sudoku-00-Environment-CSharp.ipynb) | **Lien** : Voir [CSP-1-Fondamentaux](../Search/Part2-CSP/CSP-1-Fundamentals.ipynb) pour la théorie du backtracking\n", + "**Durée estimée** : ~7 min | **Prérequis** : [Sudoku-00 Environment](Sudoku-00-Environment-CSharp.ipynb) | **Lien** : Voir [CSP-1-Fondamentaux](../Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb) pour la théorie du backtracking\n", "\n", "***\n", "\n", diff --git a/MyIA.AI.Notebooks/Sudoku/Sudoku-06-AIMA-CSP-CSharp.ipynb b/MyIA.AI.Notebooks/Sudoku/Sudoku-06-AIMA-CSP-CSharp.ipynb index 99b64e0b37a..3db712e8745 100644 --- a/MyIA.AI.Notebooks/Sudoku/Sudoku-06-AIMA-CSP-CSharp.ipynb +++ b/MyIA.AI.Notebooks/Sudoku/Sudoku-06-AIMA-CSP-CSharp.ipynb @@ -1760,7 +1760,7 @@ "- **Sudoku-07-Norvig** : Propagation plus poussées (naked/hidden singles)\n", "- **Sudoku-08-HumanStrategies** : Techniques d'inference avancees\n", "- **Sudoku-10-ORTools** : Bibliotheque industrielle avec propagation optimisee\n", - "- **Search/Part2-CSP** (CSP-1-Fundamentals, CSP-2-Consistency, CSP-3-Advanced) : Fondements théoriques des CSP -- CSP-2-Consistency détaille la consistance d'arc / AC-3" + "- **Search/Part2-CSP** (CSP-01-Fundamentals-Python, CSP-02-Consistency-Python, CSP-03-Advanced-Python) : Fondements théoriques des CSP -- CSP-02-Consistency-Python détaille la consistance d'arc / AC-3" ] }, { diff --git a/MyIA.AI.Notebooks/Sudoku/Sudoku-07-Norvig-CSharp.ipynb b/MyIA.AI.Notebooks/Sudoku/Sudoku-07-Norvig-CSharp.ipynb index 740c6140b87..70201338f89 100644 --- a/MyIA.AI.Notebooks/Sudoku/Sudoku-07-Norvig-CSharp.ipynb +++ b/MyIA.AI.Notebooks/Sudoku/Sudoku-07-Norvig-CSharp.ipynb @@ -26,7 +26,7 @@ "### Durée estimée : 20 minutes\n", "\n", "### Liens\n", - "- Voir [CSP-2-Consistance](../Search/Part2-CSP/CSP-2-Consistency.ipynb) pour la théorie de la propagation de contraintes\n", + "- Voir [CSP-2-Consistance](../Search/Part2-CSP/CSP-02-Consistency-Python.ipynb) pour la théorie de la propagation de contraintes\n", "- [Article original de Peter Norvig (2006)](http://norvig.com/sudoku.html)\n" ] }, @@ -1672,7 +1672,7 @@ "### Pour aller plus loin\n", "\n", "- **Techniques de propagation avancées** : paires nues, triples nus, X-wing, swordfish (voir Exercice 1)\n", - "- **Théorie de la propagation** : voir [CSP-2-Consistance](../Search/Part2-CSP/CSP-2-Consistency.ipynb) pour une présentation formelle de l'arc-consistance et des algorithmes AC-3, MAC\n", + "- **Théorie de la propagation** : voir [CSP-2-Consistance](../Search/Part2-CSP/CSP-02-Consistency-Python.ipynb) pour une présentation formelle de l'arc-consistance et des algorithmes AC-3, MAC\n", "- **Comparaison avec les solveurs spécialisés** : OR-Tools (Sudoku-10) et Dancing Links (Sudoku-02) utilisent des mécanismes différents mais reposent aussi sur la propagation de contraintes\n", "\n", "### Ressources\n", diff --git a/MyIA.AI.Notebooks/Sudoku/Sudoku-08-HumanStrategies-CSharp.ipynb b/MyIA.AI.Notebooks/Sudoku/Sudoku-08-HumanStrategies-CSharp.ipynb index ebf4a1161a7..91afd7ffa2e 100644 --- a/MyIA.AI.Notebooks/Sudoku/Sudoku-08-HumanStrategies-CSharp.ipynb +++ b/MyIA.AI.Notebooks/Sudoku/Sudoku-08-HumanStrategies-CSharp.ipynb @@ -2392,7 +2392,7 @@ "***\n", "\n", "**Voir aussi** :\n", - "- [CSP-2-Consistance](../Search/Part2-CSP/CSP-2-Consistency.ipynb) - Propagation de contraintes\n", + "- [CSP-2-Consistance](../Search/Part2-CSP/CSP-02-Consistency-Python.ipynb) - Propagation de contraintes\n", "- [Sudoku-07-Norvig](Sudoku-07-Norvig-CSharp.ipynb) - Propagation de Norvig\n", "\n", "***\n", diff --git a/MyIA.AI.Notebooks/Sudoku/Sudoku-09-GraphColoring-CSharp.ipynb b/MyIA.AI.Notebooks/Sudoku/Sudoku-09-GraphColoring-CSharp.ipynb index e6338ae5fda..36d5741bdb7 100644 --- a/MyIA.AI.Notebooks/Sudoku/Sudoku-09-GraphColoring-CSharp.ipynb +++ b/MyIA.AI.Notebooks/Sudoku/Sudoku-09-GraphColoring-CSharp.ipynb @@ -1781,7 +1781,7 @@ "|----------|-----------------|\n", "| [Sudoku-06-AIMA-CSP](./Sudoku-06-AIMA-CSP-CSharp.ipynb) | CSP = coloration avec variables/domaines/contraintes |\n", "| [Sudoku-07-Norvig](./Sudoku-07-Norvig-CSharp.ipynb) | Propagation similaire a la réduction de domaine |\n", - "| [CSP-1-Fondamentaux](../Search/Part2-CSP/CSP-1-Fundamentals.ipynb) | Théorie générale des CSP |\n", + "| [CSP-1-Fondamentaux](../Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb) | Théorie générale des CSP |\n", "\n", "***\n", "\n", diff --git a/MyIA.AI.Notebooks/Sudoku/Sudoku-10-CP-SAT-Rust.ipynb b/MyIA.AI.Notebooks/Sudoku/Sudoku-10-CP-SAT-Rust.ipynb index bac95603cf9..bebfc82164a 100644 --- a/MyIA.AI.Notebooks/Sudoku/Sudoku-10-CP-SAT-Rust.ipynb +++ b/MyIA.AI.Notebooks/Sudoku/Sudoku-10-CP-SAT-Rust.ipynb @@ -17,7 +17,7 @@ "3. Comparer les performances d'un solveur industriel avec le backtracking\n", "4. Utiliser la contrainte AllDifferent pour modéliser des problèmes combinatoires\n", "\n", - "**Durée estimee** : ~15 min | **Prerequis** : [Sudoku-00 Environment](Sudoku-00-Environment-CSharp.ipynb) | **Lien** : Voir [CSP-3-Avance](../Search/Part2-CSP/CSP-3-Advanced.ipynb)\n", + "**Durée estimee** : ~15 min | **Prerequis** : [Sudoku-00 Environment](Sudoku-00-Environment-CSharp.ipynb) | **Lien** : Voir [CSP-3-Avance](../Search/Part2-CSP/CSP-03-Advanced-Python.ipynb)\n", "\n", "***\n", "\n", diff --git a/MyIA.AI.Notebooks/Sudoku/Sudoku-10-ORTools-CSharp.ipynb b/MyIA.AI.Notebooks/Sudoku/Sudoku-10-ORTools-CSharp.ipynb index 58ebce1547b..b070b4d326a 100644 --- a/MyIA.AI.Notebooks/Sudoku/Sudoku-10-ORTools-CSharp.ipynb +++ b/MyIA.AI.Notebooks/Sudoku/Sudoku-10-ORTools-CSharp.ipynb @@ -25,7 +25,7 @@ "\n", "### Durée estimée : 50 minutes\n", "\n", - "**Voir aussi** : [CSP-1-Fondamentaux](../Search/Part2-CSP/CSP-1-Fundamentals.ipynb) pour les bases de CSP\n", + "**Voir aussi** : [CSP-1-Fondamentaux](../Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb) pour les bases de CSP\n", "\n", "***\n", "\n", @@ -1494,7 +1494,7 @@ "- [Sudoku-11 Choco](Sudoku-11-Choco-CSharp.ipynb) — la même famille de résolution par contraintes, avec la bibliothèque Choco : comparez l'expressivité des deux APIs sur le même problème.\n", "- [Sudoku-12 Z3](Sudoku-12-Z3-CSharp.ipynb) — le solveur SMT Z3 : la vérification formelle appliquée au Sudoku, et une autre lecture de la garantie de solution.\n", "- [Sudoku-15 Infer.NET](Sudoku-15-Infer-CSharp.ipynb) — l'approche **probabiliste** du même puzzle : là où CP-SAT garantit, l'inférence approximée échoue parfois — le contraste est instructif.\n", - "- [CSP-1-Fondamentaux](../Search/Part2-CSP/CSP-1-Fundamentals.ipynb) et [CSP-2-Consistance](../Search/Part2-CSP/CSP-2-Consistency.ipynb) — les fondements théoriques (variables, domaines, propagation) derrière les solveurs utilisés ici.\n" + "- [CSP-1-Fondamentaux](../Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb) et [CSP-2-Consistance](../Search/Part2-CSP/CSP-02-Consistency-Python.ipynb) — les fondements théoriques (variables, domaines, propagation) derrière les solveurs utilisés ici.\n" ] }, { @@ -1509,8 +1509,8 @@ "**Navigation** : [<< Sudoku-09 Graph Coloring C#](Sudoku-09-GraphColoring-CSharp.ipynb) | [Index](README.md) | [Sudoku-11 Choco C# >>](Sudoku-11-Choco-CSharp.ipynb)\n", "\n", "**Voir aussi** : \n", - "- [CSP-1-Fondamentaux](../Search/Part2-CSP/CSP-1-Fundamentals.ipynb) - Fondamentaux CSP\n", - "- [CSP-2-Consistance](../Search/Part2-CSP/CSP-2-Consistency.ipynb) - Propagation de contraintes\n", + "- [CSP-1-Fondamentaux](../Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb) - Fondamentaux CSP\n", + "- [CSP-2-Consistance](../Search/Part2-CSP/CSP-02-Consistency-Python.ipynb) - Propagation de contraintes\n", "- [App-01-NQueens-Python](../Search/Part3-Cas-pratiques/App-01-NQueens-Python.ipynb) - Autre application CSP" ] } diff --git a/MyIA.AI.Notebooks/Sudoku/Sudoku-10-ORTools-Python.ipynb b/MyIA.AI.Notebooks/Sudoku/Sudoku-10-ORTools-Python.ipynb index f8801eb3706..2e1d360c54c 100644 --- a/MyIA.AI.Notebooks/Sudoku/Sudoku-10-ORTools-Python.ipynb +++ b/MyIA.AI.Notebooks/Sudoku/Sudoku-10-ORTools-Python.ipynb @@ -26,7 +26,7 @@ "3. Comparer les performances d'un solveur industriel avec le backtracking\n", "4. Utiliser la contrainte AllDifferent pour modéliser des problèmes combinatoires\n", "\n", - "**Durée estimee** : ~10 min | **Prerequis** : [Sudoku-00 Environment](Sudoku-00-Environment-CSharp.ipynb) | **Lien** : Voir [CSP-3-Avance](../Search/Part2-CSP/CSP-3-Advanced.ipynb)\n", + "**Durée estimee** : ~10 min | **Prerequis** : [Sudoku-00 Environment](Sudoku-00-Environment-CSharp.ipynb) | **Lien** : Voir [CSP-3-Avance](../Search/Part2-CSP/CSP-03-Advanced-Python.ipynb)\n", "\n", "***\n", "\n", diff --git a/MyIA.AI.Notebooks/Sudoku/Sudoku-11-Choco-Python.ipynb b/MyIA.AI.Notebooks/Sudoku/Sudoku-11-Choco-Python.ipynb index d81d93b375c..052bafbaf87 100644 --- a/MyIA.AI.Notebooks/Sudoku/Sudoku-11-Choco-Python.ipynb +++ b/MyIA.AI.Notebooks/Sudoku/Sudoku-11-Choco-Python.ipynb @@ -1810,7 +1810,7 @@ "| [Sudoku-10-ORTools](./Sudoku-10-ORTools-Python.ipynb) | CP-SAT vs Choco: deux approches CP différentes |\n", "| [Sudoku-06-AIMA-CSP](./Sudoku-06-AIMA-CSP-Python.ipynb) | Théorie des CSP et backtracking |\n", "| [Sudoku-12-Z3](./Sudoku-12-Z3-Python.ipynb) | SMT solving vs Constraint Programming |\n", - "| [CSP-1-Fondamentaux](../Search/Part2-CSP/CSP-1-Fundamentals.ipynb) | Fondements théoriques des CSP |\n", + "| [CSP-1-Fondamentaux](../Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb) | Fondements théoriques des CSP |\n", "\n", "***\n", "\n", diff --git a/MyIA.AI.Notebooks/Sudoku/Sudoku-12-Z3-CSharp.ipynb b/MyIA.AI.Notebooks/Sudoku/Sudoku-12-Z3-CSharp.ipynb index 880c81380ca..016584a7dfe 100644 --- a/MyIA.AI.Notebooks/Sudoku/Sudoku-12-Z3-CSharp.ipynb +++ b/MyIA.AI.Notebooks/Sudoku/Sudoku-12-Z3-CSharp.ipynb @@ -35,7 +35,7 @@ "\n", "### Voir aussi\n", "\n", - "- [CSP-3-Avance](../Search/Part2-CSP/CSP-3-Advanced.ipynb) - Contraintes globales avancees\n", + "- [CSP-3-Avance](../Search/Part2-CSP/CSP-03-Advanced-Python.ipynb) - Contraintes globales avancees\n", "- [SymbolicAI](../SymbolicAI/README.md) - Série complète sur l'IA symbolique avec Z3\n", "\n", "## Introduction à Z3\n", @@ -2594,7 +2594,7 @@ "**Navigation** : [<< Sudoku-11 Choco C#](Sudoku-11-Choco-CSharp.ipynb) | [Index](README.md) | [Sudoku-13 Symbolic Automata C# >>](Sudoku-13-SymbolicAutomata-CSharp.ipynb)\n", "\n", "**Voir aussi** : \n", - "- [CSP-3-Avance](../Search/Part2-CSP/CSP-3-Advanced.ipynb) - Contraintes globales avancees\n", + "- [CSP-3-Avance](../Search/Part2-CSP/CSP-03-Advanced-Python.ipynb) - Contraintes globales avancees\n", "- [SymbolicAI](../SymbolicAI/README.md) - Série sur l'IA symbolique et Z3" ] } diff --git a/_quarto.yml b/_quarto.yml index cea9adf66be..720526b64d2 100644 --- a/_quarto.yml +++ b/_quarto.yml @@ -2426,28 +2426,28 @@ project: - "MyIA.AI.Notebooks/Search/Part1-Foundations/Search-13-AutomaticGroups-WordProblem.ipynb" - "MyIA.AI.Notebooks/Search/Part1-Foundations/Search-13a-Traverser-Murs-Certifies-CSharp.ipynb" - "MyIA.AI.Notebooks/Search/Part1-Foundations/Search-13a-Traverser-Murs-Certifies.ipynb" - - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb" - - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb" + - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb" + - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb" - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-CSharp.ipynb" - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Rust.ipynb" - - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3.ipynb" - - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb" - - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb" - - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced-CSharp.ipynb" - - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb" - - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-CSharp.ipynb" - - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-Rust.ipynb" - - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb" - - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization-CSharp.ipynb" - - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb" - - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb" - - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb" - - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb" - - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb" - - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb" - - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb" - - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb" - - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb" + - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Python.ipynb" + - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb" + - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb" + - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-CSharp.ipynb" + - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb" + - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-CSharp.ipynb" + - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Rust.ipynb" + - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb" + - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-CSharp.ipynb" + - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb" + - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb" + - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb" + - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb" + - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb" + - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb" + - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb" + - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb" + - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb" - "MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-01-NQueens-CSharp.ipynb" - "MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-01-NQueens-Python.ipynb" - "MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-02-GraphColoring-CSharp.ipynb" diff --git a/docs/curriculum/aima-mapping/aima-walk-chapitres.csv b/docs/curriculum/aima-mapping/aima-walk-chapitres.csv index 48b22b65cd5..7e5630cfafe 100644 --- a/docs/curriculum/aima-mapping/aima-walk-chapitres.csv +++ b/docs/curriculum/aima-mapping/aima-walk-chapitres.csv @@ -2,7 +2,7 @@ phase,titre_phase,chapitre_4e_cite,titre_4e,chapitre_3e_apparie,titre_3e,decalag Phase 1,"Résoudre des problèmes par la recherche — Search-01→03, ~3 h 45",3,Solving Problems by Searching,3,Solving Problems by Searching,0,6,vote,,Search-01-StateSpace.ipynb; Search-02-Uninformed.ipynb; Search-02b-NetworkX.ipynb; Search-03-Informed.ipynb; Search-03e-AStar-Optimality.ipynb,RCA-4C; AI4K12-2; RCA-3C; RCA-3A, Phase 2,"Au-delà du classique : recherche locale — Search-04→05, ~2 h 15",4,Search in Complex Environments,4,Beyond Classical Search,0,5,vote,,Search-04-LocalSearch.ipynb; Search-05-GeneticAlgorithms.ipynb; MGS-01-Introduction.ipynb,RCA-3C; RCA-3A; RCA-4A; AI4K12-3, | etape 5 : ouverture du dépôt **au-delà d'AIMA** : métaheuristiques composées (série MetaGeneticSharp). Phase 3,"Recherche adversariale — Search-06→07, ~1 h 30",5,Adversarial Search and Games,5,Adversarial Search,0,6,vote,,Search-06-AdversarialSearch.ipynb; Search-07-MCTS-And-Beyond.ipynb,RCA-3C; AI4K12-2; RCA-3A; AI4K12-3, -Phase 4,"Problèmes de satisfaction de contraintes — CSP-1→2, ~1 h 45",6,Constraint Satisfaction Problems,6,Constraint Satisfaction Problems,0,5,vote,,CSP-1-Fundamentals.ipynb; CSP-2-Consistency.ipynb,RCA-4C; AI4K12-2; RCA-3A, +Phase 4,"Problèmes de satisfaction de contraintes — CSP-1→2, ~1 h 45",6,Constraint Satisfaction Problems,6,Constraint Satisfaction Problems,0,5,vote,,CSP-01-Fundamentals-Python.ipynb; CSP-02-Consistency-Python.ipynb,RCA-4C; AI4K12-2; RCA-3A, Phase 5,"Logique — Tweety, ~2 h 15",7,Logical Agents,7,Logical Agents,0,7,vote,,Tweety-02-Basic-Logics-Python.ipynb; Tweety-02c-FOL-CSharp.ipynb; Tweety-03-Advanced-Logics-Python.ipynb; Tweety-11-Causal-Python.ipynb,RCA-3C; AI4K12-2; RCA-3A, Phase 5,"Logique — Tweety, ~2 h 15",9,Inference in First-Order Logic,9,Inference in First-Order Logic,0,5,vote,,Tweety-02-Basic-Logics-Python.ipynb; Tweety-02c-FOL-CSharp.ipynb; Tweety-03-Advanced-Logics-Python.ipynb; Tweety-11-Causal-Python.ipynb,RCA-3C; AI4K12-2; RCA-3A, Phase 6,Planification — série Planners (durée non chiffrée ici),10,Knowledge Representation,12,Knowledge Representation,2,6,declare,"la 4e porte la representation des connaissances au ch. 10, la 3e au ch. 12 : decalage de deux chapitres",SymbolicAI/Planners/,RCA-4C; RCA-3A, diff --git a/docs/curriculum/aima-mapping/aima-walk-sections.csv b/docs/curriculum/aima-mapping/aima-walk-sections.csv index 77930924ad0..fcfacbdc2e3 100644 --- a/docs/curriculum/aima-mapping/aima-walk-sections.csv +++ b/docs/curriculum/aima-mapping/aima-walk-sections.csv @@ -31,12 +31,12 @@ edition,niveau,numero,titre,chapitre,page_pdf,phases,carnets,competences,couvert 3e,section,5.6,Partially Observable Games,5,199,Phase 3,Search-06-AdversarialSearch.ipynb; Search-07-MCTS-And-Beyond.ipynb,RCA-3C; AI4K12-2; RCA-3A; AI4K12-3,oui 3e,section,5.7,State-of-the-Art Game Programs,5,204,Phase 3,Search-06-AdversarialSearch.ipynb; Search-07-MCTS-And-Beyond.ipynb,RCA-3C; AI4K12-2; RCA-3A; AI4K12-3,oui 3e,section,5.8,Alternative Approaches,5,206,Phase 3,Search-06-AdversarialSearch.ipynb; Search-07-MCTS-And-Beyond.ipynb,RCA-3C; AI4K12-2; RCA-3A; AI4K12-3,oui -3e,chapter,6,Constraint Satisfaction Problems,6,221,Phase 4,CSP-1-Fundamentals.ipynb; CSP-2-Consistency.ipynb,RCA-4C; AI4K12-2; RCA-3A,oui -3e,section,6.1,Defining Constraint Satisfaction Problems,6,221,Phase 4,CSP-1-Fundamentals.ipynb; CSP-2-Consistency.ipynb,RCA-4C; AI4K12-2; RCA-3A,oui -3e,section,6.2,Constraint Propagation: Inference in CSPs,6,227,Phase 4,CSP-1-Fundamentals.ipynb; CSP-2-Consistency.ipynb,RCA-4C; AI4K12-2; RCA-3A,oui -3e,section,6.3,Backtracking Search for CSPs,6,233,Phase 4,CSP-1-Fundamentals.ipynb; CSP-2-Consistency.ipynb,RCA-4C; AI4K12-2; RCA-3A,oui -3e,section,6.4,Local Search for CSPs,6,239,Phase 4,CSP-1-Fundamentals.ipynb; CSP-2-Consistency.ipynb,RCA-4C; AI4K12-2; RCA-3A,oui -3e,section,6.5,The Structure of Problems,6,241,Phase 4,CSP-1-Fundamentals.ipynb; CSP-2-Consistency.ipynb,RCA-4C; AI4K12-2; RCA-3A,oui +3e,chapter,6,Constraint Satisfaction Problems,6,221,Phase 4,CSP-01-Fundamentals-Python.ipynb; CSP-02-Consistency-Python.ipynb,RCA-4C; AI4K12-2; RCA-3A,oui +3e,section,6.1,Defining Constraint Satisfaction Problems,6,221,Phase 4,CSP-01-Fundamentals-Python.ipynb; CSP-02-Consistency-Python.ipynb,RCA-4C; AI4K12-2; RCA-3A,oui +3e,section,6.2,Constraint Propagation: Inference in CSPs,6,227,Phase 4,CSP-01-Fundamentals-Python.ipynb; CSP-02-Consistency-Python.ipynb,RCA-4C; AI4K12-2; RCA-3A,oui +3e,section,6.3,Backtracking Search for CSPs,6,233,Phase 4,CSP-01-Fundamentals-Python.ipynb; CSP-02-Consistency-Python.ipynb,RCA-4C; AI4K12-2; RCA-3A,oui +3e,section,6.4,Local Search for CSPs,6,239,Phase 4,CSP-01-Fundamentals-Python.ipynb; CSP-02-Consistency-Python.ipynb,RCA-4C; AI4K12-2; RCA-3A,oui +3e,section,6.5,The Structure of Problems,6,241,Phase 4,CSP-01-Fundamentals-Python.ipynb; CSP-02-Consistency-Python.ipynb,RCA-4C; AI4K12-2; RCA-3A,oui 3e,chapter,7,Logical Agents,7,253,Phase 5,Tweety-02-Basic-Logics-Python.ipynb; Tweety-02c-FOL-CSharp.ipynb; Tweety-03-Advanced-Logics-Python.ipynb; Tweety-11-Causal-Python.ipynb,RCA-3C; AI4K12-2; RCA-3A,oui 3e,section,7.1,Knowledge-Based Agents,7,254,Phase 5,Tweety-02-Basic-Logics-Python.ipynb; Tweety-02c-FOL-CSharp.ipynb; Tweety-03-Advanced-Logics-Python.ipynb; Tweety-11-Causal-Python.ipynb,RCA-3C; AI4K12-2; RCA-3A,oui 3e,section,7.2,The Wumpus World,7,255,Phase 5,Tweety-02-Basic-Logics-Python.ipynb; Tweety-02c-FOL-CSharp.ipynb; Tweety-03-Advanced-Logics-Python.ipynb; Tweety-11-Causal-Python.ipynb,RCA-3C; AI4K12-2; RCA-3A,oui @@ -209,12 +209,12 @@ edition,niveau,numero,titre,chapitre,page_pdf,phases,carnets,competences,couvert 4e,section,5.5,Stochastic Games,5,326,Phase 3,Search-06-AdversarialSearch.ipynb; Search-07-MCTS-And-Beyond.ipynb,RCA-3C; AI4K12-2; RCA-3A; AI4K12-3,oui 4e,section,5.6,Partially Observable Games,5,338,Phase 3,Search-06-AdversarialSearch.ipynb; Search-07-MCTS-And-Beyond.ipynb,RCA-3C; AI4K12-2; RCA-3A; AI4K12-3,oui 4e,section,5.7,Limitations of Game Search Algorithms,5,346,Phase 3,Search-06-AdversarialSearch.ipynb; Search-07-MCTS-And-Beyond.ipynb,RCA-3C; AI4K12-2; RCA-3A; AI4K12-3,oui -4e,chapter,6,Constraint Satisfaction Problems,6,359,Phase 4,CSP-1-Fundamentals.ipynb; CSP-2-Consistency.ipynb,RCA-4C; AI4K12-2; RCA-3A,oui -4e,section,6.1,Defining Constraint Satisfaction Problems,6,360,Phase 4,CSP-1-Fundamentals.ipynb; CSP-2-Consistency.ipynb,RCA-4C; AI4K12-2; RCA-3A,oui -4e,section,6.2,Constraint Propagation: Inference in CSPs,6,371,Phase 4,CSP-1-Fundamentals.ipynb; CSP-2-Consistency.ipynb,RCA-4C; AI4K12-2; RCA-3A,oui -4e,section,6.3,Backtracking Search for CSPs,6,381,Phase 4,CSP-1-Fundamentals.ipynb; CSP-2-Consistency.ipynb,RCA-4C; AI4K12-2; RCA-3A,oui -4e,section,6.4,Local Search for CSPs,6,391,Phase 4,CSP-1-Fundamentals.ipynb; CSP-2-Consistency.ipynb,RCA-4C; AI4K12-2; RCA-3A,oui -4e,section,6.5,The Structure of Problems,6,394,Phase 4,CSP-1-Fundamentals.ipynb; CSP-2-Consistency.ipynb,RCA-4C; AI4K12-2; RCA-3A,oui +4e,chapter,6,Constraint Satisfaction Problems,6,359,Phase 4,CSP-01-Fundamentals-Python.ipynb; CSP-02-Consistency-Python.ipynb,RCA-4C; AI4K12-2; RCA-3A,oui +4e,section,6.1,Defining Constraint Satisfaction Problems,6,360,Phase 4,CSP-01-Fundamentals-Python.ipynb; CSP-02-Consistency-Python.ipynb,RCA-4C; AI4K12-2; RCA-3A,oui +4e,section,6.2,Constraint Propagation: Inference in CSPs,6,371,Phase 4,CSP-01-Fundamentals-Python.ipynb; CSP-02-Consistency-Python.ipynb,RCA-4C; AI4K12-2; RCA-3A,oui +4e,section,6.3,Backtracking Search for CSPs,6,381,Phase 4,CSP-01-Fundamentals-Python.ipynb; CSP-02-Consistency-Python.ipynb,RCA-4C; AI4K12-2; RCA-3A,oui +4e,section,6.4,Local Search for CSPs,6,391,Phase 4,CSP-01-Fundamentals-Python.ipynb; CSP-02-Consistency-Python.ipynb,RCA-4C; AI4K12-2; RCA-3A,oui +4e,section,6.5,The Structure of Problems,6,394,Phase 4,CSP-01-Fundamentals-Python.ipynb; CSP-02-Consistency-Python.ipynb,RCA-4C; AI4K12-2; RCA-3A,oui 4e,chapter,7,Logical Agents,7,410,Phase 5,Tweety-02-Basic-Logics-Python.ipynb; Tweety-02c-FOL-CSharp.ipynb; Tweety-03-Advanced-Logics-Python.ipynb; Tweety-11-Causal-Python.ipynb,RCA-3C; AI4K12-2; RCA-3A,oui 4e,section,7.1,Knowledge-Based Agents,7,410,Phase 5,Tweety-02-Basic-Logics-Python.ipynb; Tweety-02c-FOL-CSharp.ipynb; Tweety-03-Advanced-Logics-Python.ipynb; Tweety-11-Causal-Python.ipynb,RCA-3C; AI4K12-2; RCA-3A,oui 4e,section,7.2,The Wumpus World,7,411,Phase 5,Tweety-02-Basic-Logics-Python.ipynb; Tweety-02c-FOL-CSharp.ipynb; Tweety-03-Advanced-Logics-Python.ipynb; Tweety-11-Causal-Python.ipynb,RCA-3C; AI4K12-2; RCA-3A,oui diff --git a/docs/curriculum/aima-walk-competences.md b/docs/curriculum/aima-walk-competences.md index 88221318134..ebc9abb5d21 100644 --- a/docs/curriculum/aima-walk-competences.md +++ b/docs/curriculum/aima-walk-competences.md @@ -48,8 +48,8 @@ référencent les phases de [aima-walk.md](aima-walk.md). | 5 (P2) | Search-05-GeneticAlgorithms + MGS-01-Introduction | RCA-3A, RCA-4A, AI4K12-3 | Il fait tourner un algorithme génétique puis ouvre sur les métaheuristiques composées de la série MGS : assembler opérateurs et boucle évolutionnaire relève de la conception d'architecture de solveur. | | 6 (P3) | Search-06-AdversarialSearch | RCA-3C, AI4K12-2 | Il développe l'arbre de jeu de minimax et l'élague en alpha-bêta : représenter un adversaire comme un arbre de décision séquentiel et raisonner dessus. | | 7 (P3) | Search-07-MCTS-And-Beyond | RCA-3A, AI4K12-3 | Il fait échantillonner Monte-Carlo Tree Search par bandits sur des simulations répétées — appliquer une technique d'apprentissage par exploration à la décision séquentielle. | -| 8 (P4) | CSP-1-Fundamentals | RCA-4C, AI4K12-2 | Il modélise un problème en variables/domaines/contraintes puis le résout par backtracking : une seconde famille de délimitation formelle de problème. | -| 9 (P4) | CSP-2-Consistency | RCA-3A | Il propage la cohérence d'arc (AC-3) et ordonne les variables (MRV, forward-checking), mesurant l'effet de chaque heuristique sur l'arbre de recherche. | +| 8 (P4) | CSP-01-Fundamentals-Python | RCA-4C, AI4K12-2 | Il modélise un problème en variables/domaines/contraintes puis le résout par backtracking : une seconde famille de délimitation formelle de problème. | +| 9 (P4) | CSP-02-Consistency-Python | RCA-3A | Il propage la cohérence d'arc (AC-3) et ordonne les variables (MRV, forward-checking), mesurant l'effet de chaque heuristique sur l'arbre de recherche. | | 10 (P5) | Tweety-2-Basic-Logics | RCA-3C, AI4K12-2 | Il représente des énoncés en logique propositionnelle et fait répondre un solveur Tweety : la représentation symbolique comme fondement vérifié par la machine. | | 11 (P5) | Tweety-2c-FOL-Csharp | RCA-3A, AI4K12-2 | Il transpose les mêmes requêtes en logique du premier ordre sur le twin .NET : transférer une représentation d'un formalisme à une API sœur. | | 12 (P5) | Tweety-03-Advanced-Logics-Python | RCA-3C | Il exécute des inférences en logiques par défaut et modales : comprendre que « raisonner » se décline en sémantiques différentes selon ce qu'on veut capturer. | diff --git a/docs/curriculum/aima-walk.md b/docs/curriculum/aima-walk.md index 241261440d8..4c8aeaee4c1 100644 --- a/docs/curriculum/aima-walk.md +++ b/docs/curriculum/aima-walk.md @@ -90,8 +90,8 @@ sont nommés en **Angles morts** en fin de page. ### Phase 4 — Problèmes de satisfaction de contraintes (AIMA ch. 6) — CSP-1→2, ~1 h 45 -8. **[`CSP-1-Fundamentals.ipynb`](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb)** (1 h) — modélisation CSP, backtracking. -9. **[`CSP-2-Consistency.ipynb`](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb)** (45 min) — AC-3, MRV, forward-checking. *La série continue +8. **[`CSP-01-Fundamentals-Python.ipynb`](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb)** (1 h) — modélisation CSP, backtracking. +9. **[`CSP-02-Consistency-Python.ipynb`](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb)** (45 min) — AC-3, MRV, forward-checking. *La série continue jusqu'à CSP-9 (temporel, distribué) pour qui veut prolonger.* ### Phase 5 — Logique (AIMA ch. 7-9) — Tweety, ~2 h 15 diff --git a/docs/curriculum/ia-classique.md b/docs/curriculum/ia-classique.md index 629b680a6fc..f896d54f6fd 100644 --- a/docs/curriculum/ia-classique.md +++ b/docs/curriculum/ia-classique.md @@ -94,28 +94,28 @@ Algorithmes de recherche classique, satisfaction de contraintes (CSP), résoluti | # | Notebook | Maturité | Exécutable | |---|----------|----------|------------| -| 1 | [CSP-1 : Fondamentaux des CSP - Version .NET…](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb) | BETA | Oui | -| 2 | [CSP-1 : Fondamentaux des CSP](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb) | BETA | Oui | +| 1 | [CSP-1 : Fondamentaux des CSP - Version .NET…](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb) | BETA | Oui | +| 2 | [CSP-1 : Fondamentaux des CSP](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb) | BETA | Oui | | 3 | [CSP-10 — Couverture minimale avec Z3 en C#](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-CSharp.ipynb) | BETA | Oui | | 4 | [CSP-10-Optimisation-Z3-Rust : Couverture Minimale avec…](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Rust.ipynb) | BETA | Oui | -| 5 | [CSP-10-Optimisation-Z3 : Couverture Minimale avec le…](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3.ipynb) | BETA | Oui | -| 6 | [CSP-2 : Propagation de Contraintes et Consistance -…](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb) | BETA | Oui | -| 7 | [CSP-2 : Propagation de Contraintes et Consistance](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb) | BETA | Oui | -| 8 | [CSP-3 : CSP Avancé — Contraintes globales et stratégies…](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced-CSharp.ipynb) | BETA | Oui | -| 9 | [CSP-3 : CSP Avance - Contraintes globales, OR-Tools et…](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb) | BETA | Oui | -| 10 | [CSP-4-Scheduling-CSharp : Problèmes d'Ordonnancement…](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-CSharp.ipynb) | BETA | Oui | -| 11 | [CSP-4-Scheduling : Problèmes d'Ordonnancement (Rust /…](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-Rust.ipynb) | BETA | Oui | -| 12 | [CSP-4-Scheduling : Problèmes d'Ordonnancement](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb) | BETA | Oui | -| 13 | [CSP-5-Optimization-CSharp : Optimisation Combinatoire…](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization-CSharp.ipynb) | BETA | Oui | -| 14 | [CSP-5-Optimization : Problèmes d'Optimisation…](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb) | BETA | Oui | -| 15 | [CSP-6-Hybridation : Approches Hybrides Modernes (.NET /…](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb) | BETA | Non | -| 16 | [CSP-6-Hybridation : Approches Hybrides Modernes](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb) | BETA | Non | -| 17 | [CSP-7 : Contraintes Souples avec Choco-solver](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb) | BETA | Non | -| 18 | [CSP-7 : Contraintes Souples - Soft CSP](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb) | BETA | Non | -| 19 | [CSP-8 : Temporels - Raisonnement sur le Temps](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb) | BETA | Non | -| 20 | [CSP-8 : Temporels - Raisonnement sur le Temps](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb) | BETA | Non | -| 21 | [CSP-9-Distributed : CSP Distribués (DisCSP)](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb) | BETA | Oui | -| 22 | [CSP-9-Distributed : CSP Distribués (DisCSP)](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb) | BETA | Oui | +| 5 | [CSP-10-Optimisation-Z3 : Couverture Minimale avec le…](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Python.ipynb) | BETA | Oui | +| 6 | [CSP-2 : Propagation de Contraintes et Consistance -…](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb) | BETA | Oui | +| 7 | [CSP-2 : Propagation de Contraintes et Consistance](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb) | BETA | Oui | +| 8 | [CSP-3 : CSP Avancé — Contraintes globales et stratégies…](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-CSharp.ipynb) | BETA | Oui | +| 9 | [CSP-3 : CSP Avance - Contraintes globales, OR-Tools et…](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb) | BETA | Oui | +| 10 | [CSP-4-Scheduling-CSharp : Problèmes d'Ordonnancement…](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-CSharp.ipynb) | BETA | Oui | +| 11 | [CSP-4-Scheduling : Problèmes d'Ordonnancement (Rust /…](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Rust.ipynb) | BETA | Oui | +| 12 | [CSP-4-Scheduling : Problèmes d'Ordonnancement](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb) | BETA | Oui | +| 13 | [CSP-5-Optimization-CSharp : Optimisation Combinatoire…](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-CSharp.ipynb) | BETA | Oui | +| 14 | [CSP-5-Optimization : Problèmes d'Optimisation…](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb) | BETA | Oui | +| 15 | [CSP-6-Hybridation : Approches Hybrides Modernes (.NET /…](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb) | BETA | Non | +| 16 | [CSP-6-Hybridation : Approches Hybrides Modernes](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb) | BETA | Non | +| 17 | [CSP-7 : Contraintes Souples avec Choco-solver](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb) | BETA | Non | +| 18 | [CSP-7 : Contraintes Souples - Soft CSP](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb) | BETA | Non | +| 19 | [CSP-8 : Temporels - Raisonnement sur le Temps](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb) | BETA | Non | +| 20 | [CSP-8 : Temporels - Raisonnement sur le Temps](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb) | BETA | Non | +| 21 | [CSP-9-Distributed : CSP Distribués (DisCSP)](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb) | BETA | Oui | +| 22 | [CSP-9-Distributed : CSP Distribués (DisCSP)](../../MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb) | BETA | Oui | ## Search/Part3-Cas-pratiques (55 notebooks) diff --git a/docs/curriculum/niveaux.json b/docs/curriculum/niveaux.json index 207168d238d..58cc0709e66 100644 --- a/docs/curriculum/niveaux.json +++ b/docs/curriculum/niveaux.json @@ -59,7 +59,7 @@ "ingenieur-master" ], "notebooks": [ - "Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "Sudoku/Sudoku-04-SimulatedAnnealing-Python.ipynb", "GameTheory/GameTheory-01-Setup-Python.ipynb", "GameTheory/GameTheory-04-NashEquilibrium-Python.ipynb", diff --git a/docs/curriculum/taxonomy/search.json b/docs/curriculum/taxonomy/search.json index 44c7a2ed54b..1378c039022 100644 --- a/docs/curriculum/taxonomy/search.json +++ b/docs/curriculum/taxonomy/search.json @@ -15,26 +15,26 @@ "MyIA.AI.Notebooks/Search/Part1-Foundations/Search-04-LocalSearch.ipynb", "MyIA.AI.Notebooks/Search/Part1-Foundations/Search-06-AdversarialSearch.ipynb", "MyIA.AI.Notebooks/Search/Part1-Foundations/Search-07-MCTS-And-Beyond.ipynb", - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-CSharp.ipynb", - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3.ipynb", - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb", - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced-CSharp.ipynb", - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-CSharp.ipynb", - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization-CSharp.ipynb", - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb", - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb", - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb", - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb" + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Python.ipynb", + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb", + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-CSharp.ipynb", + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-CSharp.ipynb", + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-CSharp.ipynb", + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb", + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb", + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb", + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb" ], "notebook_tree": [ { @@ -112,7 +112,7 @@ "decimal_path": "1.2.1", "depth": 2, "label_fr": "Fondamentaux des CSP", - "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb" + "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb" }, { "level": "notebook", @@ -120,7 +120,7 @@ "decimal_path": "1.2.2", "depth": 2, "label_fr": "Fondamentaux des CSP (jumeau C#)", - "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb" + "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb" }, { "level": "notebook", @@ -128,7 +128,7 @@ "decimal_path": "1.2.3", "depth": 2, "label_fr": "Propagation de contraintes et consistance", - "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb" + "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb" }, { "level": "notebook", @@ -136,7 +136,7 @@ "decimal_path": "1.2.4", "depth": 2, "label_fr": "Propagation de contraintes et consistance (jumeau C#)", - "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb" + "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb" }, { "level": "notebook", @@ -144,7 +144,7 @@ "decimal_path": "1.2.5", "depth": 2, "label_fr": "CSP avancé : contraintes globales, solveurs et LNS", - "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb" + "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb" }, { "level": "notebook", @@ -152,7 +152,7 @@ "decimal_path": "1.2.6", "depth": 2, "label_fr": "CSP avancé : contraintes globales, solveurs et LNS (jumeau C#)", - "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced-CSharp.ipynb" + "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-CSharp.ipynb" }, { "level": "notebook", @@ -160,7 +160,7 @@ "decimal_path": "1.2.7", "depth": 2, "label_fr": "Problèmes d'ordonnancement", - "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb" + "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb" }, { "level": "notebook", @@ -168,7 +168,7 @@ "decimal_path": "1.2.8", "depth": 2, "label_fr": "Problèmes d'ordonnancement (jumeau C#)", - "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-CSharp.ipynb" + "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-CSharp.ipynb" }, { "level": "notebook", @@ -176,7 +176,7 @@ "decimal_path": "1.2.9", "depth": 2, "label_fr": "Optimisation combinatoire", - "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb" + "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb" }, { "level": "notebook", @@ -184,7 +184,7 @@ "decimal_path": "1.2.10", "depth": 2, "label_fr": "Optimisation combinatoire (jumeau C#)", - "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization-CSharp.ipynb" + "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-CSharp.ipynb" }, { "level": "notebook", @@ -192,7 +192,7 @@ "decimal_path": "1.2.11", "depth": 2, "label_fr": "Approches hybrides modernes", - "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb" + "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb" }, { "level": "notebook", @@ -200,7 +200,7 @@ "decimal_path": "1.2.12", "depth": 2, "label_fr": "Approches hybrides modernes (jumeau C#)", - "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb" + "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb" }, { "level": "notebook", @@ -208,7 +208,7 @@ "decimal_path": "1.2.13", "depth": 2, "label_fr": "Contraintes souples", - "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb" + "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb" }, { "level": "notebook", @@ -216,7 +216,7 @@ "decimal_path": "1.2.14", "depth": 2, "label_fr": "Contraintes souples (jumeau C#)", - "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb" + "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb" }, { "level": "notebook", @@ -224,7 +224,7 @@ "decimal_path": "1.2.15", "depth": 2, "label_fr": "Raisonnement temporel", - "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb" + "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb" }, { "level": "notebook", @@ -232,7 +232,7 @@ "decimal_path": "1.2.16", "depth": 2, "label_fr": "Raisonnement temporel (jumeau C#)", - "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb" + "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb" }, { "level": "notebook", @@ -240,7 +240,7 @@ "decimal_path": "1.2.17", "depth": 2, "label_fr": "CSP distribués (DisCSP)", - "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb" + "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb" }, { "level": "notebook", @@ -248,7 +248,7 @@ "decimal_path": "1.2.18", "depth": 2, "label_fr": "CSP distribués (DisCSP) (jumeau C#)", - "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb" + "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb" }, { "level": "notebook", @@ -256,7 +256,7 @@ "decimal_path": "1.2.19", "depth": 2, "label_fr": "Couverture minimale avec le solveur SMT Z3", - "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3.ipynb" + "repository_path": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Python.ipynb" }, { "level": "notebook", @@ -721,23 +721,23 @@ "definition_en": "Metaheuristic that starts from a solution, destroys part of it (a subset of variables is freed), re-optimises that sub-problem with an exact solver, then repeats. On the Python notebook's 12 tasks and 4 machines, it brings the makespan from 20, obtained greedily, down to 19, the lower bound.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "section-5-lns" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "lns-demo" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "36xj38bu0fm" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "lns-interp" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-CSharp.ipynb", "cell_id": "835c5534" } ], @@ -981,11 +981,11 @@ "definition_en": "Problem defined by variables that take their values in given domains while satisfying constraints. Unlike state-space search, which walks a graph, solving exploits the constraints to discard large parts of the space.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "39d1a680" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "9f051749" } ], @@ -1004,27 +1004,27 @@ "definition_en": "A CSP is a triple (X, D, C): variables, the domain of possible values of each, and unary, binary or global constraints over subsets of variables. A solution is a complete and consistent assignment.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "0c3268cb" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "6bbfc428" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "9f051749" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "129f2a8c" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", "cell_id": "cell-4" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb", "cell_id": "75c9ebf3" } ], @@ -1043,23 +1043,23 @@ "definition_en": "Representation of a binary CSP: one node per variable, one edge between two variables linked by a constraint. A node's degree tells how constrained the variable is: the map of Australia gives seven nodes and nine edges, with five neighbours for SA and none for T.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "aa57c0af" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "8067dd64" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "26ebe55c" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "1484605f" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "72e0ef68" } ], @@ -1079,23 +1079,23 @@ "definition_en": "Assign a colour to each region so that two adjacent regions never share one; the running example is the map of Australia, seven regions and three colours.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "2cc4242f" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "b076149b" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "c107csp1-adjacences-comptage" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "c59de729" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "eb8596f9" } ], @@ -1115,43 +1115,43 @@ "definition_en": "Place N queens on an N × N board so that no two attack each other; modelled with one variable per column, it serves as a benchmark for heuristics, propagation and solvers.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "b2945b94" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "71b13f50" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "befa500c" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "7c5476d1" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "4a683ace" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb", "cell_id": "f47c5c6a" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "nqueens-cpsat-intro" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "nqueens-cpsat" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "a9560c90" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb", "cell_id": "03e05d28" } ], @@ -1171,15 +1171,15 @@ "definition_en": "Grid to complete, modelled with one variable per empty cell; the notebook's 4 × 4 example has 12 variables and is solved by backtracking in 28 nodes.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "c7c9917a" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "7706ac14" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "03e42870" } ], @@ -1200,35 +1200,35 @@ "definition_en": "Instead of stopping at the first solution, the solver walks through all of them; the count is a cross-check between engines: the map of Australia has 18 colourings, by brute force as well as with python-constraint and Choco.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "1aa70242" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "1b7d4a63" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "693c77ef" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "e32623d6" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "c7271b01" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "nqueens-all-intro" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "nqueens-count" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "nqueens-count-interp" } ], @@ -1248,47 +1248,47 @@ "definition_en": "Library to which one declares variables, domains and constraints, and which takes care of propagation and search; the notebooks use python-constraint, Choco and CP-SAT in place of hand-written backtracking.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "f80572be" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "2216a02e" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "2dd72411" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "a0642dfe" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "b40856f3" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "28460e99" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", "cell_id": "ff5d9beb" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", "cell_id": "bc53522b" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb", "cell_id": "27444f04" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb", "cell_id": "e8494c37" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-CSharp.ipynb", "cell_id": "3c32e742" } ], @@ -1308,31 +1308,31 @@ "definition_en": "Basic algorithm for solving a CSP: pick an unassigned variable, try each value of its domain while checking consistency with the partial assignment, and backtrack when no value fits. Unlike a depth-first search that checks a complete assignment, inconsistent branches are cut at every step.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "8b8fb1c0" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "f3e50923" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "189519f8" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "a1a62776" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "b1406284" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "48e72ae3" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "f73333ce" } ], @@ -1352,31 +1352,31 @@ "definition_en": "Enumerate every combination of values, then keep only those that satisfy the constraints: 3^7 = 2187 combinations for the map of Australia. The method is an exact reference on a small instance and becomes impractical as size grows.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "5c070f40" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "142250d0" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "a1718468" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "d0e6f2b8" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "fa31c9c5" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Python.ipynb", "cell_id": "093bb1c8" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Python.ipynb", "cell_id": "08c26991" }, { @@ -1403,19 +1403,19 @@ "definition_en": "Each node of the tree is an attempted assignment, kept or rejected; the trace shows consistent tries, conflicts and backtracks, and the number of explored nodes measures the search effort.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "21750526" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "c121csp1-trace-zero-backtrack" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "1tm6ret8buk" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "c126csp1-noeuds-trajectoire" } ], @@ -1434,27 +1434,27 @@ "definition_en": "Pick first the unassigned variable with the fewest viable values left: it is the most likely to fail, and the failure is detected early (fail-first).", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "67a79e8a" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "9902b829" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "0033c586" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "742479ab" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "4e434bcb" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "c5p1tr4n" } ], @@ -1473,19 +1473,19 @@ "definition_en": "For the chosen variable, try first the value that rules out the fewest options for the unassigned neighbouring variables (succeed-first).", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "c112e481" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "e3d5f157" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "3757c66b" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "51b6440b" } ], @@ -1504,35 +1504,35 @@ "definition_en": "Backtracking combining MRV and LCV, compared with plain backtracking by the number of assignments: on the Python notebook's 8-Queens, MRV brings 876 assignments down to 572 and adding LCV gives 677; on the map of Australia the variants cannot be told apart. A value ordering is a heuristic, not a guarantee.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "353f81c5" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "5a831aba" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "980eb07f" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "f9d09728" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "c0258755" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "858509d3" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "e02b0c4f" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "f691a71f" } ], @@ -1553,11 +1553,11 @@ "definition_en": "Rather than waiting for an assignment to violate a constraint, propagation removes in advance the values that have become impossible from the domains; consistency levels (node, arc, path, k-consistency) set how far this filtering goes: the stronger the level, the more pruning and the costlier the propagation.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", "cell_id": "cell-1" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb", "cell_id": "2f59658f" } ], @@ -1576,27 +1576,27 @@ "definition_en": "The simplest form of propagation: it only looks at unary constraints and removes from each variable's domain the values that violate them.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", "cell_id": "cell-7" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", "cell_id": "cell-8" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", "cell_id": "cell-9" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb", "cell_id": "c5ec7cb3" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb", "cell_id": "5ad5527d" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb", "cell_id": "f6d09070" } ], @@ -1615,19 +1615,19 @@ "definition_en": "The most widely used propagation level, on binary constraints: an arc (Xi, Xj) is consistent if every value in the domain of Xi has at least one compatible value in that of Xj; revising an arc removes unsupported values from Xi.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", "cell_id": "cell-10" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", "cell_id": "cell-12" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb", "cell_id": "51c9d13f" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb", "cell_id": "bf302925" } ], @@ -1646,43 +1646,43 @@ "definition_en": "Enforces arc consistency by revising arcs until no domain changes any more. With no prior assignment it removes nothing on the map of Australia; after WA = Red it filters the neighbours NT and SA in two revisions; on a two-colour path A-B-C with A fixed, it solves the problem on its own.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", "cell_id": "cell-14" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", "cell_id": "cell-15" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", "cell_id": "cell-17" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", "cell_id": "cell-18" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", "cell_id": "cell-24" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", "cell_id": "xql0p2h6dl" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb", "cell_id": "c543fba3" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb", "cell_id": "d5ad161d" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb", "cell_id": "56a9c0b9" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb", "cell_id": "3637dc02" } ], @@ -1702,35 +1702,35 @@ "definition_en": "Propagation built into backtracking: after each assignment, incompatible values are removed from the domains of the unassigned neighbouring variables, which reveals an empty domain one step ahead.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", "cell_id": "cell-25" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", "cell_id": "cell-26" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", "cell_id": "cell-28" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", "cell_id": "cell-29" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb", "cell_id": "f0a05e54" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb", "cell_id": "40e758dc" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb", "cell_id": "c928c722" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb", "cell_id": "fb3e446c" } ], @@ -1749,31 +1749,31 @@ "definition_en": "Goes further than forward checking: AC-3 is rerun after each assignment, so that a domain reduction propagates beyond direct neighbours. On 8-Queens, MAC finds a solution in 20 assignments.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", "cell_id": "cell-30" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", "cell_id": "cell-31" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", "cell_id": "dc499092" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb", "cell_id": "3d270c35" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb", "cell_id": "99752c32" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb", "cell_id": "912a8364" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb", "cell_id": "lecture-csp2-mac-8reines" } ], @@ -1794,39 +1794,39 @@ "definition_en": "Combination of the two mechanisms for solving a CSP: backtracking search enumerates choices, propagation shrinks the domains after each of them. Measured on 8-Queens, the search drops from 876 assignments without propagation to 20 with MAC, forward checking sitting in between; this gain is paid for by a higher cost per node, and the gap widens with problem size.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", "cell_id": "cell-34" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", "cell_id": "cell-35" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", "cell_id": "cell-36" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", "cell_id": "cell-39" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", "cell_id": "cell-41" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb", "cell_id": "6b358d81" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb", "cell_id": "b3a4b064" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb", "cell_id": "lecture-csp2-bt-fc-mac" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb", "cell_id": "6adf1701" } ], @@ -1846,11 +1846,11 @@ "definition_en": "Level above arc consistency: instead of removing values, path consistency removes pairs of values between two variables when no value of a third one links them; k-consistency generalises the idea to k variables. The cost, O(n^3 d^3) for paths, explains why it is used only when arc consistency does not settle the matter.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", "cell_id": "7351d09b" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb", "cell_id": "524f1d7a" } ], @@ -1870,19 +1870,19 @@ "definition_en": "Constraints over a group of variables that come with a specialised propagation algorithm; they state a frequent structure in one line (all-different values, resource capacity, circuit, table of tuples) and propagate more strongly than their decomposition into binary constraints.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "section-2-global" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "39e38657" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-CSharp.ipynb", "cell_id": "4ba1f573" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-CSharp.ipynb", "cell_id": "b67e8386" } ], @@ -1902,47 +1902,47 @@ "definition_en": "Requires all variables of a group to take distinct values. Its propagator, based on a matching in a bipartite graph, detects inconsistencies that the pairwise decomposition misses: three variables with domain {1, 2} are arc-consistent pair by pair and yet have no solution.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "alldiff-intro" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "alldiff-demo" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "alldiff-interp" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-CSharp.ipynb", "cell_id": "4ba1f573" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-CSharp.ipynb", "cell_id": "5f3c2e5b" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-CSharp.ipynb", "cell_id": "fee0c66f" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "d0218284" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "372b25f9" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "c155csp1-alldifferent-256-24" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "f7b629b0" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb", "cell_id": "c514399d" } ], @@ -1961,39 +1961,39 @@ "definition_en": "Requires that at any time the sum of the demands of running tasks does not exceed the capacity of the resource. It models renewable resources and generalises the disjunctive constraint, where capacity is one.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "cumulative-intro" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "cumulative-demo" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "s8zo94of1fc" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "cumulative-interp" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-CSharp.ipynb", "cell_id": "fee0c66f" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-CSharp.ipynb", "cell_id": "4ee1dccc" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-CSharp.ipynb", "cell_id": "c526abad" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "5b1d8e04" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-CSharp.ipynb", "cell_id": "d0a780bb" } ], @@ -2012,27 +2012,27 @@ "definition_en": "Requires the successor variables to form a single cycle through all nodes, with no sub-tour. It is the constraint that models the travelling salesman problem, solved in the notebooks on five cities.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "circuit-intro" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "circuit-demo" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "circuit-interp" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-CSharp.ipynb", "cell_id": "c526abad" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-CSharp.ipynb", "cell_id": "a0b0a67d" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-CSharp.ipynb", "cell_id": "0413eac6" } ], @@ -2051,27 +2051,27 @@ "definition_en": "Gives the explicit list of allowed or forbidden value tuples for a group of variables; it encodes a business rule or a compatibility table that does not decompose into simple constraints.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "table-intro" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "table-demo" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "table-interp" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-CSharp.ipynb", "cell_id": "0413eac6" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-CSharp.ipynb", "cell_id": "a2b85695" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-CSharp.ipynb", "cell_id": "835c5534" } ], @@ -2090,19 +2090,19 @@ "definition_en": "An operation is represented by an interval variable (start, duration, end); the no-overlap constraint forbids two intervals of the same machine from overlapping. One constraint per machine replaces one inequality per pair of operations.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "4bbbec1c" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "3f9a2c71" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-CSharp.ipynb", "cell_id": "955a1e8e" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-CSharp.ipynb", "cell_id": "acbf5ed0" } ], @@ -2121,31 +2121,31 @@ "definition_en": "Ties a constraint to a Boolean variable that is true if and only if the constraint holds. One can then reason about satisfaction itself: optional condition, \"exactly one of the two\", preference counted in the objective.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "wr0rxz0hj6l" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "xigolmh79cr" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "oco91jvy6h9" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "63b9a861" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-CSharp.ipynb", "cell_id": "5442b145" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-CSharp.ipynb", "cell_id": "d2dff777" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-CSharp.ipynb", "cell_id": "029f9672" } ], @@ -2164,19 +2164,19 @@ "definition_en": "Variables whose value is a set rather than a scalar, constrained by membership, cardinality, inclusion, union or intersection. Their domain grows as 2^n, hence the alternative of one Boolean variable per element.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "wr0rxz0hj6l" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "lppmj6rfz8" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "set-constraints-prose" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "oco91jvy6h9" } ], @@ -2195,19 +2195,19 @@ "definition_en": "A symmetric CSP has solutions that are images of one another under rotation or reflection, which the solver explores for nothing. Extra constraints discard these variants: on the notebook's 8-Queens, two constraints bring 92 solutions down to 35.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "section-4-symmetry" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "symmetry-demo" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "symmetry-interp" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "c157csp1-miroir-4reines" } ], @@ -2228,15 +2228,15 @@ "definition_en": "Modern solvers combine several solving techniques: constraint propagation, clause learning from SAT, linear relaxation, parallel search; upstream, machine learning or a language model can guide the search or build the model.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "p9ea5852nb" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "db9b79a7" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "14e46c95" } ], @@ -2256,63 +2256,63 @@ "definition_en": "Constraint programming solver built on satisfiability: one declares a model (integer and Boolean variables, linear and global constraints, objective), the solver solves it and tells whether the returned solution is proved optimal. Its architecture chains presolve, propagation, a clause-learning SAT engine and linear relaxation.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "section-3-ortools" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "nqueens-cpsat" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "22jzbure7v3" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "ffe181fd" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "7dbbabf9" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "34ddac94" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "db9b79a7" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "b98e5b0d" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "70a9c63a" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "e6c2de7c" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-CSharp.ipynb", "cell_id": "3c32e742" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-CSharp.ipynb", "cell_id": "776131ba" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-CSharp.ipynb", "cell_id": "cp-sat-intro" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-CSharp.ipynb", "cell_id": "cp-sat-bpp" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-CSharp.ipynb", "cell_id": "cp-sat-interp" } ], @@ -2332,27 +2332,27 @@ "definition_en": "Hybrid of constraint programming and SAT: constraint propagation deduces, each conflict is analysed and yields a learned clause that prevents meeting it again and guides backtracking. CP-SAT applies it internally; the notebooks observe it on N-Queens from 8 to 14.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "51f45b56" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "e3003150" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "d9bf2c20" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "c7955023" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "5869a8e2" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "b5047550" } ], @@ -2373,19 +2373,19 @@ "definition_en": "The solver solves a relaxed linear version of the model to obtain bounds on the objective, which spares it from expanding branches that cannot do better. The effect only shows on a non-trivial instance: on the notebook's 10 × 10 job shop, disabling it takes the search from 1248 to 7282 branches for the same makespan of 794.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "7dbbabf9" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "34ddac94" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "csp6-prongb-code" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "csp6-prongb-interp" } ], @@ -2405,27 +2405,27 @@ "definition_en": "Two levers inject knowledge into a solver without changing the model: a solution hint, for instance from a greedy heuristic, which the solver repairs and then improves; a decision strategy, which sets the order in which variables are decided. Neither guarantees a gain over the default search.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "g5-intro" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "g5-solver" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "ae52f7c3" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "g5-run" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "70a9c63a" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "e6c2de7c" } ], @@ -2446,39 +2446,39 @@ "definition_en": "Several search threads work on the same problem: splitting the space, a portfolio of different strategies, exchange of clauses and solutions between threads. On a small instance (12-Queens), the notebooks measure no significant gain: the instance is too small to pay back starting and synchronising the threads.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "960c4f67" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "6b2e443e" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "3b85c116" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "iq53h8qd9u" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "6c13b33f" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "c90e3d6b" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "c9877aa7" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "abf825f9" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "60bf394e" } ], @@ -2498,35 +2498,35 @@ "definition_en": "Machine learning can assist a solver: guide the choice of branching variables, or predict whether an instance is feasible before running it. The notebooks generate 50 random instances labelled by CP-SAT and evaluate a simple predictor on them, whose correlation with reality stays weak.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "19305758" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "aa73b92c" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "cab22939" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "6bebux5qvr9" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "09fbea70" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "3d37255e" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "a07f970c" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "716e573e" } ], @@ -2545,23 +2545,23 @@ "definition_en": "Variable selection heuristic from SAT solvers: each variable carries a score, bumped when it is involved in a conflict and decayed over the iterations; one branches on the variable with the highest score.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "333cc4ef" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "2e54113f" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "3349fbcb" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "4fbea6b4" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "4e14eb36" } ], @@ -2581,43 +2581,43 @@ "definition_en": "A language model translates a natural-language description into a structured specification, a JSON that conforms to the schema of a declared tool, which a program transcribes into a CP-SAT model and solves. The language model solves nothing: it states the problem, the solver solves it.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "feba21ce" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "00388391" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "c3631757" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "ba0e552d" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "0b579d13" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "543b6a02" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "04257f7e" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "8d0f8861" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "70393ab9" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "80c61fa7" } ], @@ -2637,23 +2637,23 @@ "definition_en": "Schema conformance is about form, not meaning: a valid JSON may reverse a precedence or omit a constraint, and the solver then solves another problem. The solution is therefore replayed against the facts of the statement, then the optimum of the transcribed model is compared with that of a hand-written reference model.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "ec68b717" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "be2c0a7a" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "80c61fa7" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "00388391" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "0b579d13" } ], @@ -2673,15 +2673,15 @@ "definition_en": "Placing tasks in time on limited resources, subject to precedences and capacities, to optimise a criterion, most often the total duration (makespan). The notebooks model three families: the job shop, the resource-constrained project (RCPSP) and staff rostering.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "26d096c9" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "90d3us9vo" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-CSharp.ipynb", "cell_id": "f85c0cac" } ], @@ -2701,35 +2701,35 @@ "definition_en": "Each job is an ordered sequence of operations, each on a given machine with a fixed duration; a machine processes one operation at a time. One looks for the start dates that minimise the makespan, the end date of the last operation. On the notebooks' instance with three jobs and three machines, the optimal makespan is 11.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "58a3c464" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "4bbbec1c" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "3f9a2c71" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "aefcb583" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "3b40cec9" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-CSharp.ipynb", "cell_id": "955a1e8e" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-CSharp.ipynb", "cell_id": "acbf5ed0" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-CSharp.ipynb", "cell_id": "c9d5e0a1" } ], @@ -2749,43 +2749,43 @@ "definition_en": "The tasks of a project are linked by precedences and consume renewable resources of limited capacity, handled by the cumulative constraint; the project duration is minimised. On the notebooks' six-task project, the optimal duration is 10. A non-renewable resource, such as a budget, is added through a sum constraint.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "c48f0f0a" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "2b7c4da9" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "5b1d8e04" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "f4227a69" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "59c7b658" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "942822c1" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "c98f35e5" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-CSharp.ipynb", "cell_id": "d0a780bb" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-CSharp.ipynb", "cell_id": "f60911f1" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-CSharp.ipynb", "cell_id": "b8e4d1f0" } ], @@ -2806,35 +2806,35 @@ "definition_en": "Assigning people to shifts day after day: one Boolean variable per person, day and shift, with coverage constraints (every shift staffed), uniqueness (at most one shift per day) and workload. With six nurses, seven days and three shifts, the notebooks' roster has 42 assignments.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "bedb662a" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "2091f698" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "7c4f2a96" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "97da4d4c" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "cd08ca4c" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-CSharp.ipynb", "cell_id": "05516294" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-CSharp.ipynb", "cell_id": "dc59fd3e" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-CSharp.ipynb", "cell_id": "a7f3c2e9" } ], @@ -2853,19 +2853,19 @@ "definition_en": "Giving each course a room and a time slot: two courses never share a room in the same slot, which an AllDifferent constraint states on the (room, slot) pair encoded as one integer; reified preferences enter the objective. The notebook's model places five courses in three rooms and four slots with the maximal preference score, 7 out of 7.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "section-6-combined" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "combined-model" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "31a8t3se5i3" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "combined-interp" } ], @@ -2886,15 +2886,15 @@ "definition_en": "Each job is given a due date; its lateness is its completion time minus its due date, negative when the job ends early, and its tardiness keeps only the positive part. The objective becomes the maximum lateness or the total tardiness, instead of the makespan or combined with it.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "78fed749" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "4911e1ea" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "f1e854ea" } ], @@ -2914,15 +2914,15 @@ "definition_en": "Looking, among the assignments that satisfy the constraints, for the one that minimises or maximises an objective function. Exact methods guarantee the optimum at a cost that can become exponential; approximate methods answer fast, with no guarantee.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "51095ee2" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "r3ev9tfw19" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-CSharp.ipynb", "cell_id": "a2be939c" } ], @@ -2941,35 +2941,35 @@ "definition_en": "Packing items of given sizes into the smallest number of bins of fixed capacity. On the instance shared by the twins (sizes 2, 5, 4, 7, 2 and capacity 10), the optimum is 3 bins. Greedy heuristics such as First Fit Decreasing quickly give a solution, with no optimality guarantee.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "306de6dd" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "62568836" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "b67b84bc" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "annexe-libvslib-d1" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "annexe-libvslib-i1" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-CSharp.ipynb", "cell_id": "722907d2" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-CSharp.ipynb", "cell_id": "710a6870" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-CSharp.ipynb", "cell_id": "cp-sat-bpp" } ], @@ -2988,39 +2988,39 @@ "definition_en": "Choosing a subset of items of maximal total value without exceeding the weight capacity; each item is taken or left, hence one Boolean variable per item. On the five-item, capacity-10 instance shared by the twins, the optimum is 31. The multi-knapsack extends the model to several knapsacks.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "0f823815" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "0119fcb8" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "a959f3a5" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "ceba52b5" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "da1f4020" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "annexe-libvslib-d2" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "annexe-libvslib-i2" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-CSharp.ipynb", "cell_id": "d7ef13e5" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-CSharp.ipynb", "cell_id": "d3984b1b" } ], @@ -3039,35 +3039,35 @@ "definition_en": "Cutting fixed-length stock bars to produce the ordered pieces, each in several copies, while minimising the number of bars used. It is a bin packing with multiple demands.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "e5dffc51" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "cutting-stock-func" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "9766c313" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "f976b227" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "annexe-libvslib-d3" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "annexe-libvslib-i3" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-CSharp.ipynb", "cell_id": "bdbe3a65" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-CSharp.ipynb", "cell_id": "9f9e08b0" } ], @@ -3087,39 +3087,39 @@ "definition_en": "Choosing a few assets among several to maximise the expected return, under a budget, a bounded number of assets and a capped risk. Risk, quadratic in the classical model, is replaced there by a linear approximation, the sum of the individual risks of the selected assets.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "5012b0fc" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "6f3fd960" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "ca44e3de" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "10b954fc" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "c1ddac3773e5" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "51138822929d" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-CSharp.ipynb", "cell_id": "d34d5215" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-CSharp.ipynb", "cell_id": "a9cf198a" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-CSharp.ipynb", "cell_id": "c131csp5-portfolio-tie" } ], @@ -3138,19 +3138,19 @@ "definition_en": "A solution dominates another if it is at least as good on every objective and strictly better on one of them. Dominated solutions are discarded without being explored; those that remain form the Pareto front.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "9du53myvfqi" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "h2ha8li6gbe" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "qimxekd7ur" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "2wgurgb2klh" } ], @@ -3169,11 +3169,11 @@ "definition_en": "When two criteria conflict, they are combined linearly with weights and the solver optimises that sum. On the notebook's job shop, the makespan weighted by 10 and the total tardiness by 1 give an objective of 110, that is a makespan of 11 with no tardiness.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "4911e1ea" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "f1e854ea" } ], @@ -3193,15 +3193,15 @@ "definition_en": "Choosing the smallest number of subsets whose union covers all elements. In the notebooks, each sensor placed on a grid covers the 3 × 3 square around it and every point must be covered with as few sensors as possible; the number of candidate subsets doubles with each added sensor.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Python.ipynb", "cell_id": "f712af94" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Python.ipynb", "cell_id": "a740eb2f" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Python.ipynb", "cell_id": "575c9022" }, { @@ -3228,19 +3228,19 @@ "definition_en": "The problem is stated in logic: one Boolean per sensor, one disjunction per point to cover, and the solver's optimiser minimises the number of true Booleans. On the small grid it returns 2 sensors, in agreement with exhaustive enumeration; on the 10 × 6 grid it returns 8.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Python.ipynb", "cell_id": "56dfd01a" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Python.ipynb", "cell_id": "39522278" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Python.ipynb", "cell_id": "afa1e635" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Python.ipynb", "cell_id": "9c85cd32" }, { @@ -3277,15 +3277,15 @@ "definition_en": "A solver returns a status with its solution: optimal when it has proved that no better solution exists, feasible when time ran out before that proof. Minimality can also be proved separately: the same model restricted to a strictly better value must be unsatisfiable; an unknown status proves nothing.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Python.ipynb", "cell_id": "afa1e635" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Python.ipynb", "cell_id": "9c85cd32" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Python.ipynb", "cell_id": "9022046f" }, { @@ -3305,11 +3305,11 @@ "cell_id": "abb8a712" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "cadran-lecture-md" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "scaling-benchmark-interpretation" } ], @@ -3328,19 +3328,19 @@ "definition_en": "A classical constraint is either satisfied or violated; a soft constraint replaces that verdict with a degree of satisfaction or a violation cost, which is optimised. Hard constraints remain mandatory.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "section-1-intro" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "section-6-summary" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb", "cell_id": "64337001" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb", "cell_id": "a4eb9a27" } ], @@ -3360,35 +3360,35 @@ "definition_en": "Algebraic framework unifying classical, fuzzy and weighted CSPs: each constraint maps every assignment to a value, one operator aggregates the values of the constraints of an assignment (logical and, minimum, sum) and another orders assignments to keep the best (or, maximum, minimum). Changing the semiring changes the problem without changing the solver.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "section-2-semiring" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "semiring-classes" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "semiring-impl" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "soft-csp-class" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb", "cell_id": "semiring-md-1" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb", "cell_id": "semiring-code-a" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb", "cell_id": "semiring-md-2" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb", "cell_id": "semiring-code-c" } ], @@ -3407,31 +3407,31 @@ "definition_en": "Each constraint returns a satisfaction degree between 0 and 1; the satisfaction of an assignment is the minimum of these degrees, and one looks for the assignment that maximises it: the least satisfied constraint decides. Both notebook examples, a weekly menu in Python and a holiday plan in C#, reach a satisfaction of 0.8.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "section-3-fuzzy" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "by4l0ubymqa" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "9310777f" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "lec-csp7-3" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb", "cell_id": "fix-10382-fuzzy-intro" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb", "cell_id": "fix-10382-fuzzy-code" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb", "cell_id": "csp7-lecture-ec9" } ], @@ -3451,43 +3451,43 @@ "definition_en": "Each violated constraint costs its weight; the sum of the costs is minimised, which makes it possible to say that some constraints matter more than others. On the notebooks' meeting to schedule, the slot retained is 9 a.m., for a total cost of 1.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "section-4-weighted" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "weighted-functions" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "lec-csp7-1" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "675ea1bb" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "924683c0" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "lec-csp7-4" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb", "cell_id": "d67a3cc6" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb", "cell_id": "5962191c" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb", "cell_id": "de5a73dd" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb", "cell_id": "eb7560c3" } ], @@ -3507,35 +3507,35 @@ "definition_en": "In a constraint solver, a soft constraint becomes a term of the objective: a penalty or a score weights each decision, or each violation reified as a Boolean, while hard constraints are posted unchanged. The Python notebook's nurse roster with preferences thus ends with a total penalty of 140.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "section-5-or-tools" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "or-tools-soft" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "lec-csp7-2" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "nurse-soft-example" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "n3uw4y8shk" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "3ce6c3f6" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "906d2256" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb", "cell_id": "dc498b73" } ], @@ -3557,27 +3557,27 @@ "definition_en": "Relaxed versions of global constraints: SoftAllDifferent reifies the equality of each pair of variables and adds a cost per equal pair; the cost of a sequence is likewise defined as the sum of the transition costs of a weighted finite automaton.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb", "cell_id": "9021bac5" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb", "cell_id": "b7545bc8" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb", "cell_id": "dc498b73" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb", "cell_id": "6ef41c42" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb", "cell_id": "d1d5ff24" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb", "cell_id": "a53c98e9" } ], @@ -3598,27 +3598,27 @@ "definition_en": "Minimising the sum of penalties alone may concentrate dissatisfaction on one person; adding the weighted maximum penalty to the objective spreads the effort. In the notebook's scenario, the total penalty stays at 70 while the worst individual penalty drops from 40 to 30.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "8d4877cf" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "exercise-template" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "lec-csp7-5" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "cb4d7bcd" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "lec-csp7-6" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "lec-csp7-7" } ], @@ -3639,31 +3639,31 @@ "definition_en": "Constraints are ranked by priority levels: mandatory, strongly preferred, wishes. A large enough multiplicative factor guarantees that no accumulation of wishes makes up for violating a constraint of the level above. On the notebooks' configuration, the strong constraints hold and three wishes are given up, in both twins.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "8e4ee6e6" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "29b10084" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "lec-csp7-8" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb", "cell_id": "013d0140" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb", "cell_id": "f6efb288" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb", "cell_id": "60296aef" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb", "cell_id": "f6510b84" } ], @@ -3683,23 +3683,23 @@ "definition_en": "Reasoning about time with constraints, either qualitatively, through relations between intervals (Allen's algebra), or quantitatively, through numeric bounds on the gap between two time points (simple temporal problem, then with disjunctions).", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "section-1-intro" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "section-6-summary" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "984b49ca" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb", "cell_id": "4cb66f5a" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb", "cell_id": "009153c5" } ], @@ -3719,27 +3719,27 @@ "definition_en": "Thirteen basic relations describe all relative positions of two intervals: before, meets, overlaps, starts, during, finishes, their six converses, and equals. They are mutually exclusive and exhaustive: exactly one holds between two given intervals.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "section-2-allen" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "allen-relations" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "djqnxo5337" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb", "cell_id": "1c308c10" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb", "cell_id": "5549ad64" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb", "cell_id": "239a0411" } ], @@ -3758,27 +3758,27 @@ "definition_en": "Given the relation from A to B and the one from B to C, composition yields the set of possible relations from A to C. The notebooks generate the 169 cells by enumerating triples of intervals with integer endpoints, check that the table no longer changes when the grid grows, and compare it with the hand-entered cells: the mismatches point to wrong manual entries.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "exercise-template" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "d8536881" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "e4a08d31" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb", "cell_id": "40ef105f" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb", "cell_id": "4f2639f0" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb", "cell_id": "f90cdbb8" } ], @@ -3798,43 +3798,43 @@ "definition_en": "Time points linked by binary constraints bounding their gap, a ≤ t_j − t_i ≤ b, with a single interval per constraint. A deadline is written as a bound relative to a reference time point. Its consistency is decided in polynomial time.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "section-3-stp" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "stp-class" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "stp-example" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "769amh53sz3" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "df41fdf2" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb", "cell_id": "20747c70" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb", "cell_id": "708a34ac" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb", "cell_id": "f5929a1c" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb", "cell_id": "e3693fca" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb", "cell_id": "363fc862" } ], @@ -3853,31 +3853,31 @@ "definition_en": "The STP is translated into a weighted graph whose all-pairs shortest paths the Floyd-Warshall algorithm computes in cubic time; the problem is consistent if and only if this graph has no negative-weight cycle. In the Python notebook, a three-hour meeting in a one-hour window is thereby reported inconsistent.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "section-3-stp" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "stp-class" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "b5d783f0" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "f1b59c72" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb", "cell_id": "20747c70" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb", "cell_id": "708a34ac" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb", "cell_id": "f7b05018" } ], @@ -3898,27 +3898,27 @@ "definition_en": "Each time point becomes an integer variable and each bound a linear constraint; the solver returns one of the schedules the STP admits, not necessarily Floyd-Warshall's, and can mix temporal constraints with other combinatorial constraints or an objective.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "1de2a8a2" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "7e66ca5e" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "5c7f3b14" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb", "cell_id": "b1e7a2f5" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb", "cell_id": "26dd18d4" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb", "cell_id": "b47b38f7" } ], @@ -3939,27 +3939,27 @@ "definition_en": "Generalises the STP: the gap between two time points belongs to a union of intervals, which expresses alternatives such as \"morning or afternoon\". Solving is no longer polynomial: alternatives are enumerated, with propagation.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "section-4-tcsp" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "tcsp-example" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb", "cell_id": "ad2e91d3" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb", "cell_id": "5163d5e3" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb", "cell_id": "e63d094f" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb", "cell_id": "59d8cdea" } ], @@ -3980,31 +3980,31 @@ "definition_en": "Finding a common slot amounts to intersecting the participants' availability windows; placing several meetings adds durations, precedences and a no-overlap rule for each participant. In the Python notebook, three participants share a single one-hour slot, from 3 p.m. to 4 p.m.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "section-5-application" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "meeting-planner" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "4okf88refvs" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "70eeb3d6" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "6befa3b1" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "9d2e6a08" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb", "cell_id": "81b1d4b6" } ], @@ -4025,27 +4025,27 @@ "definition_en": "A CSP whose variables are spread across agents: each controls its own and communicates through asynchronous messages, with no central solver; constraints between variables of different agents are settled through these exchanges. The usual simplification gives each agent one variable.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "995917d9" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "bf924282" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "11eccc2b" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb", "cell_id": "c2017647" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb", "cell_id": "3bff6eac" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb", "cell_id": "c3afe23c" } ], @@ -4065,19 +4065,19 @@ "definition_en": "Agents exchange four kinds of messages: `ok?` announces the current value to lower-priority agents, `nogood` sends back to a higher-priority agent a combination of values found impossible, `addlink` requests a communication link and `stop` ends the resolution. A nogood is a learnt constraint.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "6c494cba" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "a52e94c9" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb", "cell_id": "c7e87141" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb", "cell_id": "cc993327" } ], @@ -4096,51 +4096,51 @@ "definition_en": "Reference algorithm for distributed CSPs: agents are ranked in a fixed priority order; each picks a value compatible with its view of higher-priority agents, announces it to lower-priority agents and sends back a nogood when no value fits, with no global synchronisation. On the notebooks' four-node cycle with three colours, ten messages suffice, with no nogood.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "a52e94c9" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "9393a18d" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "4055fe66" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "f7e21456" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "d0fc21ce" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "27c153c7" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb", "cell_id": "cc993327" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb", "cell_id": "1cecb869" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb", "cell_id": "635f3231" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb", "cell_id": "c53c4f6e" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb", "cell_id": "9798f8ab" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb", "cell_id": "d6ee1c81" } ], @@ -4161,27 +4161,27 @@ "definition_en": "Variant of ABT in which the agent order is no longer fixed: an agent that accumulates nogoods is promoted, which reorders propagation.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "4766a546" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "5fee8e73" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "070a53e6" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb", "cell_id": "93a92599" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb", "cell_id": "347b86d7" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb", "cell_id": "b35ae939" } ], @@ -4201,43 +4201,43 @@ "definition_en": "On the notebooks' benchmark (random colourings with eight agents, same iteration budget), AWC exchanges far fewer messages and nogoods than ABT; but lighter traffic is not a better result: it must be read together with the rate of solved instances, which AWC does not improve there.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "6473ecbe" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "69eff4b7" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "7d6810ce" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "ab01b036" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "033166e2" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb", "cell_id": "ad1b753b" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb", "cell_id": "efbbced8" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb", "cell_id": "c2a79964" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb", "cell_id": "2c3902fc" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb", "cell_id": "1817fd7e" } ], @@ -4257,11 +4257,11 @@ "definition_en": "As the density of the constraint graph grows, the share of satisfiable instances drops around a threshold. In the Python notebook (six agents, three colours), ABT's success rate goes from 100% at densities 0.2 and 0.4 to 80% then 10% at densities 0.6 and 0.8; proving that no solution exists costs it far more messages than finding one.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "4e07b2c6" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "21837d36" } ], @@ -4281,51 +4281,51 @@ "definition_en": "In a distributed CSP, each `ok?` message reveals its sender's value. Leakage is measured by the number of informed (sender, receiver) pairs and reduced by announcing one's value to constraint neighbours only; private constraints can also stay encapsulated within the agent and be revealed selectively.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "19074682" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "b578494c" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "fbec7ab7" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "c1c4df9f" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "917abcb1" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "81d0e9ee" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "8c81e09e" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb", "cell_id": "a572d52f" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb", "cell_id": "1e4a444d" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb", "cell_id": "c72f1676" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb", "cell_id": "74b477c0" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb", "cell_id": "0518e56f" } ], @@ -4345,27 +4345,27 @@ "definition_en": "Agents share out distinct resources without publishing their preferences: each tries its values in the order of its preferences, which appear in no message, and social welfare, the sum of the utilities obtained, is measured afterwards against its theoretical maximum.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "c5130b42" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "3e2a5231" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "2c475492" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb", "cell_id": "e6f604ca" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb", "cell_id": "d8d1125c" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb", "cell_id": "7d329e8f" } ], @@ -4385,23 +4385,23 @@ "definition_en": "A solving method is judged by measurements: attempted assignments, branches, conflicts, time, solution quality, status returned by the solver. The instance must still be hard enough to tell the methods apart, and the measurement must be checked against a reference.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "f9d09728" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "g5-intro" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "34ddac94" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "scaling-benchmark-intro" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "abf825f9" } ], @@ -4420,47 +4420,47 @@ "definition_en": "On too easy an instance, every method finds the solution and the measured gaps say nothing; a comparison is only meaningful on an instance large or constrained enough for the methods to diverge, even if it has to be built on purpose.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "f9d09728" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "04ee5e4d" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "ea3a9736" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "f00b5d41" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "34ddac94" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "csp6-prongb-interp" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "g5-intro" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "g5-instru" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "scaling-benchmark-interpretation" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "abf825f9" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "60bf394e" } ], @@ -4479,39 +4479,39 @@ "definition_en": "Running several settings of the same solver (variable order, branching strategy, time limit, number of threads) on the same instance and budget, then reading the gaps against their dispersion: when the configurations stay within the variation margin, no ranking can be concluded.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "g5-run" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "cadran-regime-md" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "cadran-regime-code" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "cadran-lecture-md" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "7dbbabf9" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb", "cell_id": "8b557c4c" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "70a9c63a" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "8fa5fc8b" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb", "cell_id": "60bf394e" } ], @@ -4532,63 +4532,63 @@ "definition_en": "Solving the same instance with the code written in the notebook and with an established solver, then comparing the results: agreement validates the teaching implementation, a gap points to a modelling or coding defect.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "2dd72411" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "a735ed14" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb", "cell_id": "693c77ef" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb", "cell_id": "bb89bb89" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb", "cell_id": "5340e47e" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "787472a5" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "0c70a953" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "aa91d173" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "annexe-libvslib-hdr" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "annexe-libvslib-i4" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-CSharp.ipynb", "cell_id": "f47a7ce9" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-CSharp.ipynb", "cell_id": "cp-sat-interp" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-CSharp.ipynb", "cell_id": "776131ba" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Python.ipynb", "cell_id": "093bb1c8" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Python.ipynb", "cell_id": "afa1e635" }, { @@ -4600,19 +4600,19 @@ "cell_id": "5d82fb26" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb", "cell_id": "semiring-md-3" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb", "cell_id": "semiring-code-c" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "7e66ca5e" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb", "cell_id": "5c7f3b14" } ], @@ -4632,23 +4632,23 @@ "definition_en": "A greedy rule (a priority rule in scheduling, First Fit Decreasing in packing) quickly builds a feasible solution; the exact solver gives the optimum and thereby measures the heuristic's gap. In the scheduling notebook, the SPT rule reaches a makespan of 18 against an optimum of 11.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "26d096c9" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "8afb0eaa" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb", "cell_id": "9d3b6e18" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "64f599ff" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "ae6d9851" } ], @@ -4669,27 +4669,27 @@ "definition_en": "Measuring how solving time and answer quality evolve as the instance grows: a model solved instantly on a small instance may, within the same time budget, return only a feasible solution with no optimality proof on a large one.", "citations": [ { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "scaling-benchmark-intro" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "scaling-benchmark" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb", "cell_id": "scaling-benchmark-interpretation" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Python.ipynb", "cell_id": "9c27110b" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Python.ipynb", "cell_id": "9c85cd32" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Python.ipynb", "cell_id": "fd5f1949" }, { @@ -4705,11 +4705,11 @@ "cell_id": "abb8a712" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "nqueens-scale" }, { - "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb", + "notebook": "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb", "cell_id": "nqueens-scale-interp" } ], diff --git a/docs/notebook-metadata/production-scope.md b/docs/notebook-metadata/production-scope.md index f97c2c3d541..969a351b5c9 100644 --- a/docs/notebook-metadata/production-scope.md +++ b/docs/notebook-metadata/production-scope.md @@ -1,4 +1,4 @@ -> REFERENCE — vivante — dernière révision 2026-11-23 +> REFERENCE — vivante — dernière révision 2026-11-24 # Périmètre PRODUCTION — dérivation mécanique v1 @@ -46,7 +46,7 @@ Le détail par notebook suit en strate A ci-dessous : consultation, plus décisi | GenAI Video — Foundation | EPF GenAI Bachelor 3A | `01-1-Video-Operations-Basics.ipynb` | 5 | | | GenAI Texte (1-8) | EPF GenAI Bachelor 3A | `01_OpenAI_Intro.ipynb` | 8 | | | Search — Part 1 Foundations | EPITA Programmation par Contraintes | `Search-01-StateSpace.ipynb` | 13 | | -| Search — Part 2 CSP | EPITA Programmation par Contraintes | `CSP-1-Fundamentals.ipynb` | 9 | | +| Search — Part 2 CSP | EPITA Programmation par Contraintes | `CSP-01-Fundamentals-Python.ipynb` | 9 | | | Argument Analysis | EPITA IA Symbolique | `Argumentation-01-Toulmin-Model-Python.ipynb` | 4 | | | Tweety | EPITA IA Symbolique | `Tweety-02-Basic-Logics-Python.ipynb` | 6 | | | Lean | EPITA IA Symbolique | `Lean-02-Dependent-Types-Lean.ipynb` | 2 | | @@ -152,15 +152,15 @@ Le détail par notebook suit en strate A ci-dessous : consultation, plus décisi - [ ] `MyIA.AI.Notebooks/Search/Part1-Foundations/Search-02c-QuikGraph.ipynb` -- [ ] `MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb` -- [ ] `MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb` -- [ ] `MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb` -- [ ] `MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb` -- [ ] `MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb` -- [ ] `MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb` -- [ ] `MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb` -- [ ] `MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb` -- [ ] `MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb` +- [ ] `MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb` +- [ ] `MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb` +- [ ] `MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb` +- [ ] `MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb` +- [ ] `MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb` +- [ ] `MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb` +- [ ] `MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb` +- [ ] `MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb` +- [ ] `MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb` ### EPITA — IA Symbolique (19) diff --git a/docs/reference/kernels-runtime.md b/docs/reference/kernels-runtime.md index 274e9c784d5..78aaa8a2bc4 100644 --- a/docs/reference/kernels-runtime.md +++ b/docs/reference/kernels-runtime.md @@ -1,6 +1,6 @@ # Kernels & Runtime — Cluster CoursIA -> REFERENCE — vivante — dernière révision 2026-11-21 +> REFERENCE — vivante — dernière révision 2026-11-24 Document de référence détaillant l'inventaire kernels obligatoire sur toute machine du cluster (cf CLAUDE.md règle H.2). @@ -179,7 +179,7 @@ python scripts/ci/dotnet_preload_packages.py QuikGraph==2.5.0 # puis dans la cellule : #r "./_deps/QuikGraph.dll" ``` -**Ce qu'il ne faut PAS en faire** : une conversion de masse des carnets vers `#r "./_deps/..."`. Le pilote du 2026-09-25 (`CSP-1-Fundamentals-CSharp.ipynb`) a mesure les trois bras — nuget d'origine 19/19 OK, local seul 16/19 (`Could not locate ikvm home path`), mixte 15/19 (`MSB4036 IkvmResolveNearestRuntimeIdentifier introuvable`). Les packages IKVM ont besoin du **graphe de restauration NuGet** que `_deps/` ne reconstitue pas, et `_deps/` est gitignore : une conversion generalisee casserait de facon **deterministe** tout clone neuf, pour un bug intermittent. L'outil est un **remede de reparation ponctuelle**, pas une migration. +**Ce qu'il ne faut PAS en faire** : une conversion de masse des carnets vers `#r "./_deps/..."`. Le pilote du 2026-09-25 (`CSP-01-Fundamentals-CSharp.ipynb`) a mesure les trois bras — nuget d'origine 19/19 OK, local seul 16/19 (`Could not locate ikvm home path`), mixte 15/19 (`MSB4036 IkvmResolveNearestRuntimeIdentifier introuvable`). Les packages IKVM ont besoin du **graphe de restauration NuGet** que `_deps/` ne reconstitue pas, et `_deps/` est gitignore : une conversion generalisee casserait de facon **deterministe** tout clone neuf, pour un bug intermittent. L'outil est un **remede de reparation ponctuelle**, pas une migration. Recit complet, 5 probes, mesures des trois bras : [`2026-09-25-dotnet-restore-rfc-17361.md`](../transients/2026-09-25-dotnet-restore-rfc-17361.md). diff --git a/docs/reference/lean-material-map.md b/docs/reference/lean-material-map.md index 39e29d056ed..ea071477f96 100644 --- a/docs/reference/lean-material-map.md +++ b/docs/reference/lean-material-map.md @@ -61,7 +61,7 @@ Cette page est regeneree par `scripts/lean/lean_material_map.py`. Une table reco ### Reconciliation -529 modules + 388 miroirs attribues a un lac + 11 fichiers hors lac + 26 fichiers ecartes (dossier vendu, ou extension `.lean` portee par un fichier qui n'est pas du Lean) = 954 fichiers `.lean` traces, soit la population entiere de `git ls-files '*.lean'`. Un fichier qui n'apparait dans aucune de ces quatre colonnes a ete perdu en route : c'est le defaut que cette reconciliation rend visible. +530 modules + 389 miroirs attribues a un lac + 11 fichiers hors lac + 26 fichiers ecartes (dossier vendu, ou extension `.lean` portee par un fichier qui n'est pas du Lean) = 956 fichiers `.lean` traces, soit la population entiere de `git ls-files '*.lean'`. Un fichier qui n'apparait dans aucune de ces quatre colonnes a ete perdu en route : c'est le defaut que cette reconciliation rend visible. ### Lacs hors CI diff --git a/docs/reference/lib-versions.md b/docs/reference/lib-versions.md index f5bfc6c33c8..3de637c4b30 100644 --- a/docs/reference/lib-versions.md +++ b/docs/reference/lib-versions.md @@ -1,6 +1,6 @@ # Versions de bibliotheques chargees par les carnets -> REFERENCE — vivante — dernière révision 2026-11-22 +> REFERENCE — vivante — dernière révision 2026-11-24 Organe : `scripts/notebook_tools/check_lib_versions.py` — manifeste : `scripts/notebook_tools/lib_versions_manifest.json` — issue : #23073. @@ -235,7 +235,7 @@ modifies, epinglages relus a la base et a la tete) : | etat (comparaison brute) | **1** | 1 | Le faux positif de la ligne « etat » est mesure : la PR `9364be282` modifie -`CSP-5-Optimization-CSharp.ipynb` sans toucher a son epinglage +`CSP-05-Optimization-CSharp.ipynb` sans toucher a son epinglage `Google.OrTools 9.11.4210` (canonique 9.15.6755). Une garde fondee sur l'etat l'aurait fait rougir a tort. diff --git a/docs/reference/pyodide-eligibilite.md b/docs/reference/pyodide-eligibilite.md index 234f0b0980d..5cb36926b56 100644 --- a/docs/reference/pyodide-eligibilite.md +++ b/docs/reference/pyodide-eligibilite.md @@ -7,7 +7,7 @@ La famille Python se lit sur la langue declaree (`language_info.name`), le nom d noyau ne servant que de repli : un carnet sans langue ni noyau Python n'est pas compte -- le census ne suppose pas Python par defaut. Le compte d'une serie peut donc etre inferieur au nombre de fichiers `.ipynb` qu'elle contient. -Census : **1472** carnets Python, **574** eligibles, **898** refuses. +Census : **1478** carnets Python, **578** eligibles, **900** refuses. Source de verite des paquets : `pyodide-lock.json` (ABI 2026_0, Python 3.14.2, wasm32, emscripten_5_0_3 ; 357 paquets), commite avec le rapport (`docs/reference/pyodide-lock.json`), ainsi que le cache des sondes @@ -77,7 +77,7 @@ accessibles en local avec `--detail-cle` (sortie a ne pas committer). | Automata | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | | CaseStudies | 4 | 0 | 4 | 0 | 4 | 0 | 0 | 4 | | Causalite | 12 | 2 | 10 | 1 | 0 | 1 | 0 | 9 | -| Chaines | 12 | 12 | 0 | 0 | 0 | 0 | 0 | 0 | +| Chaines | 15 | 15 | 0 | 0 | 0 | 0 | 0 | 0 | | Coalitions | 4 | 2 | 2 | 0 | 0 | 0 | 2 | 1 | | Complexity | 28 | 24 | 4 | 0 | 0 | 0 | 1 | 3 | | Compression | 13 | 10 | 3 | 1 | 0 | 0 | 0 | 2 | @@ -86,6 +86,7 @@ accessibles en local avec `--detail-cle` (sortie a ne pas committer). | DecisionTheory | 15 | 2 | 13 | 0 | 0 | 0 | 0 | 13 | | Diagnostic-Medical | 2 | 0 | 2 | 0 | 0 | 0 | 2 | 2 | | Dynamics | 11 | 10 | 1 | 0 | 1 | 1 | 0 | 0 | +| Dynamiques | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | | FallacyDetection | 5 | 2 | 3 | 0 | 0 | 1 | 1 | 1 | | FineTuning | 11 | 0 | 11 | 11 | 0 | 0 | 4 | 8 | | Fondations | 2 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | @@ -130,7 +131,7 @@ accessibles en local avec `--detail-cle` (sortie a ne pas committer). | SmartContracts | 31 | 10 | 21 | 0 | 3 | 17 | 19 | 17 | | SocialChoice | 12 | 6 | 6 | 0 | 0 | 0 | 5 | 1 | | SymbolicLearning | 20 | 7 | 13 | 7 | 2 | 2 | 6 | 6 | -| Texte | 48 | 3 | 45 | 18 | 22 | 27 | 5 | 35 | +| Texte | 49 | 3 | 46 | 19 | 22 | 27 | 5 | 35 | | Tweety | 19 | 1 | 18 | 0 | 0 | 2 | 18 | 6 | | Vibe-Coding | 6 | 5 | 1 | 0 | 0 | 0 | 0 | 1 | | Video | 23 | 3 | 20 | 16 | 11 | 14 | 6 | 19 | @@ -139,7 +140,7 @@ accessibles en local avec `--detail-cle` (sortie a ne pas committer). | gateway | 2 | 0 | 2 | 0 | 0 | 0 | 1 | 1 | | kelly_lean | 5 | 5 | 0 | 0 | 0 | 0 | 0 | 0 | | partner-course-quant-trading | 7 | 0 | 7 | 0 | 0 | 0 | 5 | 4 | -| projects | 113 | 5 | 108 | 10 | 0 | 3 | 65 | 54 | +| projects | 114 | 5 | 109 | 10 | 0 | 3 | 66 | 54 | | research | 26 | 5 | 21 | 4 | 0 | 0 | 4 | 17 | | scripts/notebook_tools | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | @@ -164,7 +165,7 @@ disait. Le comptage avant/apres est donc sur la meme population : | Mesure | Avant | Apres | |---|---:|---:| -| Carnets eligibles | 781 | 574 | +| Carnets eligibles | 785 | 578 | Le detail des dependances est dans le fichier `pyodide-refus.tsv` (colonne `suffisance`). @@ -220,6 +221,9 @@ Le detail des dependances est dans le fichier `pyodide-refus.tsv` (colonne `suff | `MyIA.AI.Notebooks/Physique/Chaines/Chaines-10-Groupe-Rotations-Automorphismes-Directions-Python.ipynb` | Chaines | python3 | - | - | | `MyIA.AI.Notebooks/Physique/Chaines/Chaines-11-Groupe-Lorentz-Signature-Un-Contre-Trois-Python.ipynb` | Chaines | python3 | - | - | | `MyIA.AI.Notebooks/Physique/Chaines/Chaines-12-Boosts-Et-L-Unite-Une-Python.ipynb` | Chaines | python3 | - | - | +| `MyIA.AI.Notebooks/Physique/Chaines/Chaines-13-Spin-Helicite-Groupe-Spin-C-Python.ipynb` | Chaines | python3 | matplotlib==3.10.8 | - | +| `MyIA.AI.Notebooks/Physique/Chaines/Chaines-14-P-C-T-Et-CPT-Python.ipynb` | Chaines | python3 | matplotlib==3.10.8 | - | +| `MyIA.AI.Notebooks/Physique/Chaines/Chaines-15-Theoreme-D-Ordre-Python.ipynb` | Chaines | python3 | matplotlib==3.10.8 | - | | `MyIA.AI.Notebooks/GameTheory/Coalitions/Coalitions-02-Assistance-Games-Python.ipynb` | Coalitions | python3 | matplotlib==3.10.8, numpy==2.4.6 | - | | `MyIA.AI.Notebooks/GameTheory/Coalitions/Coalitions-04-Munkres-Affectation-Python.ipynb` | Coalitions | python3 | numpy==2.4.6, scipy==1.18.0 | - | | `MyIA.AI.Notebooks/InformationCalcul/Complexity/Complexity-01-StepCounting-Python.ipynb` | Complexity | python3 | matplotlib==3.10.8, numpy==2.4.6 | - | @@ -309,6 +313,7 @@ Le detail des dependances est dans le fichier `pyodide-refus.tsv` (colonne `suff | `MyIA.AI.Notebooks/GameTheory/Dynamics/Dynamics-07-Equilibres-par-Simulation-Python.ipynb` | Dynamics | python3 | matplotlib==3.10.8, numpy==2.4.6, pandas==3.0.2 | - | | `MyIA.AI.Notebooks/GameTheory/Dynamics/Dynamics-08-Institutions-Transparentes-Python.ipynb` | Dynamics | python3 | - | - | | `MyIA.AI.Notebooks/GameTheory/Dynamics/Dynamics-09-Biens-Publics-N-Personnes-Python.ipynb` | Dynamics | python3 | matplotlib==3.10.8, numpy==2.4.6 | - | +| `MyIA.AI.Notebooks/BioMedecine/Dynamiques/Dynamiques-01-Populations-et-Epidemies-Python.ipynb` | Dynamiques | python3 | matplotlib==3.10.8, numpy==2.4.6, scipy==1.18.0 | - | | `MyIA.AI.Notebooks/GenAI/FallacyDetection/01_taxonomy_intro.ipynb` | FallacyDetection | python3 | - | - | | `MyIA.AI.Notebooks/GenAI/FallacyDetection/03_taxonomy_coverage_gap.ipynb` | FallacyDetection | python3 | - | - | | `MyIA.AI.Notebooks/Probas/Fondations/Probas-CLT-Theoreme-Central-Limite.ipynb` | Fondations | python3 | numpy==2.4.6 | - | @@ -642,7 +647,7 @@ Le detail des dependances est dans le fichier `pyodide-refus.tsv` (colonne `suff | `MyIA.AI.Notebooks/Search/Part1-Foundations/Search-12a-Composer-Regards.ipynb` | Part1-Foundations | python3 | matplotlib==3.10.8, numpy==2.4.6, pandas==3.0.2 | - | | `MyIA.AI.Notebooks/Search/Part1-Foundations/Search-13-AutomaticGroups-WordProblem.ipynb` | Part1-Foundations | python3 | - | - | | `MyIA.AI.Notebooks/Search/Part1-Foundations/Search-13a-Traverser-Murs-Certifies.ipynb` | Part1-Foundations | python3 | matplotlib==3.10.8, numpy==2.4.6 | - | -| `MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb` | Part2-CSP | python3 | matplotlib==3.10.8, networkx==3.6.1, numpy==2.4.6 | - | +| `MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb` | Part2-CSP | python3 | matplotlib==3.10.8, networkx==3.6.1, numpy==2.4.6 | - | | `MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-07-Wordle-Python.ipynb` | Part3-Cas-pratiques | python3 | matplotlib==3.10.8, numpy==2.4.6 | - | | `MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-12-ConnectFour-Python.ipynb` | Part3-Cas-pratiques | python3 | matplotlib==3.10.8, numpy==2.4.6 | - | | `MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-14-ConnectFour-Adversarial-Python.ipynb` | Part3-Cas-pratiques | python3 | matplotlib==3.10.8, numpy==2.4.6, pandas==3.0.2 | - | @@ -709,13 +714,13 @@ Le detail des dependances est dans le fichier `pyodide-refus.tsv` (colonne `suff | `MyIA.AI.Notebooks/GameTheory/SocialChoice/ChoixSocial-05-Gibbard-Satterthwaite-Python.ipynb` | SocialChoice | python3 | matplotlib==3.10.8, numpy==2.4.6 | - | | `MyIA.AI.Notebooks/GameTheory/SocialChoice/ChoixSocial-06-Mobius-Aggregation-Pouvoir-Manipulation-Python.ipynb` | SocialChoice | python3 | - | - | | `MyIA.AI.Notebooks/GameTheory/SocialChoice/ChoixSocial-07-Committees-Core-Python.ipynb` | SocialChoice | python3 | matplotlib==3.10.8, numpy==2.4.6, scipy==1.18.0 | - | -| `MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-1-LogicalLearning.ipynb` | SymbolicLearning | python3 | - | - | -| `MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-10-ActiveAutomataLearning.ipynb` | SymbolicLearning | python3 | matplotlib==3.10.8 | - | -| `MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-12b-SpectralLogicSynthesis.ipynb` | SymbolicLearning | python3 | matplotlib==3.10.8, numpy==2.4.6 | - | -| `MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-12c-PavlovDLS-Reproduction-output.ipynb` | SymbolicLearning | python3 | numpy==2.4.6 | - | -| `MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-12c-PavlovDLS-Reproduction.ipynb` | SymbolicLearning | python3 | numpy==2.4.6 | - | -| `MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-2-KnowledgeBasedLearning.ipynb` | SymbolicLearning | python3 | - | - | -| `MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-3-RelevanceLearning.ipynb` | SymbolicLearning | python3 | numpy==2.4.6, scikit-learn==1.8.0 | - | +| `MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-01-LogicalLearning-Python.ipynb` | SymbolicLearning | python3 | - | - | +| `MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-02-KnowledgeBasedLearning-Python.ipynb` | SymbolicLearning | python3 | - | - | +| `MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-03-RelevanceLearning-Python.ipynb` | SymbolicLearning | python3 | numpy==2.4.6, scikit-learn==1.8.0 | - | +| `MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-10-ActiveAutomataLearning-Python.ipynb` | SymbolicLearning | python3 | matplotlib==3.10.8 | - | +| `MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-12b-SpectralLogicSynthesis-Python.ipynb` | SymbolicLearning | python3 | matplotlib==3.10.8, numpy==2.4.6 | - | +| `MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-12c-PavlovDLS-Reproduction-Python.ipynb` | SymbolicLearning | python3 | numpy==2.4.6 | - | +| `MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-12c-PavlovDLS-Reproduction-output-Python.ipynb` | SymbolicLearning | python3 | numpy==2.4.6 | - | | `MyIA.AI.Notebooks/GenAI/Texte/10g_Speculative_Decoding.ipynb` | Texte | python3 | matplotlib==3.10.8, numpy==2.4.6 | - | | `MyIA.AI.Notebooks/GenAI/Texte/10h_Roofline_Memory_Bandwidth.ipynb` | Texte | python3 | matplotlib==3.10.8, numpy==2.4.6 | - | | `MyIA.AI.Notebooks/GenAI/Texte/14b_Paginated_Memory-Python.ipynb` | Texte | python3 | - | - | @@ -810,7 +815,7 @@ fichier `pyodide-refus.tsv`, une ligne par carnet refuse. | _research | cle, gpu, reseau, suffisance | - | | gateway | import_absent, suffisance | kernel_gateway (1) | | partner-course-quant-trading | import_absent, suffisance | AlgorithmImports (5) | -| projects | gpu, import_absent, reseau, suffisance | AlgorithmImports (65) | +| projects | gpu, import_absent, reseau, suffisance | AlgorithmImports (66) | | research | gpu, import_absent, suffisance | AlgorithmImports (4) | Les motifs **se cumulent** : un carnet refuse pour une cle d'API et pour un import diff --git a/docs/reference/pyodide-refus.tsv b/docs/reference/pyodide-refus.tsv index c544773fb13..785a6b42665 100644 --- a/docs/reference/pyodide-refus.tsv +++ b/docs/reference/pyodide-refus.tsv @@ -372,15 +372,15 @@ MyIA.AI.Notebooks/Search/Part1-Foundations/Search-09f-ConvexOptimisation-Python. MyIA.AI.Notebooks/Search/Part1-Foundations/Search-10-SymbolicAutomata.ipynb Part1-Foundations import_absent,suffisance import_absent=automata.fa.dfa,automata.fa.nfa,z3;suffisance=dependance_locale:automata_core -> automata.base.exceptions : absent de la distribution;dependance_locale:automata_core -> automata.fa.dfa : absent de la distribution;absent_distribution:graphviz : absent de la distribution MyIA.AI.Notebooks/Search/Part1-Foundations/Search-11-Metaheuristics.ipynb Part1-Foundations suffisance suffisance=absent_distribution:mealpy : absent de la distribution;absent_distribution:mealpy.utils.space : absent de la distribution MyIA.AI.Notebooks/Search/Part1-Foundations/Search-11c-Empirical-Algorithm-Selection.ipynb Part1-Foundations import_absent import_absent=ortools,ortools.sat.python,z3 -MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb Part2-CSP import_absent import_absent=constraint,pychoco -MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3.ipynb Part2-CSP import_absent import_absent=z3 -MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb Part2-CSP import_absent import_absent=pychoco -MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb Part2-CSP import_absent import_absent=constraint,ortools.sat.python,pychoco -MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb Part2-CSP import_absent import_absent=ortools.sat.python -MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb Part2-CSP import_absent import_absent=ortools.sat.python,pychoco -MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb Part2-CSP cle,import_absent cle=1;import_absent=ortools.sat.python -MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb Part2-CSP import_absent import_absent=ortools.sat.python -MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb Part2-CSP import_absent import_absent=ortools.sat.python +MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb Part2-CSP import_absent import_absent=constraint,pychoco +MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb Part2-CSP import_absent import_absent=pychoco +MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb Part2-CSP import_absent import_absent=constraint,ortools.sat.python,pychoco +MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb Part2-CSP import_absent import_absent=ortools.sat.python +MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb Part2-CSP import_absent import_absent=ortools.sat.python,pychoco +MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb Part2-CSP cle,import_absent cle=1;import_absent=ortools.sat.python +MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb Part2-CSP import_absent import_absent=ortools.sat.python +MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb Part2-CSP import_absent import_absent=ortools.sat.python +MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Python.ipynb Part2-CSP import_absent import_absent=z3 MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-01-NQueens-Python.ipynb Part3-Cas-pratiques import_absent import_absent=ortools.sat.python MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-02-GraphColoring-Python.ipynb Part3-Cas-pratiques import_absent import_absent=ortools.sat.python MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-02-GraphColoring-Statistical-Validity-Python.ipynb Part3-Cas-pratiques import_absent import_absent=ortools.sat.python @@ -661,19 +661,19 @@ MyIA.AI.Notebooks/GameTheory/SocialChoice/ChoixSocial-06b-Mobius-Coalitions-Lean MyIA.AI.Notebooks/GameTheory/SocialChoice/ChoixSocial-08-Kemeny-RankedPairs-Dodgson-Python.ipynb SocialChoice import_absent import_absent=z3 MyIA.AI.Notebooks/GameTheory/SocialChoice/ChoixSocial-09-Committees-STV-Monroe-ChamberlinCourant-Python.ipynb SocialChoice import_absent import_absent=z3 MyIA.AI.Notebooks/GameTheory/SocialChoice/ChoixSocial-10-Manipulation-Strategique-MultiWinner-Python.ipynb SocialChoice import_absent import_absent=z3 -MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-11-Capstone-NeuroSymbolic.ipynb SymbolicLearning cle,reseau,suffisance cle=1;reseau=api.openai.com;suffisance=absent_distribution:dotenv : absent de la distribution -MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-12-DifferentiableLogicGateNetworks.ipynb SymbolicLearning gpu,import_absent,suffisance gpu=torch,torch.nn,usage CUDA explicite;import_absent=torchvision,torchvision.transforms;suffisance=dependance_locale:difflogic -> difflogic_cuda : absent de la distribution -MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-13-Discover-TPR-output.ipynb SymbolicLearning gpu gpu=torch,torch.nn,torch.nn.functional -MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-13-Discover-TPR.ipynb SymbolicLearning gpu gpu=torch,torch.nn,torch.nn.functional -MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-13b-TPR-SAE.ipynb SymbolicLearning gpu,suffisance gpu=torch,torch.nn,torch.nn.functional;suffisance=hors_serie:ict.sae_calibration : module hors serie non livre par le bundle;hors_serie:ict.sae_dictionary : module hors serie non livre par le bundle -MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-14-AIFeynman-Discover-Equations.ipynb SymbolicLearning gpu,import_absent gpu=torch,usage CUDA explicite;import_absent=aifeynman -MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-15-LearnedConjectures-Solver.ipynb SymbolicLearning import_absent import_absent=ortools.sat.python -MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-4-InductiveLogicProgramming.ipynb SymbolicLearning import_absent import_absent=janus_swi,popper,popper.loop,popper.util -MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-5-InverseResolution.ipynb SymbolicLearning import_absent import_absent=janus_swi -MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-6-ModernILP.ipynb SymbolicLearning gpu,import_absent gpu=tensorflow;import_absent=janus_swi,lernd.classes,lernd.lernd_loss,lernd.lernd_types,lernd.main,lernd.util -MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-7-NeuroSymbolic.ipynb SymbolicLearning gpu,suffisance gpu=torch,usage CUDA explicite;suffisance=absent_distribution:ltn : absent de la distribution -MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-8-KnowledgeGraphs-ILP.ipynb SymbolicLearning suffisance suffisance=absent_distribution:rdflib : absent de la distribution;absent_distribution:rdflib.namespace : absent de la distribution -MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-9-LLM-SymbolicLearning.ipynb SymbolicLearning cle,reseau,suffisance cle=1;reseau=api.openai.com;suffisance=absent_distribution:dotenv : absent de la distribution +MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-04-InductiveLogicProgramming-Python.ipynb SymbolicLearning import_absent import_absent=janus_swi,popper,popper.loop,popper.util +MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-05-InverseResolution-Python.ipynb SymbolicLearning import_absent import_absent=janus_swi +MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-06-ModernILP-Python.ipynb SymbolicLearning gpu,import_absent gpu=tensorflow;import_absent=janus_swi,lernd.classes,lernd.lernd_loss,lernd.lernd_types,lernd.main,lernd.util +MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-07-NeuroSymbolic-Python.ipynb SymbolicLearning gpu,suffisance gpu=torch,usage CUDA explicite;suffisance=absent_distribution:ltn : absent de la distribution +MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-08-KnowledgeGraphs-ILP-Python.ipynb SymbolicLearning suffisance suffisance=absent_distribution:rdflib : absent de la distribution;absent_distribution:rdflib.namespace : absent de la distribution +MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-09-LLM-SymbolicLearning-Python.ipynb SymbolicLearning cle,reseau,suffisance cle=1;reseau=api.openai.com;suffisance=absent_distribution:dotenv : absent de la distribution +MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-11-Capstone-NeuroSymbolic-Python.ipynb SymbolicLearning cle,reseau,suffisance cle=1;reseau=api.openai.com;suffisance=absent_distribution:dotenv : absent de la distribution +MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-12-DifferentiableLogicGateNetworks-Python.ipynb SymbolicLearning gpu,import_absent,suffisance gpu=torch,torch.nn,usage CUDA explicite;import_absent=torchvision,torchvision.transforms;suffisance=dependance_locale:difflogic -> difflogic_cuda : absent de la distribution +MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-13-Discover-TPR-Python.ipynb SymbolicLearning gpu gpu=torch,torch.nn,torch.nn.functional +MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-13-Discover-TPR-output-Python.ipynb SymbolicLearning gpu gpu=torch,torch.nn,torch.nn.functional +MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-13b-TPR-SAE-Python.ipynb SymbolicLearning gpu,suffisance gpu=torch,torch.nn,torch.nn.functional;suffisance=hors_serie:ict.sae_calibration : module hors serie non livre par le bundle;hors_serie:ict.sae_dictionary : module hors serie non livre par le bundle +MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-14-AIFeynman-Discover-Equations-Python.ipynb SymbolicLearning gpu,import_absent gpu=torch,usage CUDA explicite;import_absent=aifeynman +MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-15-LearnedConjectures-Solver-Python.ipynb SymbolicLearning import_absent import_absent=ortools.sat.python MyIA.AI.Notebooks/GenAI/Texte/01_OpenAI_Intro.ipynb Texte cle,reseau,suffisance cle=1;reseau=openrouter.ai;suffisance=absent_distribution:dotenv : absent de la distribution;hors_serie:param_guard : module hors serie non livre par le bundle MyIA.AI.Notebooks/GenAI/Texte/02_PromptEngineering.ipynb Texte import_absent,reseau,suffisance reseau=openrouter.ai;import_absent=__main__;suffisance=absent_distribution:dotenv : absent de la distribution;hors_serie:genai_helpers : module hors serie non livre par le bundle;absent_distribution:google.colab : absent de la distribution MyIA.AI.Notebooks/GenAI/Texte/03_Structured_Outputs.ipynb Texte suffisance suffisance=absent_distribution:dotenv : absent de la distribution @@ -690,6 +690,7 @@ MyIA.AI.Notebooks/GenAI/Texte/09b_Prompt_Security_RedTeam.ipynb Texte cle,reseau MyIA.AI.Notebooks/GenAI/Texte/09c_Production_Routage_Repli.ipynb Texte cle,reseau,suffisance cle=3;reseau=192.168.0.47:5002,192.168.0.47:5003,openrouter.ai;suffisance=absent_distribution:dotenv : absent de la distribution MyIA.AI.Notebooks/GenAI/Texte/09d_Production_Caches.ipynb Texte cle,reseau,suffisance cle=3;reseau=192.168.0.47:5002,openrouter.ai;suffisance=absent_distribution:dotenv : absent de la distribution MyIA.AI.Notebooks/GenAI/Texte/09e_Production_Exploitation.ipynb Texte cle,reseau,suffisance cle=1;reseau=api.openai.com,localhost:11434,openrouter.ai;suffisance=absent_distribution:dotenv : absent de la distribution +MyIA.AI.Notebooks/GenAI/Texte/09f_Tatouage_Textes_Generes-Python.ipynb Texte gpu gpu=torch,torch.nn,torch.nn.functional MyIA.AI.Notebooks/GenAI/Texte/10_LocalLlama.ipynb Texte cle,gpu,reseau,suffisance gpu=torch;cle=1;reseau=192.168.0.47:5002,aiohttp,api.openai.com,localhost:11434;suffisance=absent_distribution:dotenv : absent de la distribution;absent_distribution:nest_asyncio : absent de la distribution;absent_distribution:semantic_kernel : absent de la distribution;absent_distribution:semantic_kernel.agents : absent de la distribution MyIA.AI.Notebooks/GenAI/Texte/10b_Inference_Mechanics.ipynb Texte gpu,reseau,suffisance gpu=torch;reseau=requests;suffisance=absent_distribution:dotenv : absent de la distribution MyIA.AI.Notebooks/GenAI/Texte/10c_Long_Context_Strategies.ipynb Texte cle,reseau,suffisance cle=1;reseau=192.168.0.47:5002,requests;suffisance=absent_distribution:transformers : absent de la distribution @@ -839,6 +840,7 @@ MyIA.AI.Notebooks/QuantConnect/projects/Option-Wheel/research.ipynb projects imp MyIA.AI.Notebooks/QuantConnect/projects/Options-VGT/quantbook.ipynb projects import_absent import_absent=AlgorithmImports MyIA.AI.Notebooks/QuantConnect/projects/OptionsIncome/quantbook.ipynb projects import_absent import_absent=AlgorithmImports MyIA.AI.Notebooks/QuantConnect/projects/OptionsIncome/research.ipynb projects suffisance suffisance=absent_distribution:yfinance : absent de la distribution +MyIA.AI.Notebooks/QuantConnect/projects/OvernightAnomaly-QC/research.ipynb projects import_absent import_absent=AlgorithmImports MyIA.AI.Notebooks/QuantConnect/projects/PairsTrading/quantbook.ipynb projects import_absent import_absent=AlgorithmImports MyIA.AI.Notebooks/QuantConnect/projects/PairsTrading/research.ipynb projects suffisance suffisance=absent_distribution:yfinance : absent de la distribution MyIA.AI.Notebooks/QuantConnect/projects/Portfolio-IBKR-Coinbase-Hybrid/quantbook.ipynb projects import_absent import_absent=AlgorithmImports diff --git a/docs/reference/rename-ledger.tsv b/docs/reference/rename-ledger.tsv index ca74bcbe431..62e71b86120 100644 --- a/docs/reference/rename-ledger.tsv +++ b/docs/reference/rename-ledger.tsv @@ -764,3 +764,23 @@ MyIA.AI.Notebooks/SymbolicAI/SymbolicLearning/SL-12b-PavlovDLS-Reproduction-outp MyIA.AI.Notebooks/GenAI/Texte/TransformerVariants/TV-00d-Encodeurs-from-scratch.ipynb MyIA.AI.Notebooks/GenAI/Texte/TransformerVariants/TV-00d-Encodeurs-from-scratch-Python.ipynb 2026-11-25 myia-po-2024:CoursIA MyIA.AI.Notebooks/GenAI/Texte/TransformerVariants/TV-03-Internalisation-CoT.ipynb MyIA.AI.Notebooks/GenAI/Texte/TransformerVariants/TV-03-Internalisation-CoT-Python.ipynb 2026-11-25 myia-po-2024:CoursIA MyIA.AI.Notebooks/GenAI/Texte/TransformerVariants/TV-04-DiscoLoop.ipynb MyIA.AI.Notebooks/GenAI/Texte/TransformerVariants/TV-04-DiscoLoop-Python.ipynb 2026-11-25 myia-po-2024:CoursIA +MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb 2026-11-24 myia-po-2023:CoursIA +MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb 2026-11-24 myia-po-2023:CoursIA +MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3.ipynb MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Python.ipynb 2026-11-24 myia-po-2023:CoursIA +MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb 2026-11-24 myia-po-2023:CoursIA +MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb 2026-11-24 myia-po-2023:CoursIA +MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced-CSharp.ipynb MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-CSharp.ipynb 2026-11-24 myia-po-2023:CoursIA +MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb 2026-11-24 myia-po-2023:CoursIA +MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-CSharp.ipynb MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-CSharp.ipynb 2026-11-24 myia-po-2023:CoursIA +MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb 2026-11-24 myia-po-2023:CoursIA +MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-Rust.ipynb MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Rust.ipynb 2026-11-24 myia-po-2023:CoursIA +MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization-CSharp.ipynb MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-CSharp.ipynb 2026-11-24 myia-po-2023:CoursIA +MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb 2026-11-24 myia-po-2023:CoursIA +MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb 2026-11-24 myia-po-2023:CoursIA +MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb 2026-11-24 myia-po-2023:CoursIA +MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb 2026-11-24 myia-po-2023:CoursIA +MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb 2026-11-24 myia-po-2023:CoursIA +MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb 2026-11-24 myia-po-2023:CoursIA +MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb 2026-11-24 myia-po-2023:CoursIA +MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb 2026-11-24 myia-po-2023:CoursIA +MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb 2026-11-24 myia-po-2023:CoursIA diff --git a/docs/transients/2026-09-25-dotnet-restore-rfc-17361.md b/docs/transients/2026-09-25-dotnet-restore-rfc-17361.md index d615ea4834a..60b08c5fc10 100644 --- a/docs/transients/2026-09-25-dotnet-restore-rfc-17361.md +++ b/docs/transients/2026-09-25-dotnet-restore-rfc-17361.md @@ -66,7 +66,7 @@ La mesure discriminante c.760 (probe E) **réfute** l'hypothèse initiale « `fi ## Pilot du livrable 3 : le remplacement n'est PAS équivalent (mesuré 2026-09-25) -Le livrable 3 (« convertir `#r "nuget:"` en `#r` local ») suppose que les deux formes sont interchangeables. **Elles ne le sont pas.** Mesure sur `MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb` — le notebook du dépôt le plus exposé au bug (3 restores NuGet dans une seule cellule, cellule 3 : `IKVM`, `IKVM.Image`, `IKVM.Image.runtime.win-x64`), exécuté sur po-2024 avec le kernel `.net-csharp` et le pin cluster `1.0.617701` : +Le livrable 3 (« convertir `#r "nuget:"` en `#r` local ») suppose que les deux formes sont interchangeables. **Elles ne le sont pas.** Mesure sur `MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb` — le notebook du dépôt le plus exposé au bug (3 restores NuGet dans une seule cellule, cellule 3 : `IKVM`, `IKVM.Image`, `IKVM.Image.runtime.win-x64`), exécuté sur po-2024 avec le kernel `.net-csharp` et le pin cluster `1.0.617701` : | Bras | Cellule 3 (les `#r`) | Résultat | Diagnostic | |---|---|---|---| diff --git a/scripts/audit/tests/test_check_orphan_merged_pr.py b/scripts/audit/tests/test_check_orphan_merged_pr.py index 4126f86f70e..789a76ce2b5 100644 --- a/scripts/audit/tests/test_check_orphan_merged_pr.py +++ b/scripts/audit/tests/test_check_orphan_merged_pr.py @@ -503,15 +503,15 @@ def test_unlabel_repaired_labeled_pr(monkeypatch, tmp_path): _g(repo, "checkout", "-q", "-b", "feature/base") _commit(repo, "base leg work", {"_quarto.yml": "cfg"}) _g(repo, "checkout", "-q", "-b", "feature/site") - mc = _commit(repo, "PR work", {"CSP/CSP-5-Optimization.ipynb": "v1"}) + mc = _commit(repo, "PR work", {"CSP/CSP-05-Optimization-Python.ipynb": "v1"}) _g(repo, "checkout", "-q", "main") _commit(repo, "squash base leg", {"_quarto.yml": "cfg"}) - _commit(repo, "relanded", {"CSP/CSP-5-Optimization.ipynb": "v1"}) - _commit(repo, "evolved", {"CSP/CSP-5-Optimization.ipynb": "v9"}) + _commit(repo, "relanded", {"CSP/CSP-05-Optimization-Python.ipynb": "v1"}) + _commit(repo, "evolved", {"CSP/CSP-05-Optimization-Python.ipynb": "v9"}) fake_pr = {"number": 11931, "baseRefName": "feature/base", "headRefName": "feature/site", "mergedAt": "2026-08-15T10:00:00Z", - "mergeCommit": {"oid": mc}, "files": [{"path": "CSP/CSP-5-Optimization.ipynb"}], + "mergeCommit": {"oid": mc}, "files": [{"path": "CSP/CSP-05-Optimization-Python.ipynb"}], "title": "T", "body": "See #11891"} def fake_gh(args): diff --git a/scripts/ci/fast_lane_registry.py b/scripts/ci/fast_lane_registry.py index 5fcdb850867..9f1f2743ce4 100644 --- a/scripts/ci/fast_lane_registry.py +++ b/scripts/ci/fast_lane_registry.py @@ -940,6 +940,7 @@ class Guard: "MyIA.AI.Notebooks/Probas/PyMC/**", "MyIA.AI.Notebooks/RL/**", "MyIA.AI.Notebooks/Search/Part1-Foundations/**", + "MyIA.AI.Notebooks/Search/Part2-CSP/**", "MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/**", "MyIA.AI.Notebooks/Search/Part4-Metaheuristics/**", "MyIA.AI.Notebooks/Sudoku/**", diff --git a/scripts/ci/script_size_ceilings.json b/scripts/ci/script_size_ceilings.json index ec96ba1f943..baa38aa604b 100644 --- a/scripts/ci/script_size_ceilings.json +++ b/scripts/ci/script_size_ceilings.json @@ -34,8 +34,8 @@ "note": "Funnel B.0 : threads inline pagines (#17437), bundle des surfaces typees + threads + join des dismissals en une requete GraphQL multi-curseurs (#22757), join REST historique des reviews. Module NEUF extrait de `scripts/check_unaddressed_nits.py` dans #27319 : il porte son propre plafond (491 lignes) pour que le funnel puisse grossir sans faire grossir l'organe (modele nit_markers #27882). Couplage : collaborateurs de l'organe (gh_json, _author_login, _typed_author_surfaces, LIFT_OVERRIDE_LOGINS) resolus au moment de l'appel via wire() — les monkeypatchs des tests passent." }, "scripts/ci/fast_lane_registry.py": { - "lines": 4893, - "note": "Registre de la voie rapide : cible T7 (second rang). Plafond pose sur la taille du 13/11. Releve au 16/11 sur origin/main : le script a grossi de 300 lignes depuis la mesure du 13/11 (4305 -> 4605), puis de 62 lignes de plus (4605 -> 4667). Releve au 19/11 sur origin/main : le script a grossi de 257 lignes de plus (4667 -> 4924) -- le cliquet bloque la PR tant que le plafond n'est pas releve ici. Releve au 20/11 sur origin/main : le script a grossi de 60 lignes de plus (4924 -> 4984) par #27189 (cablage du contrat des carnets Rust dans la voie rapide), sans relèvement dans cette PR -- main est rouge depuis 14:27Z et bloque les PRs dont le Scripts Tests passe sur l'arbre de base. Releve au 20/11 sur l'arbre fusionne avec origin/main (PR #27613) : le script a grossi de 50 lignes de plus (4984 -> 5034) par l'enregistrement dans la voie rapide du detecteur des blocs de comprehension sans reponse (#27611/#27613) -- plafond releve a la taille mesuree sur l'arbre de merge. Releve au 21/11 sur l'arbre de cette PR (#27762/#27799) : le script a grossi de 64 lignes (5034 -> 5098) -- +60 par #27183 (enregistrement de la jambe TRANCHE52 check_toplevel_series sur origin/main, sans relèvement dans cette PR : sentinelle main-red #27810) et +4 par la promotion de la garde lib-versions en bloquante (#27762) ; motif combine #27183 + #27762, plafond releve a la taille mesuree sur l'arbre de la PR. Conflit au merge de main apres #27817 : le rattrapage concurrent 5034 -> 5094 (jambe TRANCHE52 #27183, commit de #27811 repris par ai-01) est deja couvert par ce releve -- les 60 lignes de #27183 ne se comptent pas deux fois ; valeur la plus haute gardee (5098), notes combinees. Abaissement du 21/11 (#27572) : les CORPS des commentaires consultatifs (le dataclass `Commenter` et les sept constructeurs de corps, 422 lignes de texte de presentation) sont extraits dans `scripts/ci/fast_lane_commenters.py` -- ils ne dependent d'aucune donnee de garde. Le registre garde la donnee de garde et re-expose les huit corps ; aucun plancher n'est releve. Releve du 22/11 sur l'ARBRE FUSIONNE de cette PR (#27572 + origin/main du 22/11) : la taille reelle est 4725 lignes -- le registre a recu les ajouts de main (TRANCHE54 #27611, jambe TRANCHE52 #27183) pendant que l'extraction des corps y etait appliquee ; la tranche du manifeste des dependances y est renumerotee TRANCHE55, TRANCHE54 etant pris par #27611 sur main. Le plafond est ecrit a la MESURE de l'arbre fusionne : aucun plancher n'est releve, le plafond descend de 5098 a 4725. Releve du 23/11 sur l'ARBRE FUSIONNE de cette PR (#27977 + origin/main du 23/11) : la taille reelle est 4761 lignes -- `origin/main` porte le registre a 4725 lignes, et cette PR y ajoute 36 lignes (l'enregistrement de la porte bloquante contre les attestations de parite orphelines, #27969). Le plafond est ecrit a la MESURE de l'arbre fusionne, conformement a la decision du coordinateur du 23/11 : **#28117 est le porteur de la REDUCTION** (les entrees en donnees du registre y sont extraites) ; ce releve ne fait que porter le plafond a la mesure, il ne dispenser aucun autre script de son propre decompte. Releve du 2 3/11 sur l'ARBRE FUSIONNE de cette PR (#27995 + origin/main du 23/11) : la taille reelle est 4766 lignes -- `origin/main` porte le registre a 4725 lignes ; cette PR y ajoute le garde `twin-execution-heritage-guard` (import + enregistrement, 5 lignes) et le bloc `twin-attestation-orphan-guard` de #27969 (36 lignes). Le plafond est ecrit a la MESURE de l'arbre fusionne. 4/11 sur l'ARBRE de cette PR (declare des familles migrees au registre zero-pad, dispatch c0030 point 5) : la taille reelle est 4773 lignes -- +12 lignes, une par serie declaree (Tweety, ML, App, SW, Lean, RL, Planners 00/01/02/03, SC 00/01), qui sont les MIROIRS du registre `scripts/notebook_tools/zero_pad_series.json` dans la voie rapide. Aucun autre changement : le plafond est ecrit a la MESURE. Releve du 24/11 sur l'ARBRE FUSIONNE de cette PR (cette PR + origin/main du 24/11) : la taille reelle est 4778 lignes = 4773 (arbre de la PR) + 5 (jambe `twin-execution-heritage-guard` de #27995, reprise de main) ; le plafond est ecrit a la MESURE de l'arbre fusionne, conformement a la convention des releves precedents. Conflit de merge au 24/11 resolu par UNION des deux notes (celle de main sur #27995, celle de cette PR sur les familles zero-pad), la valeur retenue etant la mesure de l'arbre fusionne. Releve du 24/11 sur l'ARBRE FUSIONNE de cette PR (cette PR + origin/main du 24/11, apres #27995) : la taille reelle est 4778 lignes = 4766 (origin/main du 24/11) + 12 (une par serie declaree au registre zero-pad : Tweety, ML, App, SW, Lean, RL, Planners 00/01/02/03, SC 00/01) ; le plafond est ecrit a la MESURE de l'arbre fusionne. Conflit de merge au 24/11 resolu par UNION des deux notes (celle de main sur #27995, celle de cette PR sur les familles zero-pad) ; la valeur retenue est la mesure de l'arbre fusionne (4778). Releve du 25/11 sur l'ARBRE FUSIONNE de cette PR (cette PR + origin/main du 25/11) : la taille reelle est 4826 lignes = 4778 (origin/main du 25/11) + 48 (le bloc TRANCHE56 de cette PR, l'enregistrement dans la voie rapide du cliquet de longueur de chemin, #27676). Le plafond est ecrit a la MESURE de l'arbre fusionne ; aucun plancher n'est releve par ailleurs. 3/11 sur l'ARBRE FUSIONNE de cette PR (#27657 + origin/main du 23/11) : la taille reelle est 4833 lignes -- `origin/main` porte le registre a 4766 lignes (releve #27995), et cette PR y ajoute 67 lignes (l'enregistrement de la garde curriculum-prereq-staleness-guard, liste nommee CURRICULUM_PREREQ_GUARDS). Le compte de 54 lignes porte par le releve precedent de cette PR datait du commit f37063e ; le commit 7a14165f (le garde compare la taxonomie, pas l'inventaire disque) a ajoute 13 lignes de plus, d'ou 67. Le plafond est ecrit a la MESURE de l'arbre fusionne. Conflit de merge au 25/11 resolu par UNION des deux notes (celle de main sur les familles zero-pad et la jambe twin-execution-heritage-guard, celle de cette PR sur la garde curriculum-prereq-staleness-guard). Releve du 25/11 sur l'ARBRE FUSIONNE de cette PR (#27657 + origin/main du 25/11) : la taille reelle est 4845 lignes = 4778 (origin/main) + 67 (la garde curriculum-prereq-staleness-guard de cette PR, liste nommee CURRICULUM_PREREQ_GUARDS) ; le plafond est ecrit a la MESURE de l'arbre fusionne. Conflit de merge au 26/11 resolu par UNION des deux notes (celle de main sur la garde curriculum-prereq-staleness-guard, celle de cette PR sur le bloc TRANCHE56 du cliquet de longueur de chemin #27676) ; la valeur retenue est la MESURE de l'arbre fusionne : 4893 lignes = 4778 (base commune) + 48 (le bloc TRANCHE56 de cette PR) + 67 (la garde curriculum-prereq-staleness-guard de #27657, reprise de main)." + "lines": 4894, + "note": "Registre de la voie rapide : cible T7 (second rang). Plafond pose sur la taille du 13/11. Releve au 16/11 sur origin/main : le script a grossi de 300 lignes depuis la mesure du 13/11 (4305 -> 4605), puis de 62 lignes de plus (4605 -> 4667). Releve au 19/11 sur origin/main : le script a grossi de 257 lignes de plus (4667 -> 4924) -- le cliquet bloque la PR tant que le plafond n'est pas releve ici. Releve au 20/11 sur origin/main : le script a grossi de 60 lignes de plus (4924 -> 4984) par #27189 (cablage du contrat des carnets Rust dans la voie rapide), sans relèvement dans cette PR -- main est rouge depuis 14:27Z et bloque les PRs dont le Scripts Tests passe sur l'arbre de base. Releve au 20/11 sur l'arbre fusionne avec origin/main (PR #27613) : le script a grossi de 50 lignes de plus (4984 -> 5034) par l'enregistrement dans la voie rapide du detecteur des blocs de comprehension sans reponse (#27611/#27613) -- plafond releve a la taille mesuree sur l'arbre de merge. Releve au 21/11 sur l'arbre de cette PR (#27762/#27799) : le script a grossi de 64 lignes (5034 -> 5098) -- +60 par #27183 (enregistrement de la jambe TRANCHE52 check_toplevel_series sur origin/main, sans relèvement dans cette PR : sentinelle main-red #27810) et +4 par la promotion de la garde lib-versions en bloquante (#27762) ; motif combine #27183 + #27762, plafond releve a la taille mesuree sur l'arbre de la PR. Conflit au merge de main apres #27817 : le rattrapage concurrent 5034 -> 5094 (jambe TRANCHE52 #27183, commit de #27811 repris par ai-01) est deja couvert par ce releve -- les 60 lignes de #27183 ne se comptent pas deux fois ; valeur la plus haute gardee (5098), notes combinees. Abaissement du 21/11 (#27572) : les CORPS des commentaires consultatifs (le dataclass `Commenter` et les sept constructeurs de corps, 422 lignes de texte de presentation) sont extraits dans `scripts/ci/fast_lane_commenters.py` -- ils ne dependent d'aucune donnee de garde. Le registre garde la donnee de garde et re-expose les huit corps ; aucun plancher n'est releve. Releve du 22/11 sur l'ARBRE FUSIONNE de cette PR (#27572 + origin/main du 22/11) : la taille reelle est 4725 lignes -- le registre a recu les ajouts de main (TRANCHE54 #27611, jambe TRANCHE52 #27183) pendant que l'extraction des corps y etait appliquee ; la tranche du manifeste des dependances y est renumerotee TRANCHE55, TRANCHE54 etant pris par #27611 sur main. Le plafond est ecrit a la MESURE de l'arbre fusionne : aucun plancher n'est releve, le plafond descend de 5098 a 4725. Releve du 23/11 sur l'ARBRE FUSIONNE de cette PR (#27977 + origin/main du 23/11) : la taille reelle est 4761 lignes -- `origin/main` porte le registre a 4725 lignes, et cette PR y ajoute 36 lignes (l'enregistrement de la porte bloquante contre les attestations de parite orphelines, #27969). Le plafond est ecrit a la MESURE de l'arbre fusionne, conformement a la decision du coordinateur du 23/11 : **#28117 est le porteur de la REDUCTION** (les entrees en donnees du registre y sont extraites) ; ce releve ne fait que porter le plafond a la mesure, il ne dispenser aucun autre script de son propre decompte. Releve du 2 3/11 sur l'ARBRE FUSIONNE de cette PR (#27995 + origin/main du 23/11) : la taille reelle est 4766 lignes -- `origin/main` porte le registre a 4725 lignes ; cette PR y ajoute le garde `twin-execution-heritage-guard` (import + enregistrement, 5 lignes) et le bloc `twin-attestation-orphan-guard` de #27969 (36 lignes). Le plafond est ecrit a la MESURE de l'arbre fusionne. 4/11 sur l'ARBRE de cette PR (declare des familles migrees au registre zero-pad, dispatch c0030 point 5) : la taille reelle est 4773 lignes -- +12 lignes, une par serie declaree (Tweety, ML, App, SW, Lean, RL, Planners 00/01/02/03, SC 00/01), qui sont les MIROIRS du registre `scripts/notebook_tools/zero_pad_series.json` dans la voie rapide. Aucun autre changement : le plafond est ecrit a la MESURE. Releve du 24/11 sur l'ARBRE FUSIONNE de cette PR (cette PR + origin/main du 24/11) : la taille reelle est 4778 lignes = 4773 (arbre de la PR) + 5 (jambe `twin-execution-heritage-guard` de #27995, reprise de main) ; le plafond est ecrit a la MESURE de l'arbre fusionne, conformement a la convention des releves precedents. Conflit de merge au 24/11 resolu par UNION des deux notes (celle de main sur #27995, celle de cette PR sur les familles zero-pad), la valeur retenue etant la mesure de l'arbre fusionne. Releve du 24/11 sur l'ARBRE FUSIONNE de cette PR (cette PR + origin/main du 24/11, apres #27995) : la taille reelle est 4778 lignes = 4766 (origin/main du 24/11) + 12 (une par serie declaree au registre zero-pad : Tweety, ML, App, SW, Lean, RL, Planners 00/01/02/03, SC 00/01) ; le plafond est ecrit a la MESURE de l'arbre fusionne. Conflit de merge au 24/11 resolu par UNION des deux notes (celle de main sur #27995, celle de cette PR sur les familles zero-pad) ; la valeur retenue est la mesure de l'arbre fusionne (4778). Releve du 25/11 sur l'ARBRE FUSIONNE de cette PR (cette PR + origin/main du 25/11) : la taille reelle est 4826 lignes = 4778 (origin/main du 25/11) + 48 (le bloc TRANCHE56 de cette PR, l'enregistrement dans la voie rapide du cliquet de longueur de chemin, #27676). Le plafond est ecrit a la MESURE de l'arbre fusionne ; aucun plancher n'est releve par ailleurs. 3/11 sur l'ARBRE FUSIONNE de cette PR (#27657 + origin/main du 23/11) : la taille reelle est 4833 lignes -- `origin/main` porte le registre a 4766 lignes (releve #27995), et cette PR y ajoute 67 lignes (l'enregistrement de la garde curriculum-prereq-staleness-guard, liste nommee CURRICULUM_PREREQ_GUARDS). Le compte de 54 lignes porte par le releve precedent de cette PR datait du commit f37063e ; le commit 7a14165f (le garde compare la taxonomie, pas l'inventaire disque) a ajoute 13 lignes de plus, d'ou 67. Le plafond est ecrit a la MESURE de l'arbre fusionne. Conflit de merge au 25/11 resolu par UNION des deux notes (celle de main sur les familles zero-pad et la jambe twin-execution-heritage-guard, celle de cette PR sur la garde curriculum-prereq-staleness-guard). Releve du 25/11 sur l'ARBRE FUSIONNE de cette PR (#27657 + origin/main du 25/11) : la taille reelle est 4845 lignes = 4778 (origin/main) + 67 (la garde curriculum-prereq-staleness-guard de cette PR, liste nommee CURRICULUM_PREREQ_GUARDS) ; le plafond est ecrit a la MESURE de l'arbre fusionne. Conflit de merge au 26/11 resolu par UNION des deux notes (celle de main sur la garde curriculum-prereq-staleness-guard, celle de cette PR sur le bloc TRANCHE56 du cliquet de longueur de chemin #27676) ; la valeur retenue est la MESURE de l'arbre fusionne : 4893 lignes = 4778 (base commune) + 48 (le bloc TRANCHE56 de cette PR) + 67 (la garde curriculum-prereq-staleness-guard de #27657, reprise de main). Releve au 27/11 (#28362) : la fusion de main dans la branche zero-padding de Search/Part2-CSP ajoute une ligne au registre (la serie entre dans le bloc TRANCHE1 : 4893 -> 4894, mesure de l'arbre fusionne)." }, "scripts/ci/nit_markers.py": { "lines": 184, diff --git a/scripts/notebook_tools/audit_pip_install_cells.py b/scripts/notebook_tools/audit_pip_install_cells.py index 483a15f0a1d..9c57a073fac 100644 --- a/scripts/notebook_tools/audit_pip_install_cells.py +++ b/scripts/notebook_tools/audit_pip_install_cells.py @@ -23,7 +23,7 @@ subprocess.check_call(...)`` fallback when truly needed). This script is the **detector** sibling of the manual fixes shipped in #6310 -(Search-3-Informed) and #6313 (CSP-1-Fundamentals). It: +(Search-3-Informed) and #6313 (CSP-01-Fundamentals-Python). It: - scans a notebook (or repo-wide) for code cells whose source contains ``pip install`` (with or without ``!`` / ``%`` / sys.executable prefix), diff --git a/scripts/notebook_tools/detect_solution_leaks.py b/scripts/notebook_tools/detect_solution_leaks.py index 415788474d5..d979bfa69b0 100644 --- a/scripts/notebook_tools/detect_solution_leaks.py +++ b/scripts/notebook_tools/detect_solution_leaks.py @@ -700,7 +700,7 @@ def skeleton_with_instructions_stub(source: str) -> bool: # is `pass` (App-13-TSP pattern: `pass # Exercice: ...` then # `print('Fonction ... definie')`) # (c) last non-empty line is a `print(...)` and the cell contains a - # `pass` followed by `# Exercice` somewhere (CSP-3-Advanced C#, + # `pass` followed by `# Exercice` somewhere (CSP-03-Advanced-Python C#, # App-1b-NQueens where the trailing `; Console.WriteLine` follows # the definition block). last = lines[-1].strip() @@ -1157,7 +1157,7 @@ def scan_notebook(path: str) -> list[dict]: # The student replaces the guard branches or fills the body. # Suppresses the "real skeleton + pass + instructions block" FP # class that tripped the detector on App-13-TSP, Lean-8/10, - # Lean-15/17, App-1b-NQueens, CSP-3-Advanced, EdgeDetection, etc. + # Lean-15/17, App-1b-NQueens, CSP-03-Advanced-Python, EdgeDetection, etc. # Recall-safe: a real solution has 1) at least one substantive # line in the body (return/assignment/call) and 2) ends with # something other than `pass`. Both make the helper return False. @@ -1178,7 +1178,7 @@ def scan_notebook(path: str) -> list[dict]: if exercise_with_a_completer_minizinc(next_code_source): continue # C# exercise with `en attente de votre implementation` announcement. - # CSP-3-Advanced / CSP-7-Soft / App-1b-NQueens pattern: a model + # CSP-03-Advanced-Python / CSP-07-Soft-Python / App-1b-NQueens pattern: a model # constructor + informational Console.WriteLine about expected # results, with NO real solver calls. The student writes the # constraints in place. diff --git a/scripts/notebook_tools/execute_dotnet_notebook.py b/scripts/notebook_tools/execute_dotnet_notebook.py index b4b18b2742e..4611c920cd2 100644 --- a/scripts/notebook_tools/execute_dotnet_notebook.py +++ b/scripts/notebook_tools/execute_dotnet_notebook.py @@ -109,7 +109,7 @@ def execute_dotnet_notebook(notebook_path: str, timeout: int = 300): # inherited `idle` breaks the loop before the cell's # own output arrives and every output cascades into # the next cell (shift +1, observed 2026-09-04 on - # CSP-8-Temporal-CSharp). + # CSP-08-Temporal-CSharp). if msg.get('parent_header', {}).get('msg_id') != exec_id: continue diff --git a/scripts/notebook_tools/pedagogy_density_baseline.json b/scripts/notebook_tools/pedagogy_density_baseline.json index 4754b6ae31a..801714edf54 100644 --- a/scripts/notebook_tools/pedagogy_density_baseline.json +++ b/scripts/notebook_tools/pedagogy_density_baseline.json @@ -937,24 +937,24 @@ "MyIA.AI.Notebooks/Search/Part1-Foundations/Search-11d-Descente-Sous-Budget.ipynb": 1496.375, "MyIA.AI.Notebooks/Search/Part1-Foundations/Search-12a-Composer-Regards.ipynb": 1333.444, "MyIA.AI.Notebooks/Search/Part1-Foundations/Search-13a-Traverser-Murs-Certifies.ipynb": 618.8, - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb": 1576.526, - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb": 1180.606, - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb": 999.783, - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb": 1122.857, - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced-CSharp.ipynb": 910.583, - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb": 1459.04, - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-CSharp.ipynb": 1649.5, - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb": 894.783, - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization-CSharp.ipynb": 1259.818, - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb": 1385.16, - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb": 1004.6, - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb": 1220.235, - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb": 1081.412, - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb": 1079.8, - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb": 2699.5, - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb": 1007.412, - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb": 1233.684, - "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb": 1546.737, + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb": 1576.526, + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb": 1180.606, + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb": 999.783, + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb": 1122.857, + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-CSharp.ipynb": 910.583, + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb": 1459.04, + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-CSharp.ipynb": 1649.5, + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb": 894.783, + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-CSharp.ipynb": 1259.818, + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb": 1385.16, + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb": 1004.6, + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb": 1220.235, + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb": 1081.412, + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb": 1079.8, + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb": 2699.5, + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb": 1007.412, + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb": 1233.684, + "MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb": 1546.737, "MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-01-NQueens-CSharp.ipynb": 869.429, "MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-01-NQueens-Python.ipynb": 1191.071, "MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-02-GraphColoring-CSharp.ipynb": 819.846, diff --git a/scripts/notebook_tools/rust_conformance.d/csp-10-optimisation-z3.yaml b/scripts/notebook_tools/rust_conformance.d/csp-10-optimisation-z3.yaml index 60efece4725..b68c2b1cab2 100644 --- a/scripts/notebook_tools/rust_conformance.d/csp-10-optimisation-z3.yaml +++ b/scripts/notebook_tools/rust_conformance.d/csp-10-optimisation-z3.yaml @@ -1,4 +1,4 @@ -# Conformité différentielle de CSP-10-Optimisation-Z3 (portage Rust nb_coder). +# Conformité différentielle de CSP-10-Optimisation-Z3-Python (portage Rust nb_coder). # # Écrite à la livraison par nb_coder_integrate depuis les sorties COMMITÉES # des carnets : correspondance par index de cellule (le portage garde la @@ -17,9 +17,9 @@ # - cellule 13 : le jumeau Python rend une figure matplotlib (image/png), # le carnet Rust imprime la grille en texte ; une sortie riche contre du # texte ne se compare pas à l'égalité stricte. -- name: "CSP-10-Optimisation-Z3" +- name: "CSP-10-Optimisation-Z3-Python" family: "Search/Part2-CSP" - python: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3.ipynb + python: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Python.ipynb csharp: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-CSharp.ipynb rust: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Rust.ipynb measures: diff --git a/scripts/notebook_tools/rust_conformance.d/csp-4-scheduling.yaml b/scripts/notebook_tools/rust_conformance.d/csp-4-scheduling.yaml index 6e7b309e9e0..350a0a5f682 100644 --- a/scripts/notebook_tools/rust_conformance.d/csp-4-scheduling.yaml +++ b/scripts/notebook_tools/rust_conformance.d/csp-4-scheduling.yaml @@ -1,127 +1,127 @@ -# Conformite differentielle du triplet CSP-4-Scheduling (Pli Rust, issue #27662). -# -# Le portage Rust (kernel evcxr, crate cp_sat 0.4.1) reprend les memes -# instances et le meme fil que les jumeaux Python (ortools Python) et C# -# (liaison .NET). Les grandeurs comparees ici sont les valeurs-pivots du -# carnet : makespans prouves optimaux, charge du planning d'infirmiers, -# ecart heuristique SPT vs preuve, et les bornes de l'instance dure -# (graine 2026). Le portage MT19937 du carnet Rust calque le generateur -# de CPython (ecart j/i documente dans la cellule) : les bornes sont -# egales a l'unite pres, tolerance 0. -# -# Ecarts API declares (detail dans le carnet Rust et le body de la PR) : -# NoOverlap -> disjonctions reifiees par paires ; AddCumulative -> cumul -# temporel reifie par booleens de pas ; AddDecisionStrategy absent -> -# deux configurations (defaut / hint) au lieu de trois ; callback absent -# -> paliers de budget 1/2/4/6 s au lieu d'une courbe. -- name: "CSP-4 Scheduling" - family: Search/CSP - python: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb - csharp: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-CSharp.ipynb - rust: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-Rust.ipynb - measures: - - id: jssp_makespan - description: "Makespan optimal du Job-Shop 3x3 (preuve CP-SAT)" - tolerance: 0 - reference: python - sides: - python: - cell: 6 - pattern: "Makespan optimal: (\\d+)" - transform: int - rust: - cell: 3 - pattern: "Makespan optimal: (\\d+)" - transform: int - csharp: - cell: 6 - pattern: "JSSP : Makespan optimal = (\\d+) unites" - transform: int - - id: rcpsp_makespan - description: "Makespan optimal du RCPSP a 6 taches (preuve CP-SAT)" - tolerance: 0 - reference: python - sides: - python: - cell: 14 - pattern: "Makespan RCPSP: (\\d+)" - transform: int - rust: - cell: 7 - pattern: "Makespan RCPSP: (\\d+)" - transform: int - csharp: - cell: 9 - pattern: "RCPSP : Makespan optimal = (\\d+) unites" - transform: int - - id: nurse_shifts - description: "Gardes assignees par le planning d'infirmiers (6x7x3, plancher 42)" - tolerance: 0 - reference: python - sides: - python: - cell: 22 - pattern: "Total shifts: (\\d+)" - transform: int - rust: - cell: 13 - pattern: "Total shifts: (\\d+)" - transform: int - csharp: - cell: 12 - pattern: "Shifts assignes = (\\d+)" - transform: int - - id: spt_gap - description: "Ecart relatif heuristique SPT vs optimal sur l'atelier 3x3 (pourcents)" - tolerance: 0.05 - reference: python - sides: - python: - cell: 27 - pattern: "Gap: ([0-9.]+)%" - transform: float - rust: - cell: 17 - pattern: "Gap: ([0-9.]+)%" - transform: float - csharp: - absent: >- - Le jumeau C# ne publie pas la comparaison SPT dans ses sorties - commitees : sa section de guidage compare les liaisons .NET du - solveur, pas l'heuristique gloutonne contre la preuve. Cote - declare ABSENT, pas mesure. - - id: generator_lb - description: "Borne inferieure de l'instance dure 16x12 (charge du job le plus charge, graine 2026)" - tolerance: 0 - reference: python - sides: - python: - cell: 30 - pattern: "Borne inferieure \\(charge du job le plus charge\\) : (\\d+)" - transform: int - rust: - cell: 20 - pattern: "Borne inferieure \\(charge du job le plus charge\\) : (\\d+)" - transform: int - csharp: - absent: >- - Le jumeau C# ne construit pas l'instance dure a graine fixee : - son banc de guidage tire une instance propre a chaque execution. - Cote declare ABSENT. - - id: spt_big_makespan - description: "Makespan de l'heuristique SPT seule sur l'instance dure (graine 2026)" - tolerance: 0 - reference: python - sides: - python: - cell: 30 - pattern: "Makespan SPT \\(heuristique seule\\)\\s*: (\\d+)" - transform: int - rust: - cell: 20 - pattern: "Makespan SPT \\(heuristique seule\\)\\s*: (\\d+)" - transform: int - csharp: - absent: >- - Meme raison que generator_lb : l'instance dure a graine fixee - n'existe que cotes Python et Rust. +# Conformite differentielle du triplet CSP-04-Scheduling-Python (Pli Rust, issue #27662). +# +# Le portage Rust (kernel evcxr, crate cp_sat 0.4.1) reprend les memes +# instances et le meme fil que les jumeaux Python (ortools Python) et C# +# (liaison .NET). Les grandeurs comparees ici sont les valeurs-pivots du +# carnet : makespans prouves optimaux, charge du planning d'infirmiers, +# ecart heuristique SPT vs preuve, et les bornes de l'instance dure +# (graine 2026). Le portage MT19937 du carnet Rust calque le generateur +# de CPython (ecart j/i documente dans la cellule) : les bornes sont +# egales a l'unite pres, tolerance 0. +# +# Ecarts API declares (detail dans le carnet Rust et le body de la PR) : +# NoOverlap -> disjonctions reifiees par paires ; AddCumulative -> cumul +# temporel reifie par booleens de pas ; AddDecisionStrategy absent -> +# deux configurations (defaut / hint) au lieu de trois ; callback absent +# -> paliers de budget 1/2/4/6 s au lieu d'une courbe. +- name: "CSP-4 Scheduling" + family: Search/CSP + python: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb + csharp: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-CSharp.ipynb + rust: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Rust.ipynb + measures: + - id: jssp_makespan + description: "Makespan optimal du Job-Shop 3x3 (preuve CP-SAT)" + tolerance: 0 + reference: python + sides: + python: + cell: 6 + pattern: "Makespan optimal: (\\d+)" + transform: int + rust: + cell: 3 + pattern: "Makespan optimal: (\\d+)" + transform: int + csharp: + cell: 6 + pattern: "JSSP : Makespan optimal = (\\d+) unites" + transform: int + - id: rcpsp_makespan + description: "Makespan optimal du RCPSP a 6 taches (preuve CP-SAT)" + tolerance: 0 + reference: python + sides: + python: + cell: 14 + pattern: "Makespan RCPSP: (\\d+)" + transform: int + rust: + cell: 7 + pattern: "Makespan RCPSP: (\\d+)" + transform: int + csharp: + cell: 9 + pattern: "RCPSP : Makespan optimal = (\\d+) unites" + transform: int + - id: nurse_shifts + description: "Gardes assignees par le planning d'infirmiers (6x7x3, plancher 42)" + tolerance: 0 + reference: python + sides: + python: + cell: 22 + pattern: "Total shifts: (\\d+)" + transform: int + rust: + cell: 13 + pattern: "Total shifts: (\\d+)" + transform: int + csharp: + cell: 12 + pattern: "Shifts assignes = (\\d+)" + transform: int + - id: spt_gap + description: "Ecart relatif heuristique SPT vs optimal sur l'atelier 3x3 (pourcents)" + tolerance: 0.05 + reference: python + sides: + python: + cell: 27 + pattern: "Gap: ([0-9.]+)%" + transform: float + rust: + cell: 17 + pattern: "Gap: ([0-9.]+)%" + transform: float + csharp: + absent: >- + Le jumeau C# ne publie pas la comparaison SPT dans ses sorties + commitees : sa section de guidage compare les liaisons .NET du + solveur, pas l'heuristique gloutonne contre la preuve. Cote + declare ABSENT, pas mesure. + - id: generator_lb + description: "Borne inferieure de l'instance dure 16x12 (charge du job le plus charge, graine 2026)" + tolerance: 0 + reference: python + sides: + python: + cell: 30 + pattern: "Borne inferieure \\(charge du job le plus charge\\) : (\\d+)" + transform: int + rust: + cell: 20 + pattern: "Borne inferieure \\(charge du job le plus charge\\) : (\\d+)" + transform: int + csharp: + absent: >- + Le jumeau C# ne construit pas l'instance dure a graine fixee : + son banc de guidage tire une instance propre a chaque execution. + Cote declare ABSENT. + - id: spt_big_makespan + description: "Makespan de l'heuristique SPT seule sur l'instance dure (graine 2026)" + tolerance: 0 + reference: python + sides: + python: + cell: 30 + pattern: "Makespan SPT \\(heuristique seule\\)\\s*: (\\d+)" + transform: int + rust: + cell: 20 + pattern: "Makespan SPT \\(heuristique seule\\)\\s*: (\\d+)" + transform: int + csharp: + absent: >- + Meme raison que generator_lb : l'instance dure a graine fixee + n'existe que cotes Python et Rust. diff --git a/scripts/notebook_tools/tests/test_check_outputs_text_fragmentation.py b/scripts/notebook_tools/tests/test_check_outputs_text_fragmentation.py index f7b29f0aa99..661f48bc709 100644 --- a/scripts/notebook_tools/tests/test_check_outputs_text_fragmentation.py +++ b/scripts/notebook_tools/tests/test_check_outputs_text_fragmentation.py @@ -277,7 +277,7 @@ def test_min_items_below_threshold_passes(tmp_path: Path) -> None: # (path, cell_index, output_index, description) ("MyIA.AI.Notebooks/GenAI/Audio/01-Foundation/01-2-OpenAI-Whisper-STT.ipynb", 18, 4, "stderr OpenAI Whisper + \\r\\n"), ("MyIA.AI.Notebooks/QuantConnect/projects/PairsTrading/research.ipynb", 14, 0, "stderr PairsTrading"), - ("MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb", 18, 1, "stderr CSP-8 C#"), + ("MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb", 18, 1, "stderr CSP-8 C#"), ("MyIA.AI.Notebooks/Search/Part4-Metaheuristics/MGS-08-LandscapeExplorer.ipynb", 14, 3, "stderr MGS-8 cell14"), ("MyIA.AI.Notebooks/Search/Part4-Metaheuristics/MGS-08-LandscapeExplorer.ipynb", 16, 7, "stderr MGS-8 cell16"), ("MyIA.AI.Notebooks/SymbolicAI/Planners/01-Foundation/Planners-02-PDDL-Basics-CSharp.ipynb", 4, 3, "stderr Planners-2"), diff --git a/scripts/notebook_tools/tests/test_curriculum_taxonomy.py b/scripts/notebook_tools/tests/test_curriculum_taxonomy.py index f2d2591155a..2ef59213f79 100644 --- a/scripts/notebook_tools/tests/test_curriculum_taxonomy.py +++ b/scripts/notebook_tools/tests/test_curriculum_taxonomy.py @@ -152,6 +152,25 @@ def test_export_writes_parseable_skos_and_owl(tmp_path): assert (None, RDF.type, OWL.Ontology) in owl_graph +def _notebooks_hors_catalogue( + relatives: list[str], catalog_paths: set[str], repo_root: Path +) -> list[str]: + """Carnets cités par une taxonomie que rien ne peut rattacher au catalogue. + + Le catalogue commité est byte-identique à main et se régénère par le cron + quotidien, après fusion. Une PR qui renomme ou ajoute un carnet cité par + une taxonomie le porte donc sur disque sans que le catalogue connaisse + encore son chemin : ce n'est pas une faute. Est signalé un chemin qui + n'est ni au catalogue ni sur disque (faute de frappe, carnet disparu). + """ + return [ + relative + for relative in relatives + if relative not in catalog_paths + and not (repo_root / "MyIA.AI.Notebooks" / relative).is_file() + ] + + def test_notebook_uris_are_those_of_the_catalogue_export(): """Parité d'URI avec l'export du catalogue (#25001) : la jointure en dépend. @@ -159,31 +178,54 @@ def test_notebook_uris_are_those_of_the_catalogue_export(): taxonomie les cite complets depuis la racine. Le retrait de préfixe dans _notebook_uri doit produire exactement l'URI de generate_curriculum_rdf._resource("notebook", ...). Témoin réel : chaque - carnet de la taxonomie search retrouve son entrée de catalogue (26/26). + carnet de la taxonomie search retrouve son entrée de catalogue (26/26 + mesuré sur un catalogue frais). """ import json - from pathlib import Path as _Path from generate_curriculum_rdf import _resource - # Témoin d'appartenance sur search : chaque carnet de la taxonomie - # retrouve son entrée de catalogue (26/26 mesuré). Compression, elle, est - # une série que le catalogue n'indexe pas encore -- l'égalité d'URI - # ci-dessous vaut pour toutes les séries, l'appartenance n'est attestée - # que là où le catalogue couvre la série. + # Témoin d'appartenance sur search. Compression, elle, est une série que + # le catalogue n'indexe pas encore -- l'égalité d'URI ci-dessous vaut + # pour toutes les séries, l'appartenance n'est attestée que là où le + # catalogue couvre la série. + # + # Le catalogue commité peut être en retard sur l'arbre d'un renommage ou + # d'un ajout (sa régénération suit la fusion) : un carnet absent du + # catalogue mais présent sur disque est un décalage, pas une faute. Il + # faut en revanche au moins un carnet retrouvé au catalogue, sans quoi le + # témoin ne verrait rien. data = load_taxonomy(DEFAULT_DATA.parent / "search.json") + repo_root = Path(__file__).resolve().parents[3] catalog = json.loads( - (_Path(__file__).resolve().parents[3] / "COURSE_CATALOG.generated.json").read_text( - encoding="utf-8" - ) + (repo_root / "COURSE_CATALOG.generated.json").read_text(encoding="utf-8") ) catalog_paths = {entry["path"] for entry in catalog} relatives = [notebook.removeprefix("MyIA.AI.Notebooks/") for notebook in data["notebooks"]] - assert all(relative in catalog_paths for relative in relatives) + assert any(relative in catalog_paths for relative in relatives) + assert _notebooks_hors_catalogue(relatives, catalog_paths, repo_root) == [] for relative in relatives: assert _notebook_uri("MyIA.AI.Notebooks/" + relative) == _resource("notebook", relative) +def test_appartenance_au_catalogue_tolerante_au_decalage(tmp_path): + """Renommage ou ajout : sur disque, pas encore au catalogue -- toléré. + + Contrôle négatif : un chemin ni au catalogue ni sur disque reste signalé, + le témoin ne devient pas un acquittement. + """ + renamed = "Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb" + indexed = "Search/Part2-CSP/CSP-1-Fundamentals.ipynb" + typo = "Search/Part2-CSP/CSP-01-Fundamentaux-Python.ipynb" + notebook = tmp_path / "MyIA.AI.Notebooks" / renamed + notebook.parent.mkdir(parents=True) + notebook.write_text("{}", encoding="utf-8") + catalog_paths = {indexed} + + assert _notebooks_hors_catalogue([indexed, renamed], catalog_paths, tmp_path) == [] + assert _notebooks_hors_catalogue([typo], catalog_paths, tmp_path) == [typo] + + def test_build_graph_emit_structure_false_keeps_concepts_and_join_links(): """emit_structure=False : concepts, prérequis et liens carnet -> concept, sans structure.""" data = load_taxonomy() diff --git a/scripts/notebook_tools/tests/test_detect_solution_leaks_skeleton_instructions.py b/scripts/notebook_tools/tests/test_detect_solution_leaks_skeleton_instructions.py index e7a790b3e77..ca56ce14487 100644 --- a/scripts/notebook_tools/tests/test_detect_solution_leaks_skeleton_instructions.py +++ b/scripts/notebook_tools/tests/test_detect_solution_leaks_skeleton_instructions.py @@ -8,7 +8,7 @@ - ``exercise_with_a_completer_minizinc`` : model-text avec `% A COMPLETER` + `display_model` (App-08-MiniZinc-Python). - ``exercise_with_attente_implementation`` : C# `Console.WriteLine("... - en attente de votre implementation")` (CSP-3-Advanced, CSP-7-Soft, + en attente de votre implementation")` (CSP-03-Advanced-Python, CSP-07-Soft-Python, App-1b-NQueens). - ``exercise_with_exercice_indice_skeleton`` : Python `# Exercice` / `# Indice` headers, no substantive call/return (Arrow-33 pattern). @@ -169,7 +169,7 @@ class TestExerciseWithAttenteImplementation(unittest.TestCase): """C# `Console.WriteLine("... en attente de votre implementation")` = exercise.""" def test_csp3_advanced_nreines_pattern(self): - """CSP-3-Advanced cell 22: N-Reines with model constructor + attente announce.""" + """CSP-03-Advanced-Python cell 22: N-Reines with model constructor + attente announce.""" src = """\ // === EXERCICE 2 : N-Reines avec cassage de symmétries === int n8 = 8; @@ -181,7 +181,7 @@ def test_csp3_advanced_nreines_pattern(self): self.assertTrue(exercise_with_attente_implementation(src)) def test_csp3_advanced_minivrp_pattern(self): - """CSP-3-Advanced cell 24: Mini-VRP placeholder with dist matrix.""" + """CSP-03-Advanced-Python cell 24: Mini-VRP placeholder with dist matrix.""" src = """\ // === EXERCICE 3 : Mini-VRP via subCircuit === var dist9 = new[,] { {0, 3, 1, 5, 8}, {3, 0, 6, 2, 7} }; @@ -194,7 +194,7 @@ def test_csp3_advanced_minivrp_pattern(self): self.assertTrue(exercise_with_attente_implementation(src)) def test_csp7_soft_emploisdutemps_pattern(self): - """CSP-7-Soft cell 22: emploi du temps with prefs + attente.""" + """CSP-07-Soft-Python cell 22: emploi du temps with prefs + attente.""" src = """\ // === EXERCICE 3 : Emploi du temps enseignant === string[] prefLabels = { "A", "A", "B", "B", "C" }; diff --git a/scripts/notebook_tools/tests/test_fix_source_newlines.py b/scripts/notebook_tools/tests/test_fix_source_newlines.py index ff8f284bbf2..dddc3a260eb 100644 --- a/scripts/notebook_tools/tests/test_fix_source_newlines.py +++ b/scripts/notebook_tools/tests/test_fix_source_newlines.py @@ -50,7 +50,7 @@ def _make_nb(sources_by_cell): def test_detect_single_collapsed_heading(): """A single-element list with no '\\n' and a heading prefix is flagged.""" nb = _make_nb([ - "# CSP-9-Distributed : CSP Distribués (DisCSP)**Navigation** : [<< CSP-8-Temporal](CSP-8-Temporal.ipynb)", + "# CSP-09-Distributed-Python : CSP Distribués (DisCSP)**Navigation** : [<< CSP-08-Temporal-Python](CSP-08-Temporal-Python.ipynb)", ]) defects = find_source_newline_defects(nb) assert len(defects) == 1 @@ -253,8 +253,8 @@ def test_apply_and_detect_clean(tmp_path): # Build a defective cell that the detector flags AND the fixer can split. p = tmp_path / "nb.ipynb" bad_source = ( - "# CSP-9-Distributed : CSP Distribués (DisCSP)**Navigation** : " - + "[<< CSP-8-Temporal](CSP-8-Temporal.ipynb) " * 8 + "# CSP-09-Distributed-Python : CSP Distribués (DisCSP)**Navigation** : " + + "[<< CSP-08-Temporal-Python](CSP-08-Temporal-Python.ipynb) " * 8 ) _write_nb_file(p, [bad_source]) diff --git a/scripts/notebook_tools/tests/test_weekly_digest.py b/scripts/notebook_tools/tests/test_weekly_digest.py index 971bbe92df1..4d74b1d6d36 100644 --- a/scripts/notebook_tools/tests/test_weekly_digest.py +++ b/scripts/notebook_tools/tests/test_weekly_digest.py @@ -131,11 +131,11 @@ class TestClassifyNotebookNames: def test_notebook_names_extracted(self): result = classify_notebook_changes({ - "MyIA.AI.Notebooks/Search/CSP-7-Soft.ipynb", + "MyIA.AI.Notebooks/Search/CSP-07-Soft-Python.ipynb", "MyIA.AI.Notebooks/Search/CSP-1-Intro.ipynb", }) names = result["series"]["Search"]["notebook_names"] - assert "CSP-7-Soft" in names + assert "CSP-07-Soft-Python" in names assert "CSP-1-Intro" in names def test_notebook_names_sorted_by_appearance(self): diff --git a/scripts/notebook_tools/twin_pairs.d/app-1-nqueens/0022-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/app-1-nqueens/0022-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..f03ec486de2 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/app-1-nqueens/0022-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: e3dfb47572eebe721bb870861cdcc3ab8a7dfe46 +csharp_sha: 06036ca5b47ca81f59d142f04168af3d2edb7241 +content_python_sha: 85a6e27389f499ee337e105950c6d742788e72694ac6e65547d6af798ee3e1a4 +content_csharp_sha: 5b41b79e0bf455b390e594c98f11dbbb97c879661affc5151942c7a3d034223e diff --git a/scripts/notebook_tools/twin_pairs.d/app-11-picross/0033-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/app-11-picross/0033-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..8b4790dd844 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/app-11-picross/0033-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: ba5308bb2913c19ee548086f1b39258f33cc4497 +csharp_sha: 8099841308e8146726337f57de79d9efd00119b2 +content_python_sha: 4d54840f597464828391b8ae67bb0ee94a0f8f9b0591404882f43dbcb07eafb1 +content_csharp_sha: 4340885eb5844aab1bb6fe8603ba2169c516a64109b9c55f19eef558ec916a4d diff --git a/scripts/notebook_tools/twin_pairs.d/app-16-crossword-csp/0023-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/app-16-crossword-csp/0023-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..47d88e7c8f7 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/app-16-crossword-csp/0023-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: 331354f74b65393f6bb5df1e1c0559030a6427e2 +csharp_sha: dde7639a31215272bb60c31efd14a87fa1e55ee8 +content_python_sha: df8be67bc855cf4253c31df43532ac32779bbf3855c41ecd4727b45f470fc7d3 +content_csharp_sha: e9f97cd151f5e1cb0101469a01de81d607357a37e84777ff03c2e740b927fa09 diff --git a/scripts/notebook_tools/twin_pairs.d/app-2-graphcoloring/0025-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/app-2-graphcoloring/0025-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..1b56180e1a8 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/app-2-graphcoloring/0025-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: 3877ffeae4dbd566c045a5720eeafa79513292be +csharp_sha: 3eb3e8a99f7ed163a64fe174f66b4b7a7677a2b4 +content_python_sha: 8283ef392c526079cf8ff1055224a7f8a2ae18b27daaf997c60eed50bf1c1089 +content_csharp_sha: 2e92334915fd32dc1614b19b366b82dc6126eb53325b377fc78fc7f1cde68d48 diff --git a/scripts/notebook_tools/twin_pairs.d/app-21-voiceleading/0007-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/app-21-voiceleading/0007-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..81b1832a190 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/app-21-voiceleading/0007-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: f1de3a63c8302b7b397385aebd1a534e055ae0eb +csharp_sha: 07774a51e69e66a1d8f54b756986310fc25a7f3c +content_python_sha: 4f20a8fa5ceb41d905ad29c3a3f9f7656369012961a614b42899164a119df43f +content_csharp_sha: 3a3785aa990754f2a0d05afe0b4b76fdfc496f4445f399fd91e2a44b4f70ab0e diff --git a/scripts/notebook_tools/twin_pairs.d/app-4-jobshopscheduling/0017-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/app-4-jobshopscheduling/0017-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..ac824db5c93 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/app-4-jobshopscheduling/0017-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: b886268f8cbe7eb06538660031e865ef16530a18 +csharp_sha: 0e7b27f1db17ca8cbd66ab1511f3c22543a2273f +content_python_sha: 08d7b8b268d734253a7a658b9cdeacc65a4a9d8f48af17f37c4b5101ce492e47 +content_csharp_sha: faa1a313444fcd925286f5bbb899feb82237330c7c1578dbf1c1553b4ad76124 diff --git a/scripts/notebook_tools/twin_pairs.d/app-5-timetabling/0018-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/app-5-timetabling/0018-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..e1416decc20 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/app-5-timetabling/0018-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: 912edc9abe75bd911c2dd34c9a1c5149a0c242ec +csharp_sha: b36a625db1b5c988d81ea2a98fa6860d0826f102 +content_python_sha: 4d16c6b0bd37f92ad11e661a897e1bedc82d60d818be8a05910fbed6d00e30ad +content_csharp_sha: e437fd49d8b5a3a41947f76182895fcc5fa8d4445e299fdda93ea87911e97108 diff --git a/scripts/notebook_tools/twin_pairs.d/app-8-minizinc/0022-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/app-8-minizinc/0022-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..78e0737f6d2 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/app-8-minizinc/0022-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: 81f5bfa9b03870cfd34f3280a6cc2bc46ffe9c0b +csharp_sha: 0302d59bece47bc88c7d69296fa3f3cd796bb65d +content_python_sha: d5e4036e8531bcfc248fba096fd294c821fbb0e6624c336e502e960235518521 +content_csharp_sha: 2810408db061165849f602d774beed61f5ffeefda1e401a1d8ebd02f4db7d78d diff --git a/scripts/notebook_tools/twin_pairs.d/app-8-minizinc/0023-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/app-8-minizinc/0023-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..b9469f05c5f --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/app-8-minizinc/0023-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: 81f5bfa9b03870cfd34f3280a6cc2bc46ffe9c0b +csharp_sha: 90afe0fc4d29eb6019ea5f0335937f7664c2c13e +content_python_sha: d5e4036e8531bcfc248fba096fd294c821fbb0e6624c336e502e960235518521 +content_csharp_sha: 8239f833efb0f213b38ab4fffaf210b85e32e484fbcefc36601378d3f6d07c20 diff --git a/scripts/notebook_tools/twin_pairs.d/complexity-02-p-np-reduction/0008-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/complexity-02-p-np-reduction/0008-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..cef0e0e412f --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/complexity-02-p-np-reduction/0008-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: 728041a8672e94cd6c8a9a278cf8dcf78581bb35 +csharp_sha: 13dc8032512af128f654e45be115c0f3fefce918 +content_python_sha: e65e2d3603fe97e807299384eab8b0433e3ef41b430f5caffc4cd10668040a2f +content_csharp_sha: 45349f45c81746157eb280b372ae34bd626da8fc33045c8d0e17877a30754343 diff --git a/scripts/notebook_tools/twin_pairs.d/complexity-02-p-np-reduction/0009-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/complexity-02-p-np-reduction/0009-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..e48c6af19d6 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/complexity-02-p-np-reduction/0009-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: 728041a8672e94cd6c8a9a278cf8dcf78581bb35 +csharp_sha: edc66c8a8de2021e671471c4cdbced29762d2309 +content_python_sha: e65e2d3603fe97e807299384eab8b0433e3ef41b430f5caffc4cd10668040a2f +content_csharp_sha: 4ef2367870315ac70f7759e80256790968faac76443e1c10cb48f7827ded848b diff --git a/scripts/notebook_tools/twin_pairs.d/complexity-03-finite-time-hierarchy/0010-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/complexity-03-finite-time-hierarchy/0010-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..abeaab6658e --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/complexity-03-finite-time-hierarchy/0010-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: a433ba2dcee09c3b54bda61cb19d7ed346c1e31c +csharp_sha: 65cf8752fcb6fc8677a40b24f0db9f41b7da7bcd +content_python_sha: 42117c26e184fdf02da2c1b52c4d83464ddd575470bf7bacd4383db28210985a +content_csharp_sha: 75970a9423bc7d2de2ef2c6639f0dfea61e6f375118f1f5e99a209df70ffc927 diff --git a/scripts/notebook_tools/twin_pairs.d/complexity-03c-complexity-zoo-navigation/0014-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/complexity-03c-complexity-zoo-navigation/0014-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..6b6398c2184 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/complexity-03c-complexity-zoo-navigation/0014-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: e8c1754981fcf5710e45fde12f90c0f79e35d711 +csharp_sha: 5dbcaf363bfec5c1a6109ea34285cb261d4b0854 +content_python_sha: 851471f218654bde31fc8cacb7b79e62136fc72130754ea0c0122a24cf85584c +content_csharp_sha: 69a4c93dd90894f2edd124febf0c6d15bffb0c402cc6e84217489b5f57b20441 diff --git a/scripts/notebook_tools/twin_pairs.d/csp-1-fundamentals.yaml b/scripts/notebook_tools/twin_pairs.d/csp-1-fundamentals.yaml index 3258d414bfa..40585afa3c4 100644 --- a/scripts/notebook_tools/twin_pairs.d/csp-1-fundamentals.yaml +++ b/scripts/notebook_tools/twin_pairs.d/csp-1-fundamentals.yaml @@ -1,7 +1,7 @@ - name: CSP-1 Fundamentals family: Search/Part2-CSP - python: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb - csharp: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals-CSharp.ipynb + python: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb + csharp: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-CSharp.ipynb parity_level: semantic bridge_verdict: SOTA-OK bridge_verdict_reason: 'Les DEUX jumeaux atteignent le meme moteur de production Choco (parite lib-vs-lib stricte, mandat owner #10382 ''lib vs lib c''est encore mieux''). C# = Choco-solver 4.10.17 (Java, Apache-2.0) via IKVM 8.15.0 home shade DLL (recette #4711). Python = pychoco (binding Python officiel de Choco, PyPI MIT), section 6bis ajoutee 2026-08-19 (#10382) : les trois demonstrations du jumeau C# sont rejouees avec le meme modele (IntVar par etat 0..2 + arithm ''!='' pour l''Australie ; boucle solve() pour l''enumeration ; all_different + scalar/arithm diagonales pour les 8-Reines). Convergence mesuree : enumeration Australie = 18 solutions des deux cotes ; solutions valides sur les memes instances. Socle pedagogique from-scratch (classe CSP, backtracking, MRV, LCV) conserve intact des deux cotes ; python-constraint reste en section 6 cote Python comme moteur leger avant le pont industriel. Visualisation : Python = matplotlib, C# = rendu ASCII (inchange).' @@ -13,7 +13,7 @@ - "2026-10-26 (myia-po-2028:CoursIA, #22594) : EDITION UNILATERALE cote Python seul -- digestion d'un rendu etudiant (regle exercise-example-labeling, cas 1 : la solution rendue devient un exemple guide credite, un exercice neuf prend sa place). PORTEE MESUREE du diff Python (origin/main -> HEAD) : 3 cellules INSEREES apres l'interpretation de l'arbre d'Australie (1 markdown d'intro avec metadata `credited_from = #22594`, 1 cellule code modelisant le Sudoku 4x4 et le resolvant par backtracking avec mesures derivees, 1 markdown de lecture du resultat) et 2 cellules REECRITES en place (ids `fr0whufdu8r` et `suhmqzd7qko` : l'enonce de l'exercice 4 devient la variante X-Sudoku -- deux diagonales -- et son squelette reste un stub C.1 non resolu). Carnet 88 -> 91 cellules, 88/88 ids d'origine conserves. Execution papermill complete apres edition : 34 cellules code, 0 erreur, `check_exec_sequence --check` CLEAN 1..34, `check_c2_compliance` 1/1 conforme, sorties reelles commitees. Cote C# BYTE-IDENTIQUE a main, et il n'y a rien a aligner de son cote : le jumeau C# ne porte aucun materiel Sudoku (verifie par lecture : 50 cellules dont 19 code, exercices 1-3 = 4-Reines manuel, MRV sur 4-Reines, SEND+MORE avec Choco ; la seule occurrence de allDifferent est l'exemple illustratif de la section 6.2). L'ajout est donc une extension asymetrique d'un seul cote, de la meme nature que les asymetries deja declarees ci-dessous (section Choco sans equivalent Python a l'origine, jeux d'exercices differents par cote). Porter cet exercice cote C# exigerait un modele Choco .NET neuf plus une execution dotnet-interactive : grain distinct, hors du perimetre de #22594. Parite SEMANTIQUE inchangee : le socle from-scratch commun (classe CSP, backtracking, MRV, LCV) et les sections Choco des deux cotes sont intacts -- c'est une attestation de l'extension, pas une reparation. --update en DERNIERE operation (cf #8957), strips outilles deja appliques par les hooks pre-commit." - "2026-10-21 (myia-po-2028:CoursIA, #21770 / tranche 2 #19253) : re-baseline de forme, sans changement de fond. La tranche a aplati `Search/Applications/` en `Search/Part3-Cas-pratiques/` ; ce carnet a suivi mecaniquement pour deux raisons : un lien croise `../Search/Applications/` devenu mort, reancre sur `../Search/Part3-Cas-pratiques/`, et le LF final restaure apres la reecriture JSON. Aucune cellule de code, aucune sortie et aucun enonce ne sont modifies : la divergence entre les deux jumeaux est inchangee." - "Re-baseline 2026-10-14 (hors-flotte:claude-session-16638, #16638) : restauration des accents de la prose markdown (tranche csp #16638, outil canonique restore_accents_canonical.py, invariance strip_accents a 0 finding), cote Python seul ; cote C# byte-identique a main. Aucune cellule de code, sortie ni execution_count touchee. Parite inchangee : attestation (le blob SHA se deplace), pas reparation. --update en DERNIERE operation (cf #8957)." - - 'Re-baseline 2026-10-05 (myia-po-2026:CoursIA, #19245 -> #19259) : edition unilaterale cote C# seul, COMMENTAIRES UNIQUEMENT -- la casse canonique `-CSharp` des noms de carnets jumeaux etait perdue dans les commentaires de code (`CSP-7-Soft-Csharp` -> `CSP-7-Soft-CSharp` (cellule 11)). Aucune ligne executable touchee, aucun `execution_count` ni sortie modifie ; le cote Python est byte-identique a main. Parite semantique inchangee, seule la reference textuelle au jumeau redevient exacte : c''est une attestation de parite (le blob SHA du C# se deplace), pas une reparation. Re-baseline du csharp_sha.' + - 'Re-baseline 2026-10-05 (myia-po-2026:CoursIA, #19245 -> #19259) : edition unilaterale cote C# seul, COMMENTAIRES UNIQUEMENT -- la casse canonique `-CSharp` des noms de carnets jumeaux etait perdue dans les commentaires de code (`CSP-7-Soft-Csharp` -> `CSP-07-Soft-CSharp` (cellule 11)). Aucune ligne executable touchee, aucun `execution_count` ni sortie modifie ; le cote Python est byte-identique a main. Parite semantique inchangee, seule la reference textuelle au jumeau redevient exacte : c''est une attestation de parite (le blob SHA du C# se deplace), pas une reparation. Re-baseline du csharp_sha.' - 'Re-baseline 2026-09-30 (myia-po-2025:CoursIA, #18543 relais prose-counts #17636) : edition unilaterale cote C# seul, markdown uniquement -- une ligne du tableau comparatif manuel/Choco derivait de compteurs d''artefact en prose (lignes de modelisation ~50 vs ~10) remplaces par des descripteurs qualitatifs (plus verbeuse / plus concise). Aucune cellule code, sortie ou execution_count touchee (batterie byte-surgical : sources code byte-identiques). Statut epistemique et comparatif de fond inchanges ; parite tenue ; re-baseline du csharp_sha.' - "2026-09-27 (drift unilateral, session cloud d'agnosticisme hors flotte) : cote C# seul. La cellule de configuration IKVM codait le RID win-x64 en dur (ikvmRid = win-x64, plus une reference NuGet IKVM.Image.runtime.win-x64) : sous Linux et macOS, l'init de la JVM IKVM echouait au premier appel Java (TypeInitializationException sur IKVM.Runtime.LibJava, mesure sur CSP-1 avant correctif). Le RID est desormais derive de OperatingSystem et RuntimeInformation.ProcessArchitecture ; IKVM.Image 8.15.0 depend deja des onze paquets IKVM.Image.runtime., la reference explicite win-x64 est retiree. Re-execution complete sous Linux (dotnet-interactive 1.0.617701) : 0 erreur, sorties identiques a la base hors RID du home IKVM, separateur decimal (culture) et temps mesures. Jumeau Python inchange. Strips outilles appliques avant l'attestation (probe banner, papermill). Prose : la duree du brute force epinglee (3,9 ms) remplacee par un descripteur machine-dependant (#9434)." - 'Re-baseline 2026-09-11 (myia-po-2023:CoursIA, #15447 / chore #15429) : normalisation str->list des cellules `source` -- re-encodage de representation, aucun contenu pedagogique touche. Verifie firsthand : le SHA canonique du carnet (toutes listes-de-chaines jointes, metadata de niveau carnet exclue) est IDENTIQUE base vs head, et les champs `text` des sorties sont inchanges ; seul le content_sha du registre bouge. Le garde #8057 demande une attestation de parite, pas une reparation.' diff --git a/scripts/notebook_tools/twin_pairs.d/csp-1-fundamentals/0042-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/csp-1-fundamentals/0042-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..288e8ecdbe9 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/csp-1-fundamentals/0042-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: 6d036e887fe6fcdfb1f85add8df71d56fa79a10f +csharp_sha: f6efad2f30775e5f66a1c85562e88a3cbf95da6f +content_python_sha: 8468faee8825a750eab6884bb3eddd4313de2f5f4da8e5b26e112cb9bc74ca06 +content_csharp_sha: 2a1573de2b184373558ba94d7ec1291564cc1a937419e608f8de1bed8b3ab436 diff --git a/scripts/notebook_tools/twin_pairs.d/csp-10-optimisation-z3.yaml b/scripts/notebook_tools/twin_pairs.d/csp-10-optimisation-z3.yaml index 239f9526134..c22cb54124b 100644 --- a/scripts/notebook_tools/twin_pairs.d/csp-10-optimisation-z3.yaml +++ b/scripts/notebook_tools/twin_pairs.d/csp-10-optimisation-z3.yaml @@ -1,6 +1,6 @@ - name: CSP-10 Optimisation Z3 family: Search/Part2-CSP - python: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3.ipynb + python: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-Python.ipynb csharp: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-10-Optimisation-Z3-CSharp.ipynb parity_level: native-both bridge_verdict: SOTA-OK diff --git a/scripts/notebook_tools/twin_pairs.d/csp-10-optimisation-z3/0009-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/csp-10-optimisation-z3/0009-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..64b0c86719d --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/csp-10-optimisation-z3/0009-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: c780d0e0dc763c9ff41870389fbe725beb880d5e +csharp_sha: f91aff58d7d36e3efca249fd2ba135380c201761 +content_python_sha: 8648d3d7978a4a731dba9c5cf34ceaa806883ee36c4c49371a33b0b9982550fd +content_csharp_sha: d36ee118f84dc4d26d7191a20b91f2319056ef1a6bb79ab7665f00d5360999f0 diff --git a/scripts/notebook_tools/twin_pairs.d/csp-10-optimisation-z3/0010-2026-11-27-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/csp-10-optimisation-z3/0010-2026-11-27-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..7b198a107ec --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/csp-10-optimisation-z3/0010-2026-11-27-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-27' +by: myia-po-2023:CoursIA +python_sha: c780d0e0dc763c9ff41870389fbe725beb880d5e +csharp_sha: 155566adde53139962322771055b7b5380d64eff +content_python_sha: 8648d3d7978a4a731dba9c5cf34ceaa806883ee36c4c49371a33b0b9982550fd +content_csharp_sha: 45fd89e61359c6827d78ca136b7fd652900d7606d5be2585a763e668ea59ac59 diff --git a/scripts/notebook_tools/twin_pairs.d/csp-2-consistency.yaml b/scripts/notebook_tools/twin_pairs.d/csp-2-consistency.yaml index 24829f5e564..d13365a7afe 100644 --- a/scripts/notebook_tools/twin_pairs.d/csp-2-consistency.yaml +++ b/scripts/notebook_tools/twin_pairs.d/csp-2-consistency.yaml @@ -1,14 +1,14 @@ - name: "CSP-2 Consistency" family: Search/Part2-CSP - python: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb - csharp: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency-CSharp.ipynb + python: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb + csharp: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-CSharp.ipynb parity_level: semantic bridge_verdict: SOTA-OK bridge_verdict_reason: "Les DEUX jumeaux atteignent le meme moteur de production Choco (parite lib-vs-lib stricte, mandat owner #10382 'lib vs lib c'est encore mieux'). C# = Choco-solver 4.10.17 (Apache-2.0) via IKVM 8.15.0 home shade DLL (recette #4711) : propagation AC-3 + fixpoint + bench AC-3 vs backtracking + coloration Australie. Python = socle from-scratch conserve (AC-3 sur `collections.deque`, forward checking, MAC — c'est le choix pedagogique du notebook : implementer AC-3 a la main) + section 3.6 ajoutee 2026-08-19 (#10382) : Choco via **pychoco** (binding Python officiel, PyPI MIT), meme modele Australie (7 IntVar 1..3, `arithm !=` sur adjacences, `WA = 1`) rejoue en un `solve()` — propagation integree du solveur observee cote a cote avec l'AC-3 maison de la cellule precedente. Une solution valide affichee de chaque cote (sans preuve d unicite). Viz : Python = matplotlib + networkx ; C# = ScottPlot et Console.WriteLine. `parity_level: semantic` preserve." known_differences: - "2026-11-22 (PR #27758, commit c8e49a3af29, merge 23:12Z) : cellule `raw` d'en-tete Quarto inseree en tete du jumeau C# (image: ../../assets/vignettes/CSP-2-Consistency-CSharp.png), posterieure a l'audit 0038 du meme jour. Mesure a la tete main bdcbdeba par myia-po-2028:CoursIA-3 le 2026-11-23 : les 62 cellules auditees restent byte-identiques a l'index +1 (sources, sorties, execution_count), 0 sortie modifiee, jumeau Python inchange. Le blob enregistre par 0038 n'est pas atteignable depuis main (artefact de squash) ; l'attestation courante est 0039 (myia-ai-01:CoursIA, 2026-11-23, #28188), qui porte blob et content hash de l'etat post-vignette -- aucun rebaseline supplementaire n'est attendu (l'organe rend is_noop)." - "2026-11-13 (Codex:hors-flotte, PR #26030) : après fusion de main, l audit amont 0031 masque 0030 ; les carnets restent identiques à 0030. Réaudit des sources et sorties enregistrées : figures C# et domaines corrigés, métriques BT/FC/MAC non interchangeables, Python inchangé et non rejoué. Attestation des octets finaux, sans nouvelle exécution." - - "Re-baseline 2026-11-13 (myia-po-2023:CoursIA, #22267 grain 2) : derive unilateral cote C# seul par le merge #25391 (Epic #20250, recentrage des ouvertures sur le cours, 2026-11-12T05:22Z) -- cellules markdown 0 (titre + navigation double serie, cibles CSP-1-Fundamentals.ipynb / CSP-3-Advanced.ipynb / ../README.md verifiees existantes) et 61 (recapitulatif) uniquement : 0 cellule code, 0 sortie, 0 execution_count modifies, metadata notebook inchangee, 62 cellules des deux cotes. Cote Python byte-identique (python_sha et content_python_sha inchanges depuis l audit 0025). Parite semantique inchangee : c est une attestation, pas une reparation." + - "Re-baseline 2026-11-13 (myia-po-2023:CoursIA, #22267 grain 2) : derive unilateral cote C# seul par le merge #25391 (Epic #20250, recentrage des ouvertures sur le cours, 2026-11-12T05:22Z) -- cellules markdown 0 (titre + navigation double serie, cibles CSP-01-Fundamentals-Python.ipynb / CSP-03-Advanced-Python.ipynb / ../README.md verifiees existantes) et 61 (recapitulatif) uniquement : 0 cellule code, 0 sortie, 0 execution_count modifies, metadata notebook inchangee, 62 cellules des deux cotes. Cote Python byte-identique (python_sha et content_python_sha inchanges depuis l audit 0025). Parite semantique inchangee : c est une attestation, pas une reparation." - "2026-11-12 (Codex:hors-flotte, PR #26030) : les deux figures C# transmettent le HTML brut via un formatter dédié ; les temps machine-dépendants en prose renvoient aux sorties. Rejeu C# complet, sans nouveau rejeu Python ; les différences de métriques BT/FC/MAC restent applicables." - "2026-11-12 (Codex:hors-flotte, PR #26030) : le graphique C# des domaines AC-3 utilise maintenant les tailles mesurées avant et après propagation ; Q reste à 3, comme dans la sortie de calcul. Rejeu C# complet, 23 cellules, zéro erreur ; aucun rejeu Python nouveau. Les différences de métriques BT/FC/MAC ci-dessous restent applicables. Cette entrée actualise le constat historique Q=2 mentionné plus bas." - "2026-11-12 (Codex:hors-flotte, PR #26030) : lag de registre après la réécriture Markdown C# #25391 ; deux affichages ScottPlot utilisent désormais un MIME HTML explicite. Rejeu C# complet : 23 cellules, zéro erreur, deux CS1701 supprimés, images identiques au rejeu de référence ; bannière .NET retirée après exécution. Le jumeau Python est inchangé. Les différences de mesure BT/FC/MAC et de domaine Q documentées ci-dessous restent ouvertes ; aucune nouvelle exécution Python. Attestation de parité sémantique, pas correction de ces différences." @@ -16,7 +16,7 @@ - "Lecture des sources et sorties enregistrees : 8-Reines affiche 876 / 67 / 20 assignations BT / FC / MAC en Python et 876 / 75 / 20 noeuds en C#. Le graphique C# de la cellule 30 code la taille du domaine de Q apres AC-3 a 2, alors que la sortie de la cellule 27 indique 3 : ce graphique ne confirme pas la sortie. Aucune nouvelle execution n est revendiquee." - "2026-11-09 (hors flotte, PR #25554) : navigation Markdown du jumeau Python vers l’index CSP local ; le jumeau C# conserve son index Search. Aucun code ni sortie modifie ; les differences et le niveau de parite anterieurs restent applicables." - "Re-baseline 2026-10-14 (hors-flotte:claude-session-16638, #16638) : restauration des accents de la prose markdown (tranche csp #16638, outil canonique restore_accents_canonical.py, invariance strip_accents a 0 finding), sur les deux jumeaux. Aucune cellule de code, sortie ni execution_count touchee. Parite inchangee : attestation (le blob SHA se deplace), pas reparation. --update en DERNIERE operation (cf #8957)." - - 'Re-baseline 2026-10-05 (myia-po-2026:CoursIA, #19245 -> #19259) : edition unilaterale cote C# seul, COMMENTAIRES UNIQUEMENT -- la casse canonique `-CSharp` des noms de carnets jumeaux etait perdue dans les commentaires de code (`CSP-1-Fundamentals-Csharp.ipynb` -> `CSP-1-Fundamentals-CSharp.ipynb` (cellule 6)). Aucune ligne executable touchee, aucun `execution_count` ni sortie modifie ; le cote Python est byte-identique a main. Parite semantique inchangee, seule la reference textuelle au jumeau redevient exacte : c''est une attestation de parite (le blob SHA du C# se deplace), pas une reparation. Re-baseline du csharp_sha.' + - 'Re-baseline 2026-10-05 (myia-po-2026:CoursIA, #19245 -> #19259) : edition unilaterale cote C# seul, COMMENTAIRES UNIQUEMENT -- la casse canonique `-CSharp` des noms de carnets jumeaux etait perdue dans les commentaires de code (`CSP-1-Fundamentals-Csharp.ipynb` -> `CSP-01-Fundamentals-CSharp.ipynb` (cellule 6)). Aucune ligne executable touchee, aucun `execution_count` ni sortie modifie ; le cote Python est byte-identique a main. Parite semantique inchangee, seule la reference textuelle au jumeau redevient exacte : c''est une attestation de parite (le blob SHA du C# se deplace), pas une reparation. Re-baseline du csharp_sha.' - "2026-09-27 (drift unilateral, session cloud d'agnosticisme hors flotte) : cote C# seul. La cellule de configuration IKVM codait le RID win-x64 en dur (ikvmRid = win-x64, plus une reference NuGet IKVM.Image.runtime.win-x64) : sous Linux et macOS, l'init de la JVM IKVM echouait au premier appel Java (TypeInitializationException sur IKVM.Runtime.LibJava, mesure sur CSP-1 avant correctif). Le RID est desormais derive de OperatingSystem et RuntimeInformation.ProcessArchitecture ; IKVM.Image 8.15.0 depend deja des onze paquets IKVM.Image.runtime., la reference explicite win-x64 est retiree. Re-execution complete sous Linux (dotnet-interactive 1.0.617701) : 0 erreur, sorties identiques a la base hors RID du home IKVM, separateur decimal (culture) et temps mesures. Jumeau Python inchange. Strips outilles appliques avant l'attestation (probe banner, papermill)." - "Edition 2026-08-19 (myia-po-2025:CoursIA-2, #10382 tranche lib-vs-lib) : section 3.6 ajoutee au jumeau Python -- propagation native Choco via pychoco (binding officiel PyPI MIT), miroir de la section 4 du jumeau C# (AC-3 avec Choco via IKVM). Meme modele Australie (7 IntVar 1..3, arithm '!=' sur adjacences, WA=1) : solve() retourne une solution valide des deux cotes. L'assignation exacte des variables non-fixees peut differer entre jumeaux et vs l'AC-3 maison (heuristique de recherche par defaut du solveur) -- documente dans la cellule d'interpretation du notebook. Temps de resolution en prose = descripteurs machine-dep renvoyant aux sorties live (regle #9434). Re-exec complete du notebook (70 cellules, 28 code, 0 erreur). Verdict RECOVERABLE-LOCAL -> SOTA-OK." - "Socle pedagogique commun : node consistency + AC-3 + Forward Checking + MAC, implementes from-scratch des deux cotes." diff --git a/scripts/notebook_tools/twin_pairs.d/csp-2-consistency/0041-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/csp-2-consistency/0041-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..ac2b667729c --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/csp-2-consistency/0041-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: deb4225fdbbd3fd0edf0f7d7d543ae8ec8a71846 +csharp_sha: 7fef39d8777053eab07335596f7d10479c32b311 +content_python_sha: 83883b8b98bf32f3913ca64a0fc135bb81d6c15ec61e60f1675697abf3c9c681 +content_csharp_sha: 7756504aee6b2d603e1b7502c138d4b1c6c1a925d44645c70955342a93270c54 diff --git a/scripts/notebook_tools/twin_pairs.d/csp-2-consistency/0042-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/csp-2-consistency/0042-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..b314e915b2e --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/csp-2-consistency/0042-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: deb4225fdbbd3fd0edf0f7d7d543ae8ec8a71846 +csharp_sha: 1a256591f559a6fc1793fbd81de1ce3deb44ba84 +content_python_sha: 83883b8b98bf32f3913ca64a0fc135bb81d6c15ec61e60f1675697abf3c9c681 +content_csharp_sha: 1a0c1a01d84d7426f74fc6e01723bb3b8416d3156d89da69b405fd98db687e78 diff --git a/scripts/notebook_tools/twin_pairs.d/csp-3-advanced.yaml b/scripts/notebook_tools/twin_pairs.d/csp-3-advanced.yaml index e24d2a65bb8..e82e28ff830 100644 --- a/scripts/notebook_tools/twin_pairs.d/csp-3-advanced.yaml +++ b/scripts/notebook_tools/twin_pairs.d/csp-3-advanced.yaml @@ -1,7 +1,7 @@ - name: "CSP-3 Advanced" family: Search/Part2-CSP - python: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced.ipynb - csharp: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-3-Advanced-CSharp.ipynb + python: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-Python.ipynb + csharp: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-03-Advanced-CSharp.ipynb parity_level: semantic bridge_verdict: SOTA-OK bridge_verdict_reason: "REBRIDGE LIVRE 2026-08-19 (annexe 'parite lib-vs-lib', cote Python du notebook) : `pychoco` (binding Python officiel de Choco, PyPI, MIT) rejoue les 5 demonstrations Choco du jumeau C# sur le MEME moteur -- instances exactes du twin C# (Mini-Sudoku 4x4 allDifferent, Cumulative [3,4,2,5] cap 2, TSP 5 villes matrice symetrique, Table 3 tuples, Reification XOR). Convergence mesuree : makespan optimal 9 = 9, cout TSP 18 = 18 avec tour identique 0->1->3->4->2->0, solution Table HDD+16GB+750W identique, solution Reif x=0,y=1,b=1,c=0 identique. Les sections principales preservent le pattern double-lib pedagogique (PY = python-constraint academique + OR-Tools CP-SAT industriel, C# = Choco 4.10.17 via IKVM 8.15.0 shade DLL recette #4711) ; l'annexe ajoute la comparaison lib-vs-lib sur les instances du C#. Les DEUX cotes atteignent desormais le meme moteur industriel (Choco) -- le critere SOTA-OK (vrai outil SOTA execute des deux cotes, sorties reelles committees) est satisfait. `parity_level: semantic` preserve pour le corps du notebook ; l'annexe porte la parite numerique exacte." @@ -9,9 +9,9 @@ - "2026-11-09 (hors flotte, PR #25554) : navigation Markdown du jumeau Python vers l’index CSP local ; le jumeau C# conserve son index Search. CSP-3 ajoute aussi le lien vers CSP-4. Aucun code ni sortie modifie ; les differences et le niveau de parite anterieurs restent applicables." - "2026-10-06 (re-attestation post-fusion, PR #19369) : la fusion de origin/main a amene le re-baseline C# du 2026-10-05 (myia-po-2026) ; l'entree locale pre-fusion attestait le csharp_sha d'avant cette fusion. L'entree 0013 est le seul enregistrement de cet audit : elle atteste le blob C# courant -- aucune edition de contenu C# par cette PR ; le drift documente reste le bloc CP-SAT Primer cote Python (markdown seul). L'entree pre-fusion avait d'abord ete renumerotee (collision d'index 0012 avec myia-po-2026) puis SUPPRIMEE : laissee en tete du journal, elle faisait lire au classifieur (audits[-1], tri par index) un csharp_sha perime et le twin audit la declarait en DRIFT. Ses SHAs etaient superseded et son recit est celui-ci." - "2026-10-06 (drift unilateral, markdown seul, PR #19369) : cote Python seul -- bloc citation CP-SAT Primer ajoute apres la barre de nav. Ancrage bibliographique CP-SAT Primer = https://d-krupke.github.io/cpsat-primer/ (site officiel du repo d-krupke/cpsat-primer, Krupke & Schmitt 2023, CC-BY). 0 cellule code touchee, 0 sortie modifiee, 0 execution_count deplace. Jumeau C# inchange : la reference du Primer est propre au solveur CP-SAT (cote Python), absent du cote Choco." - - 'Re-baseline 2026-10-05 (myia-po-2026:CoursIA, #19245 -> #19259) : edition unilaterale cote C# seul, COMMENTAIRES UNIQUEMENT -- la casse canonique `-CSharp` des noms de carnets jumeaux etait perdue dans les commentaires de code (`CSP-4-Scheduling-Csharp.ipynb` -> `CSP-4-Scheduling-CSharp.ipynb` (cellule 1)). Aucune ligne executable touchee, aucun `execution_count` ni sortie modifie ; le cote Python est byte-identique a main. Parite semantique inchangee, seule la reference textuelle au jumeau redevient exacte : c''est une attestation de parite (le blob SHA du C# se deplace), pas une reparation. Re-baseline du csharp_sha.' + - 'Re-baseline 2026-10-05 (myia-po-2026:CoursIA, #19245 -> #19259) : edition unilaterale cote C# seul, COMMENTAIRES UNIQUEMENT -- la casse canonique `-CSharp` des noms de carnets jumeaux etait perdue dans les commentaires de code (`CSP-4-Scheduling-Csharp.ipynb` -> `CSP-04-Scheduling-CSharp.ipynb` (cellule 1)). Aucune ligne executable touchee, aucun `execution_count` ni sortie modifie ; le cote Python est byte-identique a main. Parite semantique inchangee, seule la reference textuelle au jumeau redevient exacte : c''est une attestation de parite (le blob SHA du C# se deplace), pas une reparation. Re-baseline du csharp_sha.' - "2026-09-27 (drift unilateral, session cloud d'agnosticisme hors flotte) : cote C# seul. La cellule de configuration IKVM codait le RID win-x64 en dur (ikvmRid = win-x64, plus une reference NuGet IKVM.Image.runtime.win-x64) : sous Linux et macOS, l'init de la JVM IKVM echouait au premier appel Java (TypeInitializationException sur IKVM.Runtime.LibJava, mesure sur CSP-1 avant correctif). Le RID est desormais derive de OperatingSystem et RuntimeInformation.ProcessArchitecture ; IKVM.Image 8.15.0 depend deja des onze paquets IKVM.Image.runtime., la reference explicite win-x64 est retiree. Re-execution complete sous Linux (dotnet-interactive 1.0.617701) : 0 erreur, sorties identiques a la base hors RID du home IKVM, separateur decimal (culture) et temps mesures. Jumeau Python inchange. Strips outilles appliques avant l'attestation (probe banner, papermill)." - - '2026-08-31 : ATTESTATION UNILATERALE (PR #13659, lane myia-ai-01:CoursIA) -- reparation d''echappements JSON manges dans le markdown du cote Python. CAUSE : dans le .ipynb, la sequence dollar-\bot-dollar ecrite avec UN SEUL antislash est lue par le parseur JSON comme l''echappement \b (backspace, U+0008) ; la source chargee porte un caractere de controle et le notebook rend un dollar-ot-dollar prive de sa commande LaTeX. FIX : doubler l''antislash (\\bot). Le DRIFT est UNILATERAL parce que le DEFAUT l''est : la contrepartie CSP-3-Advanced-CSharp.ipynb (C#), 14 cellules markdown, a ete scannee sous controle positif (le litteral defectueux passe a json.loads doit rendre U+0008 -- assertion verifiee avant le scan) et ne porte AUCUN caractere de controle U+0008/U+000B/U+000C. Il n''y a donc rien a reparer de ce cote : l''attestation ne consacre aucune asymetrie de contenu. PORTEE DU DIFF cote repare (comparaison des JSON parses origin/main -> HEAD) : markdown uniquement, 0 cellule code touchee, 0 sortie modifiee, 0 execution_count deplace, 0 cellule ajoutee ou retiree.' + - '2026-08-31 : ATTESTATION UNILATERALE (PR #13659, lane myia-ai-01:CoursIA) -- reparation d''echappements JSON manges dans le markdown du cote Python. CAUSE : dans le .ipynb, la sequence dollar-\bot-dollar ecrite avec UN SEUL antislash est lue par le parseur JSON comme l''echappement \b (backspace, U+0008) ; la source chargee porte un caractere de controle et le notebook rend un dollar-ot-dollar prive de sa commande LaTeX. FIX : doubler l''antislash (\\bot). Le DRIFT est UNILATERAL parce que le DEFAUT l''est : la contrepartie CSP-03-Advanced-CSharp.ipynb (C#), 14 cellules markdown, a ete scannee sous controle positif (le litteral defectueux passe a json.loads doit rendre U+0008 -- assertion verifiee avant le scan) et ne porte AUCUN caractere de controle U+0008/U+000B/U+000C. Il n''y a donc rien a reparer de ce cote : l''attestation ne consacre aucune asymetrie de contenu. PORTEE DU DIFF cote repare (comparaison des JSON parses origin/main -> HEAD) : markdown uniquement, 0 cellule code touchee, 0 sortie modifiee, 0 execution_count deplace, 0 cellule ajoutee ou retiree.' - "Socle pedagogique commun : global constraints (all_different, sum, element) + backtracking avec propagation globale + symetrie breaking (lexicographique)." - "Cote C# : Choco-solver (memes recettes infrastructure) - global constraints implementes en Python pur (classe AllDifferent via matching de Hall), cote C# delegue a Choco.IntVar+Constraint via IKVM." - "Concepts avances : latin squares (N-Reines etendu), magic series, Golomb rulers. Cote Python = from-scratch, cote C# = Choco + benchmarks comparatifs." diff --git a/scripts/notebook_tools/twin_pairs.d/csp-3-advanced/0030-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/csp-3-advanced/0030-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..1f0cc1812b1 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/csp-3-advanced/0030-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: 1ce5233d150e50bdeb967f8450c8c2e077e26088 +csharp_sha: c5ae1ae5995835692328adffe492940bd93b2c68 +content_python_sha: b2e72d01209f5aaedc096002194263d0ba0d01e65f6127872d3cdfb209c8bf69 +content_csharp_sha: 6a855e4ec880aec66e7de46143f751d24b8858c1d4169f5a338f0bf296bee170 diff --git a/scripts/notebook_tools/twin_pairs.d/csp-4-scheduling.yaml b/scripts/notebook_tools/twin_pairs.d/csp-4-scheduling.yaml index 2bb51b81598..aad54ce2de3 100644 --- a/scripts/notebook_tools/twin_pairs.d/csp-4-scheduling.yaml +++ b/scripts/notebook_tools/twin_pairs.d/csp-4-scheduling.yaml @@ -1,12 +1,12 @@ - name: "CSP-4 Scheduling" family: Search/Part2-CSP - python: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling.ipynb - csharp: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-4-Scheduling-CSharp.ipynb + python: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-Python.ipynb + csharp: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-04-Scheduling-CSharp.ipynb parity_level: native-both bridge_verdict: SOTA-OK bridge_verdict_reason: "Resolved 2026-08-19 (myia-po-2024:CoursIA, tranche lib-vs-lib #10382). Les DEUX twins invoquent le meme moteur -- OR-Tools CP-SAT (coeur C++ Google) -- via le binding natif de leur ecosysteme : Python = `ortools.sat.python.cp_model` (pip), C# = `Google.OrTools.Sat` (NuGet officiel, design option b #4956, en place depuis la creation #5067). Le verdict RECOVERABLE-LOCAL de l'audit 2026-08-01 decrivait un C# Choco/IKVM (`org.chocosolver.solver.Model` + `findSchedule()`) que le code n'a JAMAIS contenu -- les modeles C# tournent sur `CpModel`/`AddNoOverlap`/`AddCumulative`(builder fluent)/`Minimize` depuis la creation. Le twin C# portait pourtant le branding Choco (titre, doc config, 2 cellules config IKVM mortes, prose Modelisation Choco, indices d'exercices en API Choco non compilable) : la tranche reconcilie prose/config/exercices avec l'API reellement executee et re-execoute le notebook (8/8 cellules, Google.OrTools 9.15) -- makespans 11 et 10 et 42 postes exactement identiques au jumeau Python (convergence native-both verifiee sur grandeur observable). La route Choco/IKVM reste demontree dans CSP-1/2/3/5/7 et Sudoku-11-Choco-CSharp. `parity_level` passe semantic -> native-both : les deux twins invoquent le solveur natif de leur ecosysteme (precedent app-6 minesweeper)." known_differences: - - "2026-11-21 (myia-po-2024:CoursIA, PR #27680) : navigation Markdown du jumeau Python vers le troisieme cote Rust CSP-4-Scheduling-Rust.ipynb (portage evcxr livre par la meme PR, precedent Sudoku-10) ; cote Python seul, 0 cellule code touchee, 0 sortie modifiee, 0 execution_count deplace. Jumeau C# et differences anterieures inchanges." + - "2026-11-21 (myia-po-2024:CoursIA, PR #27680) : navigation Markdown du jumeau Python vers le troisieme cote Rust CSP-04-Scheduling-Rust.ipynb (portage evcxr livre par la meme PR, precedent Sudoku-10) ; cote Python seul, 0 cellule code touchee, 0 sortie modifiee, 0 execution_count deplace. Jumeau C# et differences anterieures inchanges." - "2026-11-11 (Codex:hors-flotte) : fusion des ouvertures C# et de la navigation Python vers l index CSP local ; socle JSSP, RCPSP et Nurse conserve. La couverture de 42 postes impose ici sept jours par infirmier : la variante C# limitant a cinq jours consecutifs exige une adaptation du probleme. Le Primer figure maintenant dans le carnet C#, contrairement a une mention historique ci-dessous. Aucune execution nouvelle." - "Les sorties enregistrees confirment 11, 10 et 42 sur les trois instances communes ; 42 est un nombre de postes, pas un makespan. Le Python ajoute recherche guidee et exemples resolus, tandis que le C# propose trois exercices. L indice C# sur cinq jours consecutifs utilise une somme sur cinq jours <= 5, contrainte redondante sous unicite journaliere ; ce n est pas une validation de la limite de cinq jours consecutifs." - "2026-11-09 (hors flotte, PR #25554) : navigation Markdown du jumeau Python vers l’index CSP local ; le jumeau C# conserve son index Search. Aucun code ni sortie modifie ; les differences et le niveau de parite anterieurs restent applicables." diff --git a/scripts/notebook_tools/twin_pairs.d/csp-4-scheduling/0028-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/csp-4-scheduling/0028-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..1ea3478eaae --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/csp-4-scheduling/0028-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: 0a4b2fa4b39f15a91ee5d60b35258a0d799b8b1b +csharp_sha: 2111a353138559a19d7f5d4589bc97ffe563e230 +content_python_sha: 45a03374624a0a8a3891c71140dd1bd257b916805e1aa234c47d684524309b4a +content_csharp_sha: f0a76d82b213e5bd2c8c8075fa96cb0363dd345ae7c2c00f0fd9f5818f1fedfc diff --git a/scripts/notebook_tools/twin_pairs.d/csp-4-scheduling/0029-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/csp-4-scheduling/0029-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..318c3454281 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/csp-4-scheduling/0029-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: 0a4b2fa4b39f15a91ee5d60b35258a0d799b8b1b +csharp_sha: e72b8657204f3d6992b662abe72bd1f4fb08aefe +content_python_sha: 45a03374624a0a8a3891c71140dd1bd257b916805e1aa234c47d684524309b4a +content_csharp_sha: d6606306b66e293ca6b2b25a9789428b41791f23f599febf3a1f64a69e7d40c3 diff --git a/scripts/notebook_tools/twin_pairs.d/csp-5-optimization.yaml b/scripts/notebook_tools/twin_pairs.d/csp-5-optimization.yaml index 953bfb4a743..2bd7c8d2bbb 100644 --- a/scripts/notebook_tools/twin_pairs.d/csp-5-optimization.yaml +++ b/scripts/notebook_tools/twin_pairs.d/csp-5-optimization.yaml @@ -1,7 +1,7 @@ - name: "CSP-5 Optimization" family: Search/Part2-CSP - python: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization.ipynb - csharp: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-5-Optimization-CSharp.ipynb + python: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-Python.ipynb + csharp: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-05-Optimization-CSharp.ipynb parity_level: native-both bridge_verdict: SOTA-OK bridge_verdict_reason: "DEUX PONTS LIVRES 2026-08-20, fermeture par les deux bouts de la meme asymetrie de machinerie. (a) Cote Python -- annexe 'parite lib-vs-lib' (myia-po-2025:CoursIA-2, PR #11891) : `pychoco` (binding Python officiel de Choco, PyPI, MIT) rejoue les 4 demos Choco du jumeau C# sur les instances exactes des cellules 6/8/10/12 (BPP [2,5,4,7,2] cap 10 reification+scalar, Knapsack 5 objets cap 10, Cutting Stock 13 pieces via contrainte GLOBALE bin_packing, Portfolio lineaire 5 actifs). Convergence 4/4 : 3 bins = 3, valeur 31 = 31 avec selection identique {0,1,3}, 10 barres = 10 avec meme decomposition 3x[9] + 4x[7] + 3x[4,4], rendement 27 = 27 avec meme choix {0,1,4}. Re-exec complete (25 cellules code, 0 erreur, nbconvert --execute). (b) Cote C# -- section 5.1 'CP-SAT natif .NET' (myia-po-2024:CoursIA, PR #11976) : `#r \"nuget: Google.OrTools, 9.15.6755\"` sans IKVM + formulation booleenne miroir du Python (x[i,j]/y[j], capacite linearisee, symmetry breaking, Minimize(sum(y))) sur les memes donnees [2,5,4,7,2]/cap 10. Re-exec .NET Interactive : status Optimal, 3 bins -- meme optimum que Choco section 1 ; la fonction Python solve_bin_packing_cp peut modeliser ces donnees, mais aucune sortie enregistree de cet appel precis ne figure dans le carnet (optimum verifie independamment : aucun sous-ensemble de [2,5,4,7,2] ne somme a exactement 10, donc 2 bins est infaisable et 3 est optimal). Consequence sur parity_level : `native-both` est desormais atteint PAR L'AXE CP-SAT -- chaque cote invoque CP-SAT dans son ecosysteme natif (Python `ortools.sat.python.cp_model`, C# NuGet `Google.OrTools` sans pont IKVM), ce qui est la definition retenue par l'arbitrage #11200. L'axe Choco reste asymetrique (pychoco natif cote Python, IKVM shade cote C#) et n'est pas ce qui porte le verdict. Le `semantic` inscrit par (a) etait correct AVANT que (b) n'existe ; il est superseded, pas contredit. Les sections principales preservent le pattern double-lib pedagogique (PY = OR-Tools CP-SAT, C# = Choco 4.10.17 via IKVM 8.15.0 recette #4711). --- Etat precedent (2026-08-04) : verdict RECOVERABLE-LOCAL, ASYMETRIE DE MACHINERIE -- PY = Google OR-Tools CP-SAT vs C# = Choco via IKVM. Les deux remedes nommes a l'epoque (`pychoco` pour aligner sur Choco, `Google.OrTools` NuGet pour aligner sur OR-Tools) ont ete appliques, chacun par une lane differente." @@ -13,7 +13,7 @@ - "Re-baseline 2026-10-14 (hors-flotte:claude-session-16638, #16638) : restauration des accents de la prose markdown (tranche csp #16638, outil canonique restore_accents_canonical.py, invariance strip_accents a 0 finding), cote Python seul ; cote C# byte-identique a main. Aucune cellule de code, sortie ni execution_count touchee. Parite inchangee : attestation (le blob SHA se deplace), pas reparation. --update en DERNIERE operation (cf #8957)." - "2026-10-06 (re-attestation post-fusion, PR #19369) : la fusion de origin/main a amene le re-baseline C# du 2026-10-05 (myia-po-2026) ; l'entree locale pre-fusion attestait le csharp_sha d'avant cette fusion. L'entree 0015 est le seul enregistrement de cet audit : elle atteste le blob C# courant -- aucune edition de contenu C# par cette PR ; le drift documente reste le bloc CP-SAT Primer cote Python (markdown seul). Nettoyage du journal dans la foulee : l'entree pre-fusion (renumerotee 0016 apres collision d'index) et une re-attestation redondante (0017, octets identiques a 0015) ont ete SUPPRIMEES -- la premiere faisait lire au classifieur (audits[-1], tri par index) un csharp_sha perime, la seconde doublait le compte d'un audit unique (#15345)." - "2026-10-06 (drift unilateral, markdown seul, PR #19369) : cote Python seul -- bloc citation CP-SAT Primer ajoute apres le bloc duree estimee. Ancrage bibliographique CP-SAT Primer = https://d-krupke.github.io/cpsat-primer/ (site officiel du repo d-krupke/cpsat-primer, Krupke & Schmitt 2023, CC-BY). 0 cellule code touchee, 0 sortie modifiee, 0 execution_count deplace. Jumeau C# inchange : la reference du Primer est propre au solveur CP-SAT (cote Python), absent du cote Choco." - - 'Re-baseline 2026-10-05 (myia-po-2026:CoursIA, #19245 -> #19259) : edition unilaterale cote C# seul, COMMENTAIRES UNIQUEMENT -- la casse canonique `-CSharp` des noms de carnets jumeaux etait perdue dans les commentaires de code (`CSP-4-Scheduling-Csharp.ipynb` -> `CSP-4-Scheduling-CSharp.ipynb` (cellule 3)). Aucune ligne executable touchee, aucun `execution_count` ni sortie modifie ; le cote Python est byte-identique a main. Parite semantique inchangee, seule la reference textuelle au jumeau redevient exacte : c''est une attestation de parite (le blob SHA du C# se deplace), pas une reparation. Re-baseline du csharp_sha.' + - 'Re-baseline 2026-10-05 (myia-po-2026:CoursIA, #19245 -> #19259) : edition unilaterale cote C# seul, COMMENTAIRES UNIQUEMENT -- la casse canonique `-CSharp` des noms de carnets jumeaux etait perdue dans les commentaires de code (`CSP-4-Scheduling-Csharp.ipynb` -> `CSP-04-Scheduling-CSharp.ipynb` (cellule 3)). Aucune ligne executable touchee, aucun `execution_count` ni sortie modifie ; le cote Python est byte-identique a main. Parite semantique inchangee, seule la reference textuelle au jumeau redevient exacte : c''est une attestation de parite (le blob SHA du C# se deplace), pas une reparation. Re-baseline du csharp_sha.' - "2026-09-27 (drift unilateral, session cloud d'agnosticisme hors flotte) : cote C# seul. La cellule de configuration IKVM codait le RID win-x64 en dur (ikvmRid = win-x64, plus une reference NuGet IKVM.Image.runtime.win-x64) : sous Linux et macOS, l'init de la JVM IKVM echouait au premier appel Java (TypeInitializationException sur IKVM.Runtime.LibJava, mesure sur CSP-1 avant correctif). Le RID est desormais derive de OperatingSystem et RuntimeInformation.ProcessArchitecture ; IKVM.Image 8.15.0 depend deja des onze paquets IKVM.Image.runtime., la reference explicite win-x64 est retiree. Re-execution complete sous Linux (dotnet-interactive 1.0.617701) : 0 erreur, sorties identiques a la base hors RID du home IKVM, separateur decimal (culture) et temps mesures. Jumeau Python inchange. Strips outilles appliques avant l'attestation (probe banner, papermill)." - "Pont 2026-08-20 (myia-po-2024:CoursIA, #10382 bucket 1 OR-Tools) : le twin C# ajoute une section 5.1 CP-SAT natif (Google.OrTools 9.11.4210 NuGet, sans IKVM) qui reprend la formulation booleenne du Python (x[i,j]/y[j], Minimize(sum(y))) sur les memes donnees BPP. Sortie executee : Optimal, 3 bins -- convergence avec Choco section 1 et avec le twin Python. Combinee a l'annexe pychoco cote Python (entree ci-dessus, meme date, autre lane), cette section porte parity_level a native-both sur l'axe CP-SAT. L'entree 'Idiomes framework' ci-dessous decrit l'etat pre-ponts (sections 1-4 Choco/IKVM cote C#, inchangees)." - "Rebridge 2026-08-20 (myia-po-2025:CoursIA-2, #10382) : annexe 'parite lib-vs-lib' ajoutee au twin Python (9 cellules avant References, ids annexe-libvslib-*) -- pychoco rejoue les 4 demos Choco du twin C# (BPP reification+scalar, Knapsack scalar, Cutting Stock bin_packing globale, Portfolio lineaire) sur les instances exactes des cellules 6/8/10/12 du C#. Re-exec complete du notebook (25 cellules code, 0 erreur, nbconvert --execute). Convergence 4/4 : 3 bins, 31/{0,1,3}, 10 barres meme structure, 27/{0,1,4}. Verdict flip RECOVERABLE-LOCAL -> SOTA-OK (le remede nomme dans le verdict precedent -- pychoco pour aligner les 2 jambes sur Choco -- est applique). Twin C# non modifie." diff --git a/scripts/notebook_tools/twin_pairs.d/csp-5-optimization/0030-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/csp-5-optimization/0030-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..b9ce1975184 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/csp-5-optimization/0030-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: cd0300f8ce7cbf690df33f58dd9c34dcf43215f6 +csharp_sha: 6b7c663d937d42a723fbfed8e24c639ab7bc2e6d +content_python_sha: 4046c31fff97ad4c0077480cadc2ab64000c27ed9d5c7570e9bf3795ecf82f3a +content_csharp_sha: 5efd3c01c38e6f3522d811f6575e2be0bd55f675d27fc9c11d5eda9213612ee1 diff --git a/scripts/notebook_tools/twin_pairs.d/csp-6-hybridization.yaml b/scripts/notebook_tools/twin_pairs.d/csp-6-hybridization.yaml index 51451712c40..b7a24442aa3 100644 --- a/scripts/notebook_tools/twin_pairs.d/csp-6-hybridization.yaml +++ b/scripts/notebook_tools/twin_pairs.d/csp-6-hybridization.yaml @@ -1,7 +1,7 @@ - name: "CSP-6 Hybridization" family: Search/Part2-CSP - python: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization.ipynb - csharp: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-6-Hybridization-CSharp.ipynb + python: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-Python.ipynb + csharp: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-06-Hybridization-CSharp.ipynb parity_level: native-both bridge_verdict: SOTA-OK bridge_verdict_reason: "Python = `ortools.sat.python.cp_model` + `cp_model_helper` (Google, Apache-2.0, CP-SAT SOTA hybrid : `CpModel()` + variables + `AddMaxEquality` + `model.Minimize(obj)` + `solver.Solve()` pour hybrid CP-SAT + heuristique de recherche). C# = `Google.OrTools` NuGet (Google, Apache-2.0, meme solveur CP-SAT : `#r \"nuget: Google.OrTools\"` + `using Google.OrTools.Sat;` + `CpModel()` + variables + contraintes + `solver.Solve()`) + `ScottPlot` NuGet 5.0.55 (MIT-license, visualisation en barres). Verdict SOTA-OK (modele owner c.217 PR #10557 MERGED 2026-08-12 tranche 2 lib-vs-lib) : les DEUX cotes utilisent LE MEME solveur Google OR-Tools CP-SAT natif (meme binding C++ sous-jacent, API symetrique entre les bindings PyPI + NuGet officiels Google), bridge direct sans glue non-SOTA. Asymetrie documentee : ScottPlot cote C# = helper viz uniquement (le Python utilise matplotlib pour les temps et le speedup ; les instances et modeles divergent comme documente ci-dessous). Le niveau enregistre est `native-both` pour le moteur ; il ne certifie pas une equivalence des modeles ou des resultats (voir known_differences)." @@ -13,7 +13,7 @@ - "2026-11-09 (hors flotte, PR #25554) : navigation Markdown du jumeau Python vers l’index CSP local ; le jumeau C# conserve son index Search. Aucun code ni sortie modifie ; les differences et le niveau de parite anterieurs restent applicables." - "2026-10-26 (myia-po-2028:CoursIA, PR #21733 / #19253) : re-baseline apres comparaison JSON base/HEAD. Seule la cellule markdown `p9ea5852nb` du carnet Python change : le lien App-9 suit le deplacement vers `Part3-Cas-pratiques`. Aucune source de cellule code, sortie ou execution_count modifiee ; `scan_href` ne signale aucun nouveau lien manquant. Parite semantique inchangee." - 'Re-baseline 2026-10-14 (hors-flotte:claude-session-20167, PR #20588, #20167) : edition unilaterale cote Python seul, SCHEMA nbformat uniquement -- retrait des champs `execution_count`/`outputs` portes a tort par 1 cellule markdown (cles reservees aux cellules code en nbformat 4), par `fix_markdown_cell_schema.py`. Aucune source ni sortie de cellule code touchee : le carnet de base, une fois ces champs retires, est identique au carnet de tete (comparaison JSON complete). Cote C# byte-identique a main. Parite semantique inchangee : attestation (le blob SHA se deplace), pas reparation.' - - 'Re-baseline 2026-10-05 (myia-po-2026:CoursIA, #19245 -> #19259) : edition unilaterale cote C# seul, COMMENTAIRES UNIQUEMENT -- la casse canonique `-CSharp` des noms de carnets jumeaux etait perdue dans les commentaires de code (`CSP-2-Consistency-Csharp` -> `CSP-2-Consistency-CSharp` (cellule 21)). Aucune ligne executable touchee, aucun `execution_count` ni sortie modifie ; le cote Python est byte-identique a main. Parite semantique inchangee, seule la reference textuelle au jumeau redevient exacte : c''est une attestation de parite (le blob SHA du C# se deplace), pas une reparation. Re-baseline du csharp_sha.' + - 'Re-baseline 2026-10-05 (myia-po-2026:CoursIA, #19245 -> #19259) : edition unilaterale cote C# seul, COMMENTAIRES UNIQUEMENT -- la casse canonique `-CSharp` des noms de carnets jumeaux etait perdue dans les commentaires de code (`CSP-2-Consistency-Csharp` -> `CSP-02-Consistency-CSharp` (cellule 21)). Aucune ligne executable touchee, aucun `execution_count` ni sortie modifie ; le cote Python est byte-identique a main. Parite semantique inchangee, seule la reference textuelle au jumeau redevient exacte : c''est une attestation de parite (le blob SHA du C# se deplace), pas une reparation. Re-baseline du csharp_sha.' - "2026-10-03 (attestation 0008, PR #18999, lane myia-po-2023:CoursIA) : cote Python seul edite -- determinisme CP-SAT rendu explicite (seed 42 + worker unique sur le code deterministe priorite-parametres, seed seule sur l'etude ou la variable testee est le nombre de workers) et lectures resynchronisees sur la re-execution fraiche ; cote C# inchange. Parite semantique preservee (meme solveur CP-SAT natif, memes concepts cibles)." - "Socle pedagogique commun : approches hybrides modernes en CP -- Lazy Clause Generation (LCG), architecture CP-SAT (CP + SAT + CDCL), hybridation CP + ML (prediction de faisabilite), integration LLM + CSP." - "Cas etudies : N-Reines (LCG via CP-SAT), Job-Shop Scheduling (exploration des parametres CP-SAT : DEFAULT / FIXED_SEARCH / PORTFOLIO), generation d'instances CSP aleatoires + prediction de faisabilite par features (n_vars, n_constraints, density)." diff --git a/scripts/notebook_tools/twin_pairs.d/csp-6-hybridization/0040-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/csp-6-hybridization/0040-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..50439bb3cf8 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/csp-6-hybridization/0040-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: f76f3e4093301eaab1db9a2e0deba92fc42284b1 +csharp_sha: c4d69b57ece1c6c2d0958124caae5f1e16235bc4 +content_python_sha: 3c616417cf066a1e8288770470402bc31b7f07d1f033413d1657af2041c4f452 +content_csharp_sha: 844649f3072aa751fbd86ecfa234613d82532e550fb4ee5ea2c1f44dc4549432 diff --git a/scripts/notebook_tools/twin_pairs.d/csp-6-hybridization/0041-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/csp-6-hybridization/0041-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..dfbee3ad452 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/csp-6-hybridization/0041-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: f76f3e4093301eaab1db9a2e0deba92fc42284b1 +csharp_sha: c53250c17c38dae05d133f87ec2d18c83dbf604c +content_python_sha: 3c616417cf066a1e8288770470402bc31b7f07d1f033413d1657af2041c4f452 +content_csharp_sha: 4ffbd57ffeb247ad95279ca540780e52c3672b4fbd467cde5cd43c22fc915dd9 diff --git a/scripts/notebook_tools/twin_pairs.d/csp-6-hybridization/0042-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/csp-6-hybridization/0042-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..851219c6d44 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/csp-6-hybridization/0042-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: f76f3e4093301eaab1db9a2e0deba92fc42284b1 +csharp_sha: 30b0af13295a6a06eb2cf7915d07620819333127 +content_python_sha: 3c616417cf066a1e8288770470402bc31b7f07d1f033413d1657af2041c4f452 +content_csharp_sha: 6fd7899ebfd5a89c134a4c2eae751bb5cac812f024ac7ad9302d84e08688f217 diff --git a/scripts/notebook_tools/twin_pairs.d/csp-7-soft.yaml b/scripts/notebook_tools/twin_pairs.d/csp-7-soft.yaml index 550394cf4de..473d69d1aec 100644 --- a/scripts/notebook_tools/twin_pairs.d/csp-7-soft.yaml +++ b/scripts/notebook_tools/twin_pairs.d/csp-7-soft.yaml @@ -1,7 +1,7 @@ - name: CSP-7 Soft family: Search/Part2-CSP - python: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft.ipynb - csharp: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-7-Soft-CSharp.ipynb + python: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-Python.ipynb + csharp: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-07-Soft-CSharp.ipynb parity_level: semantic bridge_verdict: SOTA-OK bridge_verdict_reason: 'Python = `ortools.sat.python.cp_model` (Google, Apache-2.0, CP-SAT SOTA soft constraints : `CpModel()` + variables + `AddMaxEquality` + cout de violation + `solver.Solve()` pour optimisation sous contraintes souples) + abstractions `abc.ABC`/`abstractmethod` (4 paradigmes : Semiring-based CSP, Fuzzy CSP, Weighted CSP, OR-Tools CP-SAT integration) + `dataclasses`. C# = Choco-solver 4.10.17 (Apache-2.0) via IKVM 8.15.0 home shade DLL (recette #4711) avec `org.chocosolver.solver.Model` + `IntVar` + `arithm` + cost-aware constraints + `getSolver().findOptimalSolution(cost, MINIMIZE)` pour Weighted CSP uniquement (24 cellules C# au verdict initial, 38 apres les tranches #12159/#12616/Hierarchical vs 53 cellules PY, 17 code C# vs 20 code PY). Verdict RECOVERABLE-LOCAL : ASYMETRIE STRUCTURELLE DOCUMENTEE -- le C# est un twin PARTIEL (Weighted CSP uniquement), le PY couvre 4 paradigmes soft constraints (Semiring/Fuzzy/Weighted/OR-Tools). `parity_level: surface` preserve deja cette couverture limitee. La section PY Fuzzy est desormais portee cote C# (section 4 du twin C#, livree par PR #12159 MERGED 2026-08-21, commit bb5750e64 : planification de vacances Choco avec degres [0..1000], combinaison min, verifiee firsthand c.1301+334 -- 26 cellules dont 12 code, 12/12 executees). La section PY Semiring est desormais portee cote C# (section 5 du twin C#, livree par PR #12616 : interface generique ISemiring + classe SoftCsp, accord numerique exact verifie contre le moteur Choco sur le probleme de vacances floues). Le fil Hierarchical CSP est porte cote C# depuis la tranche du 2026-08-24 (section 6, accord numerique Choco<->CP-SAT : meme optimum objectif 3 sur le catalogue PC) — le registre ne porte plus de gap de moteur. Cote C# : Fuzzy livre par #12159 (IntVar [0,1000] + model.min + setObjective), Semiring par #12616 (ISemiring + SoftCsp), Hierarchical par la tranche du 2026-08-24 (reification ifThenElse + scalar lexicographique). Cote PY : `python-constraint` MIT + `pychoco` (binding Choco Python, MIT) ajouteraient une lib SOTA alignable sur Choco C#. `parity_level: surface` preserve : parite seulement sur la couverture Weighted CSP (surface limit du twin C#). Adjudication 2026-08-19 (dispatch #10382, comment 5335643895, lane myia-po-2026:CoursIA) : surface CONFIRME pour l''etat livre, verifie firsthand sur deux fondements -- (1) twin C# partiel : 0 occurrence Semiring/Fuzzy dans le C# (24 cellules) contre 33/28 cote Python (53 cellules) + fil Hierarchical CSP absent ; (2) le cote Python est LUI-MEME partiellement solver-free : les sections Semiring/Fuzzy sont des frameworks from-scratch sur abstractions stdlib (`abc.ABC`, `dataclasses`), pas un moteur externe -- le test native-both (nommer moteur + point d''entree par cote) echoue donc au-dela du sous-ensemble Weighted, des deux cotes. Le sous-ensemble couvert est en parite de moteurs REELS : Choco/IKVM 11/11 cellules code executees cote C#, OR-Tools CP-SAT 20/20 cote Python. Verdict reevalue SOTA-OK le 2026-08-24 : les deux cotes executent un moteur reel (Choco 4.10.17 via IKVM 8.15.0 / OR-Tools CP-SAT), les quatre paradigmes soft + le fil Hierarchical sont couverts des deux cotes, accords numeriques verifies x2 (Semiring framework<->Choco : Rome degre 0.8 ; Hierarchical Choco<->CP-SAT : objectif 3, meme configuration 815 EUR). parity_level passe surface -> semantic : l''avertissement de perimetre decrivait l''etat ante-#12159/#12616/tranche-Hierarchical. Asymetries residuelles mineures (enrichissements, pas des gaps) documentees en known_differences.' @@ -10,7 +10,7 @@ - "Re-baseline 2026-10-14 (hors-flotte:claude-session-16638, #16638) : restauration des accents de la prose markdown (tranche csp #16638, outil canonique restore_accents_canonical.py, invariance strip_accents a 0 finding), cote C# seul ; cote Python byte-identique a main. Aucune cellule de code, sortie ni execution_count touchee. Parite inchangee : attestation (le blob SHA se deplace), pas reparation. --update en DERNIERE operation (cf #8957)." - "2026-10-06 (drift unilateral, markdown seul, PR #19369) : cote Python seul -- bloc citation CP-SAT Primer ajoute apres la barre de nav. Ancrage bibliographique CP-SAT Primer = https://d-krupke.github.io/cpsat-primer/ (site officiel du repo d-krupke/cpsat-primer, Krupke & Schmitt 2023, CC-BY). 0 cellule code touchee, 0 sortie modifiee, 0 execution_count deplace. Jumeau C# inchange : la reference du Primer est propre au solveur CP-SAT (cote Python), absent du cote Choco." - "2026-09-27 (drift unilateral, session cloud d'agnosticisme hors flotte) : cote C# seul. La cellule de configuration IKVM codait le RID win-x64 en dur (ikvmRid = win-x64, plus une reference NuGet IKVM.Image.runtime.win-x64) : sous Linux et macOS, l'init de la JVM IKVM echouait au premier appel Java (TypeInitializationException sur IKVM.Runtime.LibJava, mesure sur CSP-1 avant correctif). Le RID est desormais derive de OperatingSystem et RuntimeInformation.ProcessArchitecture ; IKVM.Image 8.15.0 depend deja des onze paquets IKVM.Image.runtime., la reference explicite win-x64 est retiree. Re-execution complete sous Linux (dotnet-interactive 1.0.617701) : 0 erreur, sorties identiques a la base hors RID du home IKVM, separateur decimal (culture) et temps mesures. Jumeau Python inchange. Strips outilles appliques avant l'attestation (probe banner, papermill)." - - '2026-08-31 : ATTESTATION UNILATERALE (PR #13659, lane myia-ai-01:CoursIA) -- reparation d''echappements JSON manges dans le markdown du cote Python. CAUSE : dans le .ipynb, la sequence dollar-\bot-dollar ecrite avec UN SEUL antislash est lue par le parseur JSON comme l''echappement \b (backspace, U+0008) ; la source chargee porte un caractere de controle et le notebook rend un dollar-ot-dollar prive de sa commande LaTeX. FIX : doubler l''antislash (\\bot). Le DRIFT est UNILATERAL parce que le DEFAUT l''est : la contrepartie CSP-7-Soft-CSharp.ipynb (C#), 21 cellules markdown, a ete scannee sous controle positif (le litteral defectueux passe a json.loads doit rendre U+0008 -- assertion verifiee avant le scan) et ne porte AUCUN caractere de controle U+0008/U+000B/U+000C. Il n''y a donc rien a reparer de ce cote : l''attestation ne consacre aucune asymetrie de contenu. PORTEE DU DIFF cote repare (comparaison des JSON parses origin/main -> HEAD) : markdown uniquement, 0 cellule code touchee, 0 sortie modifiee, 0 execution_count deplace, 0 cellule ajoutee ou retiree.' + - '2026-08-31 : ATTESTATION UNILATERALE (PR #13659, lane myia-ai-01:CoursIA) -- reparation d''echappements JSON manges dans le markdown du cote Python. CAUSE : dans le .ipynb, la sequence dollar-\bot-dollar ecrite avec UN SEUL antislash est lue par le parseur JSON comme l''echappement \b (backspace, U+0008) ; la source chargee porte un caractere de controle et le notebook rend un dollar-ot-dollar prive de sa commande LaTeX. FIX : doubler l''antislash (\\bot). Le DRIFT est UNILATERAL parce que le DEFAUT l''est : la contrepartie CSP-07-Soft-CSharp.ipynb (C#), 21 cellules markdown, a ete scannee sous controle positif (le litteral defectueux passe a json.loads doit rendre U+0008 -- assertion verifiee avant le scan) et ne porte AUCUN caractere de controle U+0008/U+000B/U+000C. Il n''y a donc rien a reparer de ce cote : l''attestation ne consacre aucune asymetrie de contenu. PORTEE DU DIFF cote repare (comparaison des JSON parses origin/main -> HEAD) : markdown uniquement, 0 cellule code touchee, 0 sortie modifiee, 0 execution_count deplace, 0 cellule ajoutee ou retiree.' - '2026-08-24 : TRANCHE HIERARCHICAL (PR empilee sur #12616, lane myia-po-2024:CoursIA) : section 6 Hierarchical CSP ajoutee au twin C# (notebook 33 -> 38 cellules). csharp_sha c71f75e0 -> d46ed16d (ratchet exec 26a25a318f) -> 020dfe9a, python_sha inchange. REEVALUATION : bridge_verdict RECOVERABLE-LOCAL -> SOTA-OK, parity_level surface -> semantic — dernier gap nomme (fil Hierarchical) ferme ; les 4 paradigmes soft + Hierarchical sont couverts des deux cotes, accords numeriques x2 (Semiring #12616 : Rome degre 0.8 ; Hierarchical : objectif 3 Choco<->CP-SAT, meme config 815 EUR). Asymetries residuelles mineures (enrichissements, pas des gaps) : visualisations matplotlib + nurse scheduling + rendus etudiants cote PY ; CostRegular + SoftAllDifferent cote C#.' - '2026-08-23 : REBASELINE twin-pair CSP-7 Soft -- PR #12616 (lane myia-po-2024:CoursIA, tranche Semiring de #10382). Section 5 Semiring CSP ajoutee au twin C# (7 cellules, notebook 26 -> 33). csharp_sha 44308c7b -> c71f75e0, content_csharp_sha re-atteste. python_sha inchange. Gap residuel : Hierarchical CSP uniquement.' - '2026-08-21 : REBASELINE twin-pair CSP-7 Soft -- PR #12159 (rebased c.1331p345 sur origin/main 2c914708b). Edition des blob shas : csharp_sha 2dc7990e → 44308c7b (cellules idx=17 markdown + idx=18 code ajoutees), content_csharp_sha re-atteste. Le python_sha reste inchange (cote Python non touche). Verdict RECOVERABLE-LOCAL preserve (extension Choco semiring/fuzzy livree cote C# via Fuzzy natif IntVar ∈ [0,1000] + model.min + model.setObjective).' diff --git a/scripts/notebook_tools/twin_pairs.d/csp-7-soft/0035-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/csp-7-soft/0035-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..ba8d1ac07b0 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/csp-7-soft/0035-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: 6f6316259318fef68649910bb81a88e3d6bb945f +csharp_sha: f0839206e38b484bfe1cbcfe57c85801ec5486e7 +content_python_sha: 0c1281f913ce7a1f720e3b115c48ef5afeaf25c445f9248982c97fa96ace2202 +content_csharp_sha: 62ecea3e046c69f5bdd0c945f46c711e55c6bbba7253ac562062968fe98d1d72 diff --git a/scripts/notebook_tools/twin_pairs.d/csp-8-temporal.yaml b/scripts/notebook_tools/twin_pairs.d/csp-8-temporal.yaml index c6595ec781d..f52d1399d48 100644 --- a/scripts/notebook_tools/twin_pairs.d/csp-8-temporal.yaml +++ b/scripts/notebook_tools/twin_pairs.d/csp-8-temporal.yaml @@ -1,7 +1,7 @@ - name: "CSP-8 Temporal" family: Search/Part2-CSP - python: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal.ipynb - csharp: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-8-Temporal-CSharp.ipynb + python: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-Python.ipynb + csharp: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-08-Temporal-CSharp.ipynb parity_level: native-both bridge_verdict: SOTA-OK bridge_verdict_reason: "Python = `ortools.sat.python.cp_model` (Google, Apache-2.0, CP-SAT SOTA temporal : `CpModel()` + `NewIntervalVar` + `AddNoOverlap2D` pour timeline + Allen algebra composition table 13x13=169 relations + `solver.Solve()` pour feasibility d'un calendrier temporel). C# = `Google.OrTools` NuGet (Google, Apache-2.0, meme solveur CP-SAT : `#r \"nuget: Google.OrTools\"` + `using Google.OrTools.Sat;` + `CpModel()` + `AddBoolVar` + `AddNoOverlap`) + `ScottPlot` NuGet 5.0.55 (MIT-license, timeline gantt chart : `#r \"nuget: ScottPlot, 5.0.55\"` + `using ScottPlot;` + `Plot()` render timeline) + `Microsoft.DotNet.Interactive.Formatting` (output kernel). Verdict SOTA-OK (modele owner c.217 PR #10557 MERGED 2026-08-12 tranche 2 lib-vs-lib) : les DEUX cotes utilisent LE MEME solveur Google OR-Tools CP-SAT natif, modelisation CSP temporel (variables d'intervalle, contraintes non-chevauchement, Allen algebra composition), bridge direct sans glue non-SOTA. Substantive : parite bit-identique sur les solutions de planning (meme solveur, meme encoding), seule asymetrie est la convention snake_case (Python) vs PascalCase (C#) + ScottPlot vs matplotlib viz. `parity_level: semantic` preserve : parite sur les concepts cibles (CSP temporel, Allen algebra) malgre l'asymetrie de viz." diff --git a/scripts/notebook_tools/twin_pairs.d/csp-8-temporal/0032-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/csp-8-temporal/0032-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..37cd0882b36 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/csp-8-temporal/0032-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: 3bf277e24cf71c3686c1581fae3b108e8e7eb911 +csharp_sha: b5042c71742132340f798ace6752e18f5e0c2988 +content_python_sha: 4f5a7856c53aeb05acb30206c6283a4451dd5c61c1aa380faa502cc74da5f85b +content_csharp_sha: b768e1b8f0e44d773821410abf7b9576e56898ac32825dbaf04cb7d8c9a4269b diff --git a/scripts/notebook_tools/twin_pairs.d/csp-8-temporal/0033-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/csp-8-temporal/0033-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..f5e08954c59 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/csp-8-temporal/0033-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: 3bf277e24cf71c3686c1581fae3b108e8e7eb911 +csharp_sha: 00ce95da3826ffca536bea12a7505f251754c32d +content_python_sha: 4f5a7856c53aeb05acb30206c6283a4451dd5c61c1aa380faa502cc74da5f85b +content_csharp_sha: 05759d9160a7538199446954159c97405a91413f0ec472b2ed808570aac59588 diff --git a/scripts/notebook_tools/twin_pairs.d/csp-8-temporal/0034-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/csp-8-temporal/0034-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..f74a7e82ba1 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/csp-8-temporal/0034-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: 3bf277e24cf71c3686c1581fae3b108e8e7eb911 +csharp_sha: 620898e28d169e70a4752f35c7b160a33f07f505 +content_python_sha: 4f5a7856c53aeb05acb30206c6283a4451dd5c61c1aa380faa502cc74da5f85b +content_csharp_sha: fc7266b03856c4a43e753d22f20c26e85a20c67435ce7521fc0b0093fdeae503 diff --git a/scripts/notebook_tools/twin_pairs.d/csp-9-distributed.yaml b/scripts/notebook_tools/twin_pairs.d/csp-9-distributed.yaml index d4500a588f4..fc81f6fdbca 100644 --- a/scripts/notebook_tools/twin_pairs.d/csp-9-distributed.yaml +++ b/scripts/notebook_tools/twin_pairs.d/csp-9-distributed.yaml @@ -1,7 +1,7 @@ - name: "CSP-9 Distributed" family: Search/Part2-CSP - python: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed.ipynb - csharp: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-9-Distributed-CSharp.ipynb + python: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-Python.ipynb + csharp: MyIA.AI.Notebooks/Search/Part2-CSP/CSP-09-Distributed-CSharp.ipynb parity_level: semantic bridge_verdict: SOTA-OK bridge_verdict_reason: "Solver-free by design DES DEUX COTES (ABT/AWC/PrivacyPreserving from-scratch, ni OR-Tools ni Z3 ni Choco) : l'algorithme distribue EST le sujet (H1 C#), aucun moteur SOTA a bridger, aucune asymetrie de machinerie. AWC est simplifie et les contraintes privees sont des placeholders ; ces demonstrations ne constituent pas une implementation cryptographique." @@ -13,11 +13,11 @@ - "2026-11-09 (myia-ai-01:CoursIA, PR etudiante #25535) : attestation 0026 apres integration du rendu de TP de Tristan Dhersin dans le SEUL jumeau Python -- exercices 1b-4b digeres en exemples guides 5-8 credites + exercices neufs 1c-4c + Lectures du resultat ; le socle algorithmique (cellules 1 a 26 : ABT, AWC, PrivacyPreserving, benchmark) est byte-identique, et le jumeau C# n'a pas de section exercices equivalente a rebaser. Parite semantic du socle inchangee ; ordinal 0026 pris parce que 0025 est deja reclame par la PR ouverte #25391." - "2026-11-01 (myia-po-2024:CoursIA, #23969 / #23987, PR #23975 puis PR c#) : EDITION DE FOND des DEUX COTES, attestee par 0019 puis par la presente. Le benchmark ABT/AWC de la cellule 25 mesurait une sortie saturee (une seule paire interdite par arete : les deux algorithmes convergeaient au premier tour, colonnes identiques), donc ne comparait rien. Les deux jumeaux portent desormais le MEME dispositif durci : contrainte != par arete, 8 agents / 3 valeurs / densite 0.5, 5 runs, un flux aleatoire par run (seed 42 + run), budget 10000 iterations, cellule d'interpretation re-ecrite depuis le run commite. Asymetrie RESIDUELLE, intrinseque au protocole et documentee dans les deux carnets : `System.Random` et `random.Random` ne produisent pas les memes instances pour une meme graine, donc les deux benchmarks ne concluent pas la meme chose sur leurs tirages respectifs -- le Python lit 3/3 (ABT) contre 1/3 (AWC) sur les instances solubles, le C# lit 3/3 contre 3/3 avec un ecart de cout d'un ordre de grandeur (1753,4 contre 161,0 messages) concentre sur les instances insatisfiables. La parite est de PROTOCOLE, pas de valeurs absolues ; c'est ce que dit la cellule d'interpretation des deux cotes." - "2026-10-30 (myia-po-2024:CoursIA-2, #22251) : attestation 0017, qui remplace 0016 sur le meme contenu. 0016 avait ete ecrite AVANT la fin de la resolution du conflit de fusion : elle attestait le blob pre-fusion du C# (6b50596), alors que la tete de la PR porte le blob resolu (30c0cce). L'organe a donc lu un DRIFT introduit par la PR la ou la seule chose qui avait bouge etait l'ordre des deux gestes. Re-audit firsthand avant re-attestation : chaque jumeau ne differe de `main` que par la MEME ligne de navigation (CSP-9 -> CSP-10 des deux cotes, un remplacement par carnet), aucune cellule de code, sortie ni enonce touchee. Sequence correcte pour la prochaine fois : resoudre la fusion, PUIS --update (cf #8957)." - - "2026-10-30 (myia-po-2024:CoursIA-2, #22251) : re-baseline de forme, cote C# seul. La resolution du conflit de fusion sur `CSP-9-Distributed-CSharp.ipynb` (entete de `main` reformatte en 24 lignes) a conserve la structure propre a `main` et re-lie la ligne de navigation vers le carnet CSP-10-Optimisation-Z3 ; le jumeau Python avait deja recu le meme re-lien le 2026-10-29. Aucune cellule de code, aucune sortie et aucun enonce modifies : la divergence entre les deux jumeaux reste inchangee, seule la symetrie de navigation est restauree. Attestation 0016 (le blob SHA se deplace), pas reparation." + - "2026-10-30 (myia-po-2024:CoursIA-2, #22251) : re-baseline de forme, cote C# seul. La resolution du conflit de fusion sur `CSP-09-Distributed-CSharp.ipynb` (entete de `main` reformatte en 24 lignes) a conserve la structure propre a `main` et re-lie la ligne de navigation vers le carnet CSP-10-Optimisation-Z3-Python ; le jumeau Python avait deja recu le meme re-lien le 2026-10-29. Aucune cellule de code, aucune sortie et aucun enonce modifies : la divergence entre les deux jumeaux reste inchangee, seule la symetrie de navigation est restauree. Attestation 0016 (le blob SHA se deplace), pas reparation." - "2026-10-21 (myia-po-2028:CoursIA, #21770 / tranche 2 #19253) : re-baseline de forme, sans changement de fond. La tranche a aplati `Search/Applications/` en `Search/Part3-Cas-pratiques/` ; ce carnet a suivi mecaniquement pour deux raisons : un lien croise `../Search/Applications/` devenu mort, reancre sur `../Search/Part3-Cas-pratiques/`, et le LF final restaure apres la reecriture JSON. Aucune cellule de code, aucune sortie et aucun enonce ne sont modifies : la divergence entre les deux jumeaux est inchangee." - "Re-baseline 2026-10-14 (hors-flotte:claude-session-16638, #16638) : restauration des accents de la prose markdown (tranche csp #16638, outil canonique restore_accents_canonical.py, invariance strip_accents a 0 finding), cote Python seul ; cote C# byte-identique a main. Aucune cellule de code, sortie ni execution_count touchee. Parite inchangee : attestation (le blob SHA se deplace), pas reparation. --update en DERNIERE operation (cf #8957)." - 'PR #12108 (2026-08-22, reprise #12104) : cote C#, normalisation source_list_missing_newlines (backslash-n manquants sur elements de liste source, 16 cellules NO_AUTO_FIX reprises manuellement) -- drift de forme JSON uniquement, contenu pedagogique et cellules code inchanges.' - - "Socle commun : CSP distribue (DisCSP) -- formalisation, ABT (Asynchronous Backtracking, Yokoo 1992), AWC (Asynchronous Weak-Commitment, Yokoo 1995), Privacy-Preserving CSP, application multi-hopital, benchmark synthetique ABT vs AWC. Le C# se declare explicitement 'binome .NET du CSP-9-Distributed.ipynb' (H1) et cite Yokoo 1992." + - "Socle commun : CSP distribue (DisCSP) -- formalisation, ABT (Asynchronous Backtracking, Yokoo 1992), AWC (Asynchronous Weak-Commitment, Yokoo 1995), Privacy-Preserving CSP, application multi-hopital, benchmark synthetique ABT vs AWC. Le C# se declare explicitement 'binome .NET du CSP-09-Distributed-Python.ipynb' (H1) et cite Yokoo 1992." - "PARITE CELLULAIRE EXACTE : 47 cellules des deux cotes (19 code, 28 markdown) -- le twin le plus proche cellule-a-cellule des 5 residuels. Sections logiques 1-7 identiques ; le C# concentre parfois plusieurs H2 logiques dans une meme cellule markdown (surcomptage brut d'en-tetes a 34) mais la couverture structurelle reelle matche le Python." - "Solver-free by design DES DEUX COTES : ABT/AWC/PrivacyPreserving implementes from-scratch (ni OR-Tools, ni Z3, ni Choco des deux cotes -- verifie par grep des imports/#r). Le H1 C# le dit explicitement : 'l'ABT n'a pas de moteur SOTA centralise, c'est l'algorithme qui est le sujet'. Aucune asymetrie de machinerie." - "Simulation de messages : les deux versions utilisent une file FIFO globale et un traitement sequentiel ; Python importe asyncio mais ne l emploie pas dans cette simulation. Les deux illustrent ABT et une variante simplifiee AWC." diff --git a/scripts/notebook_tools/twin_pairs.d/csp-9-distributed/0039-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/csp-9-distributed/0039-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..31fbd2ad355 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/csp-9-distributed/0039-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: fa2d521b3446951f02664e9686cb44753f0ba4f5 +csharp_sha: 8feed566a244aff462b5e1992a33f49b7938dfd8 +content_python_sha: 9ff73b2f23c4f301dd0b48284c9d22bb7875ad6d30fd478ab8fb42f50a8509dc +content_csharp_sha: ea5968d3c1262d7969154cc7ac256a40a256d6ad9cf58855c959e3f785f1cbc8 diff --git a/scripts/notebook_tools/twin_pairs.d/csp-9-distributed/0040-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/csp-9-distributed/0040-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..cbab3a1203e --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/csp-9-distributed/0040-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: fa2d521b3446951f02664e9686cb44753f0ba4f5 +csharp_sha: cdd94ddf51834f6069e2af29bcdad67e5597dacf +content_python_sha: 9ff73b2f23c4f301dd0b48284c9d22bb7875ad6d30fd478ab8fb42f50a8509dc +content_csharp_sha: b686d6b9754c389e79e4029fe7092df307670eda772008ac7600d2ca2e46bce0 diff --git a/scripts/notebook_tools/twin_pairs.d/frontieres-03-mapf-guarantee-audit/0003-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/frontieres-03-mapf-guarantee-audit/0003-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..246333c6065 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/frontieres-03-mapf-guarantee-audit/0003-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: 3428f7a88047bc7f0ce29b274014378881e489bb +csharp_sha: d2dc013597919294b2bccd6e735174b5b2f804d2 +content_python_sha: a690f208bd2dfd05983eb67cdc96ea26aae72adc6fe77a8b4ea7bce71b251344 +content_csharp_sha: b07af52c55c459c6a8445576585afd57cc49cd75739ad929571bb15915f8d661 diff --git a/scripts/notebook_tools/twin_pairs.d/frontieres-03-mapf-guarantee-audit/0005-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/frontieres-03-mapf-guarantee-audit/0005-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..3e5b7034ce4 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/frontieres-03-mapf-guarantee-audit/0005-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: 3428f7a88047bc7f0ce29b274014378881e489bb +csharp_sha: addce8e42b06adf41ac48f8cc05867780ae595ff +content_python_sha: a690f208bd2dfd05983eb67cdc96ea26aae72adc6fe77a8b4ea7bce71b251344 +content_csharp_sha: 9d5a3157820e3af508c5ef8fbe86e8debef7b3259888d7d9c947247bb7c158e4 diff --git a/scripts/notebook_tools/twin_pairs.d/frontieres-05-covering-arrays-guarantee-audit/0007-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/frontieres-05-covering-arrays-guarantee-audit/0007-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..30bba822b4a --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/frontieres-05-covering-arrays-guarantee-audit/0007-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: 8fcb57a82e64a822fb8a36e772229ca8d6130b41 +csharp_sha: 84c3b65f9176298ce7088366a7bed2e6fb055e64 +content_python_sha: 4c05f21a00d8bc888bd48db8ddabbec8e901263ea041e91b9a67628305df690d +content_csharp_sha: 9cd3e34c6a4aa8403a3307d7fe758555cdfa0324ada3eafe757569d2d11f24ba diff --git a/scripts/notebook_tools/twin_pairs.d/frontieres-05-covering-arrays-guarantee-audit/0009-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/frontieres-05-covering-arrays-guarantee-audit/0009-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..cd51739d28d --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/frontieres-05-covering-arrays-guarantee-audit/0009-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: 0ee3bcf3efbc0686a2399d7e1fe0912a04742e40 +csharp_sha: 84c3b65f9176298ce7088366a7bed2e6fb055e64 +content_python_sha: d88704d091bc613b1b91d4a1907ad0f5135be10cb930cb441991220ac37f523d +content_csharp_sha: 9cd3e34c6a4aa8403a3307d7fe758555cdfa0324ada3eafe757569d2d11f24ba diff --git a/scripts/notebook_tools/twin_pairs.d/frontieres-06-learning-to-branch-generalization-audit/0006-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/frontieres-06-learning-to-branch-generalization-audit/0006-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..ae0bd0d3f23 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/frontieres-06-learning-to-branch-generalization-audit/0006-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: 124db02ca3bc0bcd89c4789711900093243e56f8 +csharp_sha: 5ab54ebd013a44a7b86566874e408e0eb59bb151 +content_python_sha: dfeb5bca189847b3df156445206c8f32e7441463e7bbbba9044df4b08a2abd27 +content_csharp_sha: e72cb004443a0b4e2786e45cc9ed48c10f83d3b4ecc721418fce805d29adf768 diff --git a/scripts/notebook_tools/twin_pairs.d/frontieres-07-salbp-assembly-line-balancing-audit/0006-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/frontieres-07-salbp-assembly-line-balancing-audit/0006-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..28a928c171b --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/frontieres-07-salbp-assembly-line-balancing-audit/0006-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: d7cde54f050f72ee8279b8b187d811166e78ed39 +csharp_sha: 1ab828cb327d8b00625b108fbc4c71df13f2682b +content_python_sha: de79c54a063cc022de0fb02fb6af3505f2c1799ce42c99e5f89b447018f31be0 +content_csharp_sha: 2d255c676d45da64eeaa233a3822c1557232751729bbc18c1a0a998c010e25ae diff --git a/scripts/notebook_tools/twin_pairs.d/frontieres-09-rcpsp-max-feasibility-bounds/0005-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/frontieres-09-rcpsp-max-feasibility-bounds/0005-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..2066e07408d --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/frontieres-09-rcpsp-max-feasibility-bounds/0005-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: bf636731c78a2a22ecf7e51cad58f5051d19bb2e +csharp_sha: 7983229bf8ddfbd2a5d45f55127f9aefc2f1b21c +content_python_sha: aabba8176dbca429eeab37d0180da10ae8e7baf1b8496c12d5143fd1d0cc0d29 +content_csharp_sha: 1efb95fb557b3baa19cdf4121713cfc48d1a49d85432d93e341239b91ad32f19 diff --git a/scripts/notebook_tools/twin_pairs.d/search-05-geneticalgorithms/0063-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/search-05-geneticalgorithms/0063-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..4697d374e88 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/search-05-geneticalgorithms/0063-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: da1e7431eaf3b6acd59abc7b678e9b56478599a7 +csharp_sha: 34003b356c4a639eee0665a11db4b8b5dc68f024 +content_python_sha: 8a5de885eecd4d8707c1c9f1a67a05fdbfe851a59f23141ea5cbc80af955d919 +content_csharp_sha: e47e183d8b7474cfe69c3d3ba1cd8a6c137d77cd3d78e4699e3ead87c088b7a9 diff --git a/scripts/notebook_tools/twin_pairs.d/search-05b-naturalevolutionstrategies/0010-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/search-05b-naturalevolutionstrategies/0010-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..02d506ccc3e --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/search-05b-naturalevolutionstrategies/0010-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: e141e3bd82201f3e26d459c8d43bddf09d77a9c1 +csharp_sha: 3a43821ba250092c66276dd54dd8208767af7dde +content_python_sha: 71c0635ee14cceb8198c019c0bc1404f0377a19639895b53ae23aceaa3afe18b +content_csharp_sha: f6ae5e587fe4db5a9cd2c9c84e6e33a37054a8afe1ac4557b78ebb020e63ea22 diff --git a/scripts/notebook_tools/twin_pairs.d/search-12-pattern-databases/0027-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/search-12-pattern-databases/0027-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..80c5c44ab59 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/search-12-pattern-databases/0027-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: e118c51f17b484b2b90613a8867bc5b869a4c23c +csharp_sha: caea462e210aade0b9928ee17f121973122e98a4 +content_python_sha: 2e0531063d3ff18614c30dfa494f07174c63ca5700594fe08167463e29018d8d +content_csharp_sha: 2eab37990b55448aa09db978ae5d710625f76c9cd140fe6251a10656c457ecd3 diff --git a/scripts/notebook_tools/twin_pairs.d/search-13a-traverser-des-murs/0011-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/search-13a-traverser-des-murs/0011-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..1daac629f04 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/search-13a-traverser-des-murs/0011-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: 39ff47d4840dd2be2c7d1850e6e4a0e6e38bb0f2 +csharp_sha: fa9d6470ba5f06081bd6b63770291ddf5ff83d74 +content_python_sha: ada09cbb9a2af521a3c07b3dccc73476a601573815cc82fb25d8344654c737c1 +content_csharp_sha: 082e66e6133dffc65751055e45f9f85e88a6d4a3bdd9350b91614d19c472cb3c diff --git a/scripts/notebook_tools/twin_pairs.d/search-13a-traverser-des-murs/0012-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/search-13a-traverser-des-murs/0012-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..d68bc2835b6 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/search-13a-traverser-des-murs/0012-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: 39ff47d4840dd2be2c7d1850e6e4a0e6e38bb0f2 +csharp_sha: 68374151647f818853572bf4c97a4e054a441fec +content_python_sha: ada09cbb9a2af521a3c07b3dccc73476a601573815cc82fb25d8344654c737c1 +content_csharp_sha: 86b8bcaae7c9ec225bdaaa7609ef5ebdbd20e44431b3711569884b4733370414 diff --git a/scripts/notebook_tools/twin_pairs.d/sudoku-01-backtracking/0027-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/sudoku-01-backtracking/0027-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..d6d5c1035e6 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/sudoku-01-backtracking/0027-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: dff31b8fd73905d51fc5456c1eb172dfe7d2ee01 +csharp_sha: 7af8e1be7a5211f90f253528b7bec911335e676e +content_python_sha: 503876e00336717457431dc517da5ecdb6d804c134f52f971a7d92e7819e5e31 +content_csharp_sha: 3a56e5dcacf98fbecb6266c42b962e88890b9eed209d3bf63a49bf213d199c6f diff --git a/scripts/notebook_tools/twin_pairs.d/sudoku-06-aima-csp/0024-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/sudoku-06-aima-csp/0024-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..75de73c8c4c --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/sudoku-06-aima-csp/0024-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: 1521a6d2db77236fadfe8d4ae47541b742a68735 +csharp_sha: 3db712e8745c1731bb4393a31520985fc1a2c787 +content_python_sha: 714e9b021b45d7dc9e4e8912b82e73cb1237bf975658d5a79d42983a1cbaead7 +content_csharp_sha: 2f5ff053f8700c58cdaf761bc9a0cb814937602c2134ce2187afcf1b1bf16f73 diff --git a/scripts/notebook_tools/twin_pairs.d/sudoku-07-norvig/0035-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/sudoku-07-norvig/0035-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..2f9ea6a6777 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/sudoku-07-norvig/0035-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: 646eec18c0dae1e9f11dbfb4c33b562919b69870 +csharp_sha: 70201338f89d234ac3e7bd12e37177f202d71ad7 +content_python_sha: 325db0141f983d03b8a526561ab5aa026e086133670967edec5adfec61af1b9e +content_csharp_sha: e5ac77ebc0db1824b8eced31716cddff718aaebbda3856f0eed63314b2f70f9e diff --git a/scripts/notebook_tools/twin_pairs.d/sudoku-08-humanstrategies/0019-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/sudoku-08-humanstrategies/0019-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..0115db0aba7 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/sudoku-08-humanstrategies/0019-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: bfe65b866672d97d6a049653a0944aa1f46a925c +csharp_sha: 91afd7ffa2e7b2457c1cb0f0a3a92ec6913ab18d +content_python_sha: f7714138a9422e3972412a4477aa3762dbc75b392ae237ec5a2128a6b93ecca7 +content_csharp_sha: 31a381be99596f406387d542210269f1edf7bc9a7766054b4b92b8847d97bf4c diff --git a/scripts/notebook_tools/twin_pairs.d/sudoku-08-humanstrategies/0020-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/sudoku-08-humanstrategies/0020-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..c72ae3e9e0f --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/sudoku-08-humanstrategies/0020-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: 11e314315d53e54bba4952e3bd6ce771ca1d144d +csharp_sha: 91afd7ffa2e7b2457c1cb0f0a3a92ec6913ab18d +content_python_sha: 977a5bfc43046f12d445ab481b56a5437567d2f589a1a2c671bab81b1e9a29eb +content_csharp_sha: 31a381be99596f406387d542210269f1edf7bc9a7766054b4b92b8847d97bf4c diff --git a/scripts/notebook_tools/twin_pairs.d/sudoku-09-graphcoloring/0030-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/sudoku-09-graphcoloring/0030-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..2092f5c4d42 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/sudoku-09-graphcoloring/0030-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: 24c51f9f0125f7d618c7e9df34925352405609e6 +csharp_sha: 36d5741bdb7f350798f6c4fe3500a6decab188b3 +content_python_sha: 09a84994246b03f891ecb4de184f86a8ffce59c2901bb646566625ab3461d8ba +content_csharp_sha: f78054ff06ae10deeacc58ae822aa8b723a8a4427c16ca8cdc2686f26d1b5a7b diff --git a/scripts/notebook_tools/twin_pairs.d/sudoku-10-ortools/0028-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/sudoku-10-ortools/0028-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..290d064018e --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/sudoku-10-ortools/0028-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: 2e1d360c54caee38715f19fae8bd7e15bf11b428 +csharp_sha: b070b4d326a9d10d903116d313adcf8f1275689b +content_python_sha: 3419100aeefad82ec5d31df27767b7b5154f6a6ea1e89475d9108090f38c7438 +content_csharp_sha: 769f66ed78c69e60573ea5923493a0cbc2205e1bbf7bf738903e1fed62e56582 diff --git a/scripts/notebook_tools/twin_pairs.d/sudoku-11-choco/0027-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/sudoku-11-choco/0027-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..cb57848251f --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/sudoku-11-choco/0027-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: 052bafbaf8702959e217adbec0e3fed656d96e9b +csharp_sha: 47f6ab86d4d3eb6b59331223fef81daea791363a +content_python_sha: 7d129ad2ab56d64412fea793e2d5384f14d9ab5c4c28248f98734b135cdbc624 +content_csharp_sha: a1f5caf686bf2d7165cf9c29e5ecef33354c853b8b1bd932830904eb9edc22d0 diff --git a/scripts/notebook_tools/twin_pairs.d/sudoku-12-z3/0026-2026-11-24-myia-po-2023-CoursIA.yaml b/scripts/notebook_tools/twin_pairs.d/sudoku-12-z3/0026-2026-11-24-myia-po-2023-CoursIA.yaml new file mode 100644 index 00000000000..21f593f4089 --- /dev/null +++ b/scripts/notebook_tools/twin_pairs.d/sudoku-12-z3/0026-2026-11-24-myia-po-2023-CoursIA.yaml @@ -0,0 +1,6 @@ +date: '2026-11-24' +by: myia-po-2023:CoursIA +python_sha: d4424bd7310c9cbbea5fbb63d62674946a336677 +csharp_sha: 016584a7dfecb3e270dcf8adb2bfd91c881205a5 +content_python_sha: b0035460fe52c9e57694ce49deaf89d938d6c8a54324dc780703b79f3902c3cc +content_csharp_sha: 5c8ea13e7fc04197331aaf3bb9a9cb19bba616daaa81e3cac9c04c8e9f25114a diff --git a/scripts/notebook_tools/zero_pad_series.json b/scripts/notebook_tools/zero_pad_series.json index 0b733993e73..5d1974de27e 100644 --- a/scripts/notebook_tools/zero_pad_series.json +++ b/scripts/notebook_tools/zero_pad_series.json @@ -17,7 +17,6 @@ "SC -- SymbolicAI/SmartContracts/06-Real-World (6 carnets, tous >= 10)" ], "would_red_on_activation": [ - "CSP -- Search/Part2-CSP (19 violations ; aucun zero de tete)", "SL -- SymbolicAI/SymbolicLearning (17 violations ; aucun zero de tete -- la migration est portee par la PR #27309, ouverte)", "ICT -- IIT/ICT-Series (2 violations ; 9 fichiers a zero de tete : la renumerotation 13 -> 09 / 13b -> 09b est en cours, tranches G1/G2/G3 de l'EPIC #20298)", "SC -- SymbolicAI/SmartContracts/02-Solidity-Advanced (1 violation ; 5 fichiers a zero de tete)" @@ -52,7 +51,7 @@ { "series": "Search", "dir": "MyIA.AI.Notebooks/Search/Part1-Foundations", - "note": "31 noms zero-pades. Part2-CSP (18 violations) et Part4-Metaheuristics sont des series DISTINCTES, traitees separement -- c'est pourquoi le repertoire declare est le sous-dossier et non Search/." + "note": "31 noms zero-pades. Part2-CSP et Part4-Metaheuristics sont des series DISTINCTES, traitees separement -- c'est pourquoi le repertoire declare est le sous-dossier et non Search/. Part2-CSP est declaree depuis la tranche zero-pad de #16231." }, { "series": "MGS", @@ -74,6 +73,11 @@ "dir": "MyIA.AI.Notebooks/Probas/DecisionTheory/DecPyMC", "note": "8 noms zero-pades (01..07 migres par la tranche zero-pad DecPyMC de l'EPIC #12933, 08 deja a deux chiffres), aucun numero a un chiffre. Serie Python jumelle de DecInfer (meme arc decisionnel, kernels differents). Le capstone actuariel reste DecPyMC-08 ; la sous-serie Actuariat/ est un repertoire distinct, hors de ce perimetre." }, + { + "series": "CSP", + "dir": "MyIA.AI.Notebooks/Search/Part2-CSP", + "note": "Tranche zero-pad de l'EPIC #12933 (#16231), pilotee par rename_notebooks.py : 19 noms zero-pades (01..09), 3 numeros a deux chiffres (10). Les jumeaux Python prennent le suffixe -Python ; le compagnon Rust CSP-04-Scheduling-Rust est pade sans autre changement de nom." + }, { "series": "Tweety", "dir": "MyIA.AI.Notebooks/SymbolicAI/Tweety", diff --git a/scripts/tests/test_check_series_zero_pad.py b/scripts/tests/test_check_series_zero_pad.py index 510a0856170..982a6f7d2a7 100644 --- a/scripts/tests/test_check_series_zero_pad.py +++ b/scripts/tests/test_check_series_zero_pad.py @@ -272,7 +272,7 @@ def test_json_serie_unique_porte_encore_les_cles_historiques(series: Path, def test_list_series(capsys): assert main(["--list-series"]) == 0 lines = [l for l in capsys.readouterr().out.splitlines() if l.strip()] - assert len(lines) == len(load_registry()) == 22 + assert len(lines) == len(load_registry()) == 23 assert any(l.startswith("GameTheory\t") for l in lines) diff --git a/slides/01-introduction/slides.md b/slides/01-introduction/slides.md index b931949688b..a07d8e87694 100644 --- a/slides/01-introduction/slides.md +++ b/slides/01-introduction/slides.md @@ -767,7 +767,7 @@ Le catalogue généré du dépôt (`COURSE_CATALOG.generated.*`) fait foi pour l | Famille | Notebook d'entrée | Domaines principaux | |---|---|---| | Search/Part1-Foundations | Search-01-StateSpace | exploration informée/non informée | -| Search/Part2-CSP | CSP-1-Fundamentals | satisfaction de contraintes | +| Search/Part2-CSP | CSP-01-Fundamentals-Python | satisfaction de contraintes | | Search/Part3-Cas-pratiques | App-01-NQueens-Python | cas d'usage (N-Queens, Send+More=Money, planification) | | Sudoku | Sudoku-01-Backtracking-Python | backtracking, propagation, OR-Tools | | SymbolicAI | Z3-Python-01-Introduction | SMT, argumentation, Lean 4, smart-contracts | diff --git a/slides/02-resolution-problemes/slides.md b/slides/02-resolution-problemes/slides.md index e35cc5ed367..26ee5e6cca9 100644 --- a/slides/02-resolution-problemes/slides.md +++ b/slides/02-resolution-problemes/slides.md @@ -1726,7 +1726,7 @@ layout: section - **Décomposition en sous-arbres** : pratique et courante, exploite les sous-ensembles connexes indépendants - **Symétrie des valeurs** : éliminer les solutions symmetriques réduit l'espace de recherche -**Corpus** — backtracking / forward-checking / propagation dans [`CSP-1-Fundamentals.ipynb`](https://github.com/jsboige/CoursIA/blob/main/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-1-Fundamentals.ipynb) (coloriage Australie, cryptarithmes). Heuristiques MRV / LCV et AC-3 : [`CSP-2-Consistency.ipynb`](https://github.com/jsboige/CoursIA/blob/main/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-2-Consistency.ipynb). Applications N-Queens / Send+More=Money / planification : [`App-01-NQueens-Python`](https://github.com/jsboige/CoursIA/blob/main/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-01-NQueens-Python.ipynb) et les autres cas pratiques dans `Search/Part3-Cas-pratiques/`. Contexte ludique : [`Sudoku-01-Backtracking-Python.ipynb`](https://github.com/jsboige/CoursIA/blob/main/MyIA.AI.Notebooks/Sudoku/Sudoku-01-Backtracking-Python.ipynb). +**Corpus** — backtracking / forward-checking / propagation dans [`CSP-01-Fundamentals-Python.ipynb`](https://github.com/jsboige/CoursIA/blob/main/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-01-Fundamentals-Python.ipynb) (coloriage Australie, cryptarithmes). Heuristiques MRV / LCV et AC-3 : [`CSP-02-Consistency-Python.ipynb`](https://github.com/jsboige/CoursIA/blob/main/MyIA.AI.Notebooks/Search/Part2-CSP/CSP-02-Consistency-Python.ipynb). Applications N-Queens / Send+More=Money / planification : [`App-01-NQueens-Python`](https://github.com/jsboige/CoursIA/blob/main/MyIA.AI.Notebooks/Search/Part3-Cas-pratiques/App-01-NQueens-Python.ipynb) et les autres cas pratiques dans `Search/Part3-Cas-pratiques/`. Contexte ludique : [`Sudoku-01-Backtracking-Python.ipynb`](https://github.com/jsboige/CoursIA/blob/main/MyIA.AI.Notebooks/Sudoku/Sudoku-01-Backtracking-Python.ipynb). --- layout: section diff --git a/slides/S3-acculturation/slides.md b/slides/S3-acculturation/slides.md index f892922c038..edc3abfcc7a 100644 --- a/slides/S3-acculturation/slides.md +++ b/slides/S3-acculturation/slides.md @@ -775,7 +775,7 @@ layout: default -

Références : CSP-1-Fundamentals.ipynb, CSP-2-Consistency.ipynb.

+

Références : CSP-01-Fundamentals-Python.ipynb, CSP-02-Consistency-Python.ipynb.

--- layout: section ---