Constraint Solver Howto
From UniTimeWiki
Three step procedure to run the course timetabling solver alone (no web services)
- Download the most recent distribution, some configuration files, and some instances.
- I will assume later on that:
- you extracted the main distribution into unitime,
- that you copied the instances and configuration files to a new subdirectory unitime/instances.
- One of the instances you downloaded is pu-fal07-ms.xml. One of the configuration files is default.cfg.
- Change into the directory "unitime/instances"
- Execute
java -Xmx512m -jar ../solver/cpsolver-all-1.1.jar default.cfg pu-fal07-ms.xml ./output/pu-fal.
I recommend using sun java. I had some problems with gij and manifests.
You should get output similar to the following:
[you@yourMachine:instances] java -Xmx512m -jar ../solver/cpsolver-all-1.1.jar default.cfg pu-fal07-ms.xml ./output/pu-fal Output folder: ./output/pu-fal/090617_134553 Reading pu-fal07-ms.xml ... : Creating rooms ... : ................................................ Creating variables ... : ................................................ Creating constraints ... : ................................................ Loading students ... : ................................................ Initial sectioning ... : ................................................ Computing jenrl ... : ................................................ Purging invalid placements .: ................................................ Creating initial assignment : ................................................ Done : ................................................ Initializing solver : Searching for initial soluti: ................................................ Done : ................................................ moving students ... : ................................................ moving students ... : ................................................ moving students ... : Unassigned variables: 1
On my machine, a dual core 2.66Ghz Intel CPU, it takes approximately 30 min to finish.
-- by Leo Lopes

