Where is the AI?
Genetic programming
A calendar is a tree that evolves. The code is in programa_genetico/ and uses the DEAP library.
Demo · Fair travel between teams
La IA (programación genética) busca calendarios donde el viaje sea corto y parejo. ¿Quieres tus propios equipos? Usa la guía de 5 pasos.
Press the button to run the engine and see the best calendar tree.
It takes a few seconds.
Note: the thesis version didn't beat a random calendar. The new engine did, in preliminary tests. For a school project, that's an advantage: you have a baseline and an improvement that you can measure.
| Date | Local | Away |
|---|---|---|
| 11/05/2026 | PIT | ARI |
| 11/05/2026 | WAS | CHA |
| 12/05/2026 | PIT | ARI |
| 12/05/2026 | WAS | CHA |
| 13/05/2026 | PIT | ARI |
| 13/05/2026 | WAS | CHA |
| 14/05/2026 | ARI | WAS |
| 14/05/2026 | PIT | CHA |
| 16/05/2026 | ARI | WAS |
| 16/05/2026 | PIT | CHA |
| 18/05/2026 | CHA | WAS |
| 18/05/2026 | ARI | PIT |
The answers that you will be asked for in class.
Where is the AI?
A calendar is a tree that evolves. The code is in programa_genetico/ and uses the DEAP library.
What patterns do you use?
Django separates model, view, and template. ProgramaFacadeView It hides the engine behind a single input.
How do I adapt it?
Teams and coordinates are recorded in the guide. An idea for your team: use the Strategy pattern for the "fair trip" measure.
Can I use it?
You can modify it. Keep the credit and cite the thesis. How to cite
git clone https://github.com/lespam/koza-ttp
cd koza-ttp
pip install -r requirements.txt
python manage.py migrate
python manage.py runserver
Copy this question and paste it into the wizard you use, along with the programa_genetico/programagenetico.py file.
Explain to me step-by-step how this genetic program creates and evaluates a schedule. Then tell me what you would change so that the measure of "fair travel" is the difference between the team that travels the most and the one that travels the least.
Check what it tells you against the code. AI can get it wrong.