Flight scheduling optimization using Genetic Algorithm variants and other algorithms.
Project description
Fliscopt
FLIght SCheduling OPTimization ๐ซ or fliscopt is a simple optimization library for flight scheduling and related problems in the discrete domain. The library supports plotting, asynchronous multiprocessing, and unimodal optimization benchmarks. The following repository contains code for the paper "XYZ". The experiments were performed in PyPy3.7 and CPython 3.8.10.
Following algorithms have been implemented and test as of date:
Algorithms:
- Hill Climbing
- Random Search
- Simulated Annealing
- Genetic Algorithm
- Genetic Algorithm in Reverse Mode
- Genetic Algorithm with Reversals
- Genetic Algorithm with Random Search as a Reversal/Reverse Process
- Iterated Chaining
Getting Started
Install the library using pip:
pip install fliscopt
Or for unreleased versions:
pip install 'git+https://github.com/Agrover112/fliscopt/fliscopt@branchname
Or for development:
git clone https://github.com/Agrover112/fliscopt.git
cd fliscopt
pip install .
Download the flights.txt file from the following link and add it to a data/ directory within your parent directory.
Checkout out the examples in the examples directory or run in Google Collab
For PyPy users
The instructions for setup are mentioned in the setup directory. Alternatively, you can set up using this bash script. A requirements file is provided just in case. The script creates and activates a PyPy Conda environment with all libraries and dependencies.
cd ./setup.sh
source setup.sh
Then install using:
pypy -mpip install fliscopt
Testing
After adding any new algorithm, you can run the tests to check if the code is working properly.
./run_tests.sh
Results
Experimental Results
Results were compared by using the same seeds. The following table shows the results of the experiments. (Will be shortly added)
Accessing results
After running the experiments, the results are stored in the results directory. The results are stored in the following format in subdirectories:
.
โโโ multi_proc
โ โโโ ackley_N2
โ โ โโโ genetic_algorithm_results.csv
โ โ โโโ genetic_algorithm_reversed_results.csv
โ โ โโโ genetic_algorithm_with_reversals_results.csv
โ โ โโโ hill_climb_results.csv
โ โ โโโ random_search_results.csv
โ โ โโโ simulated_annealing_results.csv
โ โโโ booth/...
| |
| |
โ โโโ zakharov
โ โโโ genetic_algorithm_results.csv
โ โโโ genetic_algorithm_reversed_results
โ โโโ genetic_algorithm_with_reversals_results.csv
โ โโโ random_search_results.csv
โ โโโ simulated_annealing_results.csv
โโโ plots
โ โโโ ackley_N2
โ โโโ fitness_function
โ โ โโโ hill_climb.png
โ โ โโโ random_search.png
โ โโโ flight_scheduling
โ โ โโโ simulated_annealing.png
โ โ โโโ sol_chaining.png
โ โ โโโ sol_chaining_a1.png
โ โโโ griewank
References
Read the following for detailed understanding of our project.
Contributing Guidelines
Refer Contributing.md and Project Board for mode details. This repository follows conventional commits!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file fliscopt-0.3.0.tar.gz
.
File metadata
- Download URL: fliscopt-0.3.0.tar.gz
- Upload date:
- Size: 19.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a0ef76b3fd1762c79721fb420c4673ac0b93ded3955255fd78f00d69698595e |
|
MD5 | 4c9f0c4597a1c14c95abecc53e7b4899 |
|
BLAKE2b-256 | 5d5887006fea43318052b7b96e58117482656315415c2a9ac8ecce64148c3979 |
File details
Details for the file fliscopt-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: fliscopt-0.3.0-py3-none-any.whl
- Upload date:
- Size: 24.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d85b9152ec4bada14b1442a33d2b0bf19431d2da7c4ed15bae9b5d6cf0bfea67 |
|
MD5 | bf20913e7b7b1f508eea64fa0353e25f |
|
BLAKE2b-256 | 3b92b12bc09689410495ab57f01404e392b158f4b26124b4aff7ce42c80327fc |