e-ride-minimax
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.0%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: darkoradakovic
- Language: Python
- Default Branch: main
- Size: 60.5 KB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
E-Ride-Minimax

Keywords: AI in smart cities, climate change, decarbonizing, energy, game theory, Minimax, ride-sharing EV, smart economy, smart environment, smart mobility, traffic, transportation
Paper publication: Enriching Smart Cities by Optimizing Electric Vehicle Ride-Sharing through Game Theory
1. Environmental Science and Management Ph.D. Program, Montclair State University, NJ, USA
2. Department of Computer Science, Montclair State University, NJ, USA
3. Clean Energy and Sustainability Analytics Center (CESAC), Montclair State University, NJ, USA
(radakovicd1 | singha2 | vardea | lalp)@montclair.edu
ORCID ID: 0000-0002-3170-2510 (Varde)
This MiniMax E-Ride sharing game allows two players to compete for passengers in a grid adapting the Minimax algorithm, treating EV ride-sharing companies as players. These players can use different strategies as described below. We hypothesize that one player choosing its next move via total passenger-travel distance (longer the distance, larger the profit); and another player via battery usage (ratio of total passenger-travel distance to vehicle-passenger distance: optimizing this ratio enables more travel without recharging.
One can manipulate the number of passengers, the change in passenger numbers (decreasing, increasing or stable), the grid size (default is 5x10 cells), the player strategy mode, the player starting location, the number of simulations and whether to enable MiniMax. You can also select if you wish to save (as a pickle file) and/or plot the Scores and Battery usage (as JPEG).
Google Colab script
Ready to use Google Colab script
Quick Start Examples
bash
git clone https://github.com/darkoradakovic/E-Ride-Minimax
cd E-Ride-Minimax
pip install -r requirements.txt # install
Inference
bash
python e_ride_competition.py --sim 100 --save
--ptot # number of passengers (minimum ±50)
--size # size of matrix (x by y)
--change # chose passengers numbers change: 'falling', 'stable', 'increasing'
--minimax # decide if minimax algorithm is turned on for player2
--strategy1 # choose from: '1' or '3'. (see below for overview)
--strategy2 # choose from: '2', '4', '5' or '6'
--last_loc1 # Player1 starting location
--last_loc2 # Player2 starting location
--sim # Simulation total
--save # save results to pickle file
STRATEGIES OVERVIEW
- [Strategy 1] 'basic' [For player 1] find cell with most passengers, regardless their distance, chooses first passenger from list in this cell (old taxis without app strategy, by going to busy areas)
- [Strategy 2] 'low' [For player 2] find closest passenger lowest distance, disregarding profit
- [Strategy 3] 'passenger'[For player 1] find longest passenger start end (highest profit)
- [Strategy 4] 'distance_ratio' [For player 2] choosing score of passengers over battery
- [Strategy 5] 'battery' [For player 2] This method explores a passenger combination of the highest value and the third highest value (assuming that the second highest value will be chosen by the other player in the next turn), it decides whether to go first to the highest value or to the third highest values for the most optimal route.
- [Strategy 6] 'passenger2' [For player 2] always choosing highest score, then look at closest if more than one -> BEST RESULTS
Copyright (c) 2022 Montclair State University
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Owner
- Name: Darko Radakovic
- Login: darkoradakovic
- Kind: user
- Location: Montclair, NJ
- Company: @montclairstateuniversity
- Repositories: 2
- Profile: https://github.com/darkoradakovic
PhD Candidate at Montclair State University. Working on NASA's Arctic-Boreal Vulnerability Experiment (ABoVE) to investigate Arctic tundra vegetation.
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Radakovic"
given-names: "Darko"
- family-names: "Singh"
given-names: "Anuradha"
- family-names: "Varde"
given-names: "Aparna S."
orcid: "https://orcid.org/0000-0002-3170-2510"
- family-names: "Lal"
given-names: "Pankaj"
title: "Enriching Smart Cities by Optimizing Electric Vehicle Ride-Sharing through Game Theory"
version: 2.0.4
doi: xxxxx
date-released: 2022-xx-xx
url: "https://github.com/darkoradakovic/E-Ride-Minimax/"
preferred-citation:
type: article
authors:
- family-names: "Radakovic"
given-names: "Darko"
- family-names: "Singh"
given-names: "Anuradha"
- family-names: "Varde"
given-names: "Aparna S."
orcid: "https://orcid.org/0000-0002-3170-2510"
- family-names: "Lal"
given-names: "Pankaj"
doi: "10.0000/00000"
journal: "IEEE"
month: 9
start: 1 # First page number
end: 5 # Last page number
title: "Enriching Smart Cities by Optimizing Electric Vehicle Ride-Sharing through Game Theory"
issue: 1
volume: 1
year: 2022
GitHub Events
Total
Last Year
Dependencies
- Pillow >=9.0.1
- matplotlib >=3.2.2
- numpy >=1.22.3
- pandas >=1.1.4
- statistics1.0.3.5 *