Skip to content

vale1410/car-sequencing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CNF Translations for the Car-Sequencing Problem

CNF encoder/decoder for car-sequencing problems from http://csplib.org/Problems/prob001/

The linux 64bit binaries are available here. Source code is available on request.

Usage of the Programs

Version info:

./car_encode -ver

Help:

./car_encode -help

To generate models, e.g. model E3 with symmetry breaking:

./car_encode -f hard/p00.txt -e3 -sym

If the one needs to study the solution there is a decoder that can be used with a generated symbol table. See the following example:

./car_encode -f easy/test.txt -e3 -symbols symbols.txt > problem.cnf
lingeling problem.cnf > solution.txt
./car_decode -symbols symbols.txt -solution solution.txt

which should give the output as on the CSPLib website:

4	  1 0 1 0 0 
3	  0 1 0 1 0 
2	  0 1 0 0 1 
4	  1 0 1 0 0 
3	  0 1 0 1 0 
5	  1 1 0 0 0 
1	  0 0 0 1 0 
5	  1 1 0 0 0 
2	  0 1 0 0 1 
0	  1 0 1 1 0 

About

CNF generator for car-sequencing problems from http://csplib.org/Problems/prob001/

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published