From dd7dc5e2359020e3b707d922abab153e3d3dd0d6 Mon Sep 17 00:00:00 2001
From: Abhishek Racharla <abhishek.racharla@stud.th-deg.de>
Date: Fri, 28 Feb 2025 13:27:14 +0100
Subject: [PATCH] Edit VRE_VQE_QAOA.ipynb

---
 VRE_VQE_QAOA.ipynb | 47 +++++++++++++++++++++++-----------------------
 1 file changed, 24 insertions(+), 23 deletions(-)

diff --git a/VRE_VQE_QAOA.ipynb b/VRE_VQE_QAOA.ipynb
index 681deb8..bc04379 100644
--- a/VRE_VQE_QAOA.ipynb
+++ b/VRE_VQE_QAOA.ipynb
@@ -75,29 +75,30 @@
     "$$\n",
     "H_{\\text{VRP}} = \\sum_{k} \\sum_{i} \\sum_{j} d_{i,j} \\cdot x_{i,j,k}\n",
     "$$\n",
-    "\n",
-    "### **Constraints**\n",
-    "1️⃣ **Each location is visited exactly once (except the depot):**\n",
-    "$$\n",
-    "\\sum_{k} \\sum_{j} x_{i,j,k} = 1, \\quad \\forall i \\neq 0\n",
-    "$$\n",
-    "\n",
-    "2️⃣ **Each vehicle starts and ends at the depot:**\n",
-    "$$\n",
-    "\\sum_{j} x_{0,j,k} = 1, \\quad \\forall k, \\quad \\sum_{i} x_{i,0,k} = 1, \\quad \\forall k\n",
-    "$$\n",
-    "\n",
-    "3️⃣ **Vehicle route continuity (no teleportation):**\n",
-    "$$\n",
-    "\\sum_{j} x_{i,j,k} - \\sum_{j} x_{j,i,k} = 0, \\quad \\forall i, k\n",
-    "$$\n",
-    "\n",
-    "4️⃣ **(Optional) Vehicle capacity constraint:**\n",
-    "If each location \\( i \\) has a demand \\( q_i \\) and the vehicle has capacity \\( C_k \\), then:\n",
-    "$$\n",
-    "\\sum_{i} q_i \\sum_{j} x_{i,j,k} \\leq C_k, \\quad \\forall k\n",
-    "$$\n",
-    "This ensures that no vehicle exceeds its allowed load.\n",
+    "\n",### 📌 Constraints
+
+1️⃣ **Each location is visited exactly once (except the depot):**
+$$
+\sum_{k} \sum_{j} x_{i,j,k} = 1, \quad \forall i \neq 0
+$$
+
+2️⃣ **Each vehicle starts and ends at the depot:**
+$$
+\sum_{j} x_{0,j,k} = 1, \quad \forall k, \quad \sum_{i} x_{i,0,k} = 1, \quad \forall k
+$$
+
+3️⃣ **Vehicle route continuity (no teleportation):**
+$$
+\sum_{j} x_{i,j,k} - \sum_{j} x_{j,i,k} = 0, \quad \forall i, k
+$$
+
+4️⃣ **(Optional) Vehicle capacity constraint:**
+If each location \( i \) has a demand \( q_i \) and the vehicle has capacity \( C_k \), then:
+$$
+\sum_{i} q_i \sum_{j} x_{i,j,k} \leq C_k, \quad \forall k
+$$
+This ensures that no vehicle exceeds its allowed load.
+
     "\n",
     "---\n",
     "\n",
-- 
GitLab