One Knight Stands against Joker
Alireza Soroudi, PhD
Lead Data Scientist @ bluecrux || SMIEEE || Optimization expert in Supply chain management|| Healthcare management || Lab Digitalization || Power and Energy systems || Developer || Author / Speaker || (views are mine)
In Gotham, Joker's nabbed important spots. Batman's job? From one spot, he can move like a Knight, trying to grab as many squares as possible. Can the Dark Knight outsmart Joker's chaos? Let's find out!
Here is the map of the Gotham. The green cells area controlled by Joker.
Problem Formulation:
Let's assume the starting point of Natman is at Cell 27 !
Batman decided to use Pyomo for maximizing his success.
Here is the Pyomo code
Results:
The starting point is important , Le't assume Batman starts at cell 27.
The result is 14 cells.
Let's change the starting point and check the impact. 15 cells are rescued if Batman starts at cell 20
Let's change the starting point and check the impact. 15 cells are rescued if Batman starts at cell 13
How about if Joker changes it's locations ?
Let's start from cell 7. It will capture 14 cells.
The code is available on github.
Lead Data Scientist @ bluecrux || SMIEEE || Optimization expert in Supply chain management|| Healthcare management || Lab Digitalization || Power and Energy systems || Developer || Author / Speaker || (views are mine)
9 个月github link https://github.com/OptimizationExpert/Pyomo/blob/main/One_Knight_Stansd_.ipynb