This is a template for implementing project based on Gurobi and Python.
The purpose of files and folders are as follows.
config.py
saves global variables.run.py
arranges.py
files such that the project can be implemented on a remote machine.instance.py
generates experimental instances withRandomDataGenerator
and saves a instance in classInstance
. All the instances can be saved in theinstances
folder.solver.py
solves instances with Gurobi solver, and there may be a counterpart.py
file which including your specialized algorithm.solution.py
saves Gurobi solutions with classGurobiSolution
. All the solutions can be saved in thesolutions
folder.io_operator.py
processing either file writing or reading works.unit_test.py
test validity ofGurobiSolution
. SinceGurobiSolution
is an inheritance fromInstance
,GurobiSolution
contains all the information for validity checking.visualizer.py
visualizes the solutions.notify.py
provides notification pushing services, e.g., bark and pushover, such that your are notified once all the works inrun.py
are finished.