Airline Scheduling Crew Pairing
- Navigate to the
ASCP/PairingCreater
directory. - Run
./gradlew build
to generate thecrew-pairing.jar
file inbuild/libs/
. - Move
crew-pairing.jar
to theASCP/PairingCreater/
directory. - Use the following command to execute OptaPlanner:
java -jar crew-pairing.jar data/ crewpairing/ {datasize} input_{datasize}.xlsx
- If an initial set (
output.xlsx
) exists, use:
java -jar crew-pairing.jar data/ crewpairing/ {datasize} input_{datasize}.xlsx output.xlsx
- Ensure that the
output
folder is added todata/crewpairing/
.
- Add an
input
file to thedataset
folder within the project root directory. - Run
REINFORCE.py
to train the model. - More details on ReinforcementLearning/README.md
- Enter your local or virtual environment (Python 3.8 or higher).
- Run the following command:
pip install -r requirements.txt
Refer to the Download page for PyTorch installation.
This project follows the licensing guidelines applicable to OptaPlanner and any relevant dependencies.
The following conventions should be adhered to when working on this repository.
feat
: Add a new featurefix
: Fix a bugdocs
: Modify documentationstyle
: Code formatting, missing semi-colons, etc. (no code changes)refactor
: Refactor codetest
: Add or refactor tests; no production code changeschore
: Modify build tasks, package manager configurations, etc.
Icon | Code | Description |
---|---|---|
🎨 | :art | Improve structure/format of code |
⚡ | :zap | Improve performance |
🔥 | :fire | Remove code or files |
🐛 | :bug | Fix a bug |
🚑 | :ambulance | Critical hotfix |
✨ | :sparkles | Introduce new features |
💄 | :lipstick | Add/update UI or style files |
⏪ | :rewind | Revert changes |
🔀 | :twisted_rightwards_arrows | Merge branches |
💡 | :bulb | Add/update comments |
🗃 | :card_file_box | Modify database related files |