From 4b02b762d285e74a57771782beed1fddaf6ad759 Mon Sep 17 00:00:00 2001 From: Nadia-pmz <nadia.pmz@gmail.com> Date: Thu, 5 Dec 2024 12:57:42 +0100 Subject: [PATCH] Rename variable Budget to extension_max_no for consistency with LP --- content/GA_2_5/old_Analysis_GA_solution.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/GA_2_5/old_Analysis_GA_solution.ipynb b/content/GA_2_5/old_Analysis_GA_solution.ipynb index f5d4ccf3..0466202d 100644 --- a/content/GA_2_5/old_Analysis_GA_solution.ipynb +++ b/content/GA_2_5/old_Analysis_GA_solution.ipynb @@ -668,11 +668,11 @@ }, "outputs": [], "source": [ - "Budget = 40\n", + "extension_max_no = 40\n", "pop_size = 10\n", "\n", "# initiate an instance of the problem with max number of selected links as budget constraint\n", - "problem = NDP(budget=Budget)\n", + "problem = NDP(budget=extension_max_no)\n", "\n", "# initiate the GA with parameters appropriate for binary variables\n", "method = GA(pop_size=pop_size,\n", -- GitLab