pymzn.Gecode

class pymzn.Gecode(mzn_path='mzn-gecode', fzn_path='fzn-gecode', globals_dir='gecode')

Interface to the Gecode solver.

Parameters:
  • mzn_path (str) – The path to the mzn-gecode executable.
  • fzn_path (str) – The path to the fzn-gecode executable.
  • globals_dir (str) – The path to the directory for global included files.

Methods

solve(mzn_file, *dzn_files[, data, include, …]) Solve a MiniZinc/FlatZinc problem with Gecode.