gecoder-with-gecode 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +6 -0
- data/README +1 -1
- data/THANKS +18 -0
- data/example/equation_system.rb +3 -1
- data/example/magic_sequence.rb +3 -1
- data/example/queens.rb +3 -1
- data/example/send_more_money.rb +24 -30
- data/example/send_most_money.rb +15 -26
- data/example/square_tiling.rb +3 -1
- data/example/sudoku-set.rb +3 -1
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/LICENSE +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/Makefile.contribs +0 -0
- data/ext/gecode-2.2.0/Makefile.dep +8056 -0
- data/ext/gecode-2.2.0/Makefile.in +1590 -0
- data/ext/gecode-2.2.0/changelog.in +2698 -0
- data/ext/gecode-2.2.0/configure +13112 -0
- data/ext/gecode-2.2.0/configure.ac +273 -0
- data/ext/gecode-2.2.0/configure.ac.in +269 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/contribs/README +0 -0
- data/ext/gecode-2.2.0/contribs/qecode/Doxyfile +263 -0
- data/ext/gecode-2.2.0/contribs/qecode/Implicative.cc +267 -0
- data/ext/gecode-2.2.0/contribs/qecode/Implicative.hh +164 -0
- data/ext/gecode-2.2.0/contribs/qecode/Makefile.in.in +163 -0
- data/ext/gecode-2.2.0/contribs/qecode/OptVar.cc +82 -0
- data/ext/gecode-2.2.0/contribs/qecode/OptVar.hh +123 -0
- data/ext/gecode-2.2.0/contribs/qecode/Strategy.cc +131 -0
- data/ext/gecode-2.2.0/contribs/qecode/Strategy.hh +91 -0
- data/ext/gecode-2.2.0/contribs/qecode/StrategyNode.cc +62 -0
- data/ext/gecode-2.2.0/contribs/qecode/StrategyNode.hh +47 -0
- data/ext/gecode-2.2.0/contribs/qecode/autom4te.cache/output.0 +2264 -0
- data/ext/gecode-2.2.0/contribs/qecode/autom4te.cache/requests +115 -0
- data/ext/gecode-2.2.0/contribs/qecode/autom4te.cache/traces.0 +57 -0
- data/ext/gecode-2.2.0/contribs/qecode/config.log +147 -0
- data/ext/gecode-2.2.0/contribs/qecode/config.status +817 -0
- data/ext/gecode-2.2.0/contribs/qecode/configure +2264 -0
- data/ext/gecode-2.2.0/contribs/qecode/configure.ac +23 -0
- data/ext/gecode-2.2.0/contribs/qecode/examples/COMPILING +13 -0
- data/ext/gecode-2.2.0/contribs/qecode/examples/MatrixGame.cpp +140 -0
- data/ext/gecode-2.2.0/contribs/qecode/examples/NimFibo.cpp +73 -0
- data/ext/gecode-2.2.0/contribs/qecode/examples/connect-5-3-3-3.cpp +842 -0
- data/ext/gecode-2.2.0/contribs/qecode/examples/network-pricing.cc +146 -0
- data/ext/gecode-2.2.0/contribs/qecode/examples/optim2.cc +149 -0
- data/ext/gecode-2.2.0/contribs/qecode/examples/stress_test.cpp +240 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/contribs/qecode/heap.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/contribs/qecode/myDom.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/contribs/qecode/myspace.cc +0 -0
- data/ext/gecode-2.2.0/contribs/qecode/myspace.hh +68 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/contribs/qecode/qecode.hh +0 -0
- data/ext/gecode-2.2.0/contribs/qecode/qsolver.cc +268 -0
- data/ext/gecode-2.2.0/contribs/qecode/qsolver.hh +46 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/contribs/qecode/shortdesc.ac +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/contribs/qecode/vartype.hh +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/doxygen/doxygen.conf.in +0 -0
- data/ext/gecode-2.2.0/doxygen/doxygen.hh.in +1112 -0
- data/ext/gecode-2.2.0/doxygen/reflection.hh +417 -0
- data/ext/gecode-2.2.0/examples/all-interval.cc +133 -0
- data/ext/gecode-2.2.0/examples/alpha.cc +137 -0
- data/ext/gecode-2.2.0/examples/bacp.cc +521 -0
- data/ext/gecode-2.2.0/examples/baseline.cc +87 -0
- data/ext/gecode-2.2.0/examples/bibd.cc +203 -0
- data/ext/gecode-2.2.0/examples/black-hole.cc +389 -0
- data/ext/gecode-2.2.0/examples/crew.cc +286 -0
- data/ext/gecode-2.2.0/examples/crowded-chess.cc +424 -0
- data/ext/gecode-2.2.0/examples/domino.cc +297 -0
- data/ext/gecode-2.2.0/examples/donald.cc +107 -0
- data/ext/gecode-2.2.0/examples/eq20.cc +125 -0
- data/ext/gecode-2.2.0/examples/golf.cc +297 -0
- data/ext/gecode-2.2.0/examples/golomb-ruler.cc +199 -0
- data/ext/gecode-2.2.0/examples/graph-color.cc +407 -0
- data/ext/gecode-2.2.0/examples/grocery.cc +113 -0
- data/ext/gecode-2.2.0/examples/hamming.cc +129 -0
- data/ext/gecode-2.2.0/examples/ind-set.cc +143 -0
- data/ext/gecode-2.2.0/examples/javascript.cc +163 -0
- data/ext/gecode-2.2.0/examples/kakuro.cc +686 -0
- data/ext/gecode-2.2.0/examples/knights.cc +220 -0
- data/ext/gecode-2.2.0/examples/langford-number.cc +225 -0
- data/ext/gecode-2.2.0/examples/magic-sequence.cc +146 -0
- data/ext/gecode-2.2.0/examples/magic-square.cc +138 -0
- data/ext/gecode-2.2.0/examples/minesweeper.cc +304 -0
- data/ext/gecode-2.2.0/examples/money.cc +105 -0
- data/ext/gecode-2.2.0/examples/nonogram.cc +492 -0
- data/ext/gecode-2.2.0/examples/ortho-latin.cc +172 -0
- data/ext/gecode-2.2.0/examples/partition.cc +141 -0
- data/ext/gecode-2.2.0/examples/pentominoes.cc +949 -0
- data/ext/gecode-2.2.0/examples/perfect-square.cc +311 -0
- data/ext/gecode-2.2.0/examples/photo.cc +170 -0
- data/ext/gecode-2.2.0/examples/queen-armies.cc +284 -0
- data/ext/gecode-2.2.0/examples/queens.cc +147 -0
- data/ext/gecode-2.2.0/examples/queens.js +57 -0
- data/ext/gecode-2.2.0/examples/sports-league.cc +342 -0
- data/ext/gecode-2.2.0/examples/steiner.cc +192 -0
- data/ext/gecode-2.2.0/examples/stress-distinct.cc +90 -0
- data/ext/gecode-2.2.0/examples/stress-domain.cc +99 -0
- data/ext/gecode-2.2.0/examples/stress-element.cc +112 -0
- data/ext/gecode-2.2.0/examples/stress-exec.cc +97 -0
- data/ext/gecode-2.2.0/examples/stress-extensional.cc +134 -0
- data/ext/gecode-2.2.0/examples/stress-linear-bool.cc +97 -0
- data/ext/gecode-2.2.0/examples/stress-min.cc +98 -0
- data/ext/gecode-2.2.0/examples/stress-search.cc +88 -0
- data/ext/gecode-2.2.0/examples/sudoku.cc +2341 -0
- data/ext/gecode-2.2.0/examples/support.hh +338 -0
- data/ext/gecode-2.2.0/examples/support/example.cc +64 -0
- data/ext/gecode-2.2.0/examples/support/example.icc +321 -0
- data/ext/gecode-2.2.0/examples/support/options.cc +226 -0
- data/ext/gecode-2.2.0/examples/support/options.icc +276 -0
- data/ext/gecode-2.2.0/examples/tsp.cc +317 -0
- data/ext/gecode-2.2.0/examples/warehouses.cc +191 -0
- data/ext/gecode-2.2.0/gecode.m4 +1046 -0
- data/ext/gecode-2.2.0/gecode/cpltset.hh +797 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/array.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/array.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/bddmanager.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/bddmanager.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/branch.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/branch.hh +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/branch/select-val.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/branch/select-view.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/constraints/atmost.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/constraints/cardinality.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/constraints/distinct.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/constraints/dom.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/constraints/partition.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/constraints/rangeroots.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/constraints/rel.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/constraints/select.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/constraints/singleton.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/exception.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/propagators.hh +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/propagators/binary.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/propagators/nary.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/propagators/naryone.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/propagators/narytwo.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/propagators/singleton.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/propagators/unary.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/support.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/support.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/var-imp.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/var-imp/cpltset.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/var-imp/cpltset.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/var-imp/cpltset.vis +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/var/cpltset.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/var/cpltset.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/view.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/view/cpltset.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/cpltset/view/print.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/gist.hh +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/gist/addchild.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/gist/addchild.hh +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/gist/addvisualisationdialog.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/gist/addvisualisationdialog.hh +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/gist/better.hh +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/gist/config.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/gist/config.hh +0 -0
- data/ext/gecode-2.2.0/gecode/gist/drawingcursor.cc +281 -0
- data/ext/gecode-2.2.0/gecode/gist/drawingcursor.hh +103 -0
- data/ext/gecode-2.2.0/gecode/gist/drawingcursor.icc +70 -0
- data/ext/gecode-2.2.0/gecode/gist/gecodelogo.cc +672 -0
- data/ext/gecode-2.2.0/gecode/gist/gecodelogo.hh +64 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/gist/gist.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/gist/gist.icc +0 -0
- data/ext/gecode-2.2.0/gecode/gist/layoutcursor.cc +115 -0
- data/ext/gecode-2.2.0/gecode/gist/layoutcursor.hh +75 -0
- data/ext/gecode-2.2.0/gecode/gist/layoutcursor.icc +48 -0
- data/ext/gecode-2.2.0/gecode/gist/mainwindow.cc +274 -0
- data/ext/gecode-2.2.0/gecode/gist/mainwindow.hh +86 -0
- data/ext/gecode-2.2.0/gecode/gist/node.cc +148 -0
- data/ext/gecode-2.2.0/gecode/gist/node.hh +117 -0
- data/ext/gecode-2.2.0/gecode/gist/node.icc +99 -0
- data/ext/gecode-2.2.0/gecode/gist/nodecursor.cc +123 -0
- data/ext/gecode-2.2.0/gecode/gist/nodecursor.hh +147 -0
- data/ext/gecode-2.2.0/gecode/gist/nodecursor.icc +122 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/gist/nodevisitor.hh +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/gist/nodevisitor.icc +0 -0
- data/ext/gecode-2.2.0/gecode/gist/preferences.cc +120 -0
- data/ext/gecode-2.2.0/gecode/gist/preferences.hh +79 -0
- data/ext/gecode-2.2.0/gecode/gist/spacenode.cc +468 -0
- data/ext/gecode-2.2.0/gecode/gist/spacenode.hh +227 -0
- data/ext/gecode-2.2.0/gecode/gist/spacenode.icc +170 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/gist/test.cc +0 -0
- data/ext/gecode-2.2.0/gecode/gist/textoutput.cc +134 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/gist/textoutput.hh +0 -0
- data/ext/gecode-2.2.0/gecode/gist/treecanvas.cc +1343 -0
- data/ext/gecode-2.2.0/gecode/gist/treecanvas.hh +361 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/gist/ui_addchild.hh +0 -0
- data/ext/gecode-2.2.0/gecode/gist/ui_addvisualisationdialog.hh +165 -0
- data/ext/gecode-2.2.0/gecode/gist/visualisation/intvaritem.cc +192 -0
- data/ext/gecode-2.2.0/gecode/gist/visualisation/intvaritem.hh +75 -0
- data/ext/gecode-2.2.0/gecode/gist/visualisation/setvaritem.cc +235 -0
- data/ext/gecode-2.2.0/gecode/gist/visualisation/setvaritem.hh +77 -0
- data/ext/gecode-2.2.0/gecode/gist/visualisation/vararrayitem.hh +125 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/gist/visualisation/vararrayview.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/gist/visualisation/vararrayview.hh +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/gist/visualisation/vararrayviewt.hh +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/gist/visualisation/varitem.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/gist/visualisation/varitem.hh +0 -0
- data/ext/gecode-2.2.0/gecode/gist/visualnode.cc +474 -0
- data/ext/gecode-2.2.0/gecode/gist/visualnode.hh +226 -0
- data/ext/gecode-2.2.0/gecode/gist/visualnode.icc +198 -0
- data/ext/gecode-2.2.0/gecode/gist/zoomToFitIcon.icc +113 -0
- data/ext/gecode-2.2.0/gecode/int.hh +2116 -0
- data/ext/gecode-2.2.0/gecode/int/arithmetic.cc +237 -0
- data/ext/gecode-2.2.0/gecode/int/arithmetic.hh +827 -0
- data/ext/gecode-2.2.0/gecode/int/arithmetic/abs.icc +278 -0
- data/ext/gecode-2.2.0/gecode/int/arithmetic/divmod.icc +496 -0
- data/ext/gecode-2.2.0/gecode/int/arithmetic/max.icc +474 -0
- data/ext/gecode-2.2.0/gecode/int/arithmetic/mult.icc +858 -0
- data/ext/gecode-2.2.0/gecode/int/arithmetic/sqr.icc +464 -0
- data/ext/gecode-2.2.0/gecode/int/arithmetic/sqrt.icc +260 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/array.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/array.icc +0 -0
- data/ext/gecode-2.2.0/gecode/int/bool.cc +734 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/bool.hh +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/bool/base.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/bool/eq.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/bool/eqv.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/bool/lq.icc +0 -0
- data/ext/gecode-2.2.0/gecode/int/bool/or.icc +1000 -0
- data/ext/gecode-2.2.0/gecode/int/branch.cc +167 -0
- data/ext/gecode-2.2.0/gecode/int/branch.hh +587 -0
- data/ext/gecode-2.2.0/gecode/int/branch/create-branch.icc +190 -0
- data/ext/gecode-2.2.0/gecode/int/branch/select-val.icc +340 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/branch/select-view.icc +0 -0
- data/ext/gecode-2.2.0/gecode/int/channel.cc +165 -0
- data/ext/gecode-2.2.0/gecode/int/channel.hh +259 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/channel/base.icc +0 -0
- data/ext/gecode-2.2.0/gecode/int/channel/dom.icc +348 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/channel/link-multi.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/channel/link-multi.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/channel/link-single.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/channel/link-single.icc +0 -0
- data/ext/gecode-2.2.0/gecode/int/channel/val.icc +278 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/circuit.cc +0 -0
- data/ext/gecode-2.2.0/gecode/int/circuit.hh +175 -0
- data/ext/gecode-2.2.0/gecode/int/circuit/base.icc +266 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/circuit/dom.icc +0 -0
- data/ext/gecode-2.2.0/gecode/int/circuit/val.icc +126 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/count.cc +0 -0
- data/ext/gecode-2.2.0/gecode/int/count.hh +487 -0
- data/ext/gecode-2.2.0/gecode/int/count/int.icc +620 -0
- data/ext/gecode-2.2.0/gecode/int/count/rel.icc +144 -0
- data/ext/gecode-2.2.0/gecode/int/count/view.icc +449 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/cumulatives.cc +0 -0
- data/ext/gecode-2.2.0/gecode/int/cumulatives.hh +138 -0
- data/ext/gecode-2.2.0/gecode/int/cumulatives/val.icc +455 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/distinct.cc +0 -0
- data/ext/gecode-2.2.0/gecode/int/distinct.hh +341 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/distinct/bilink.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/distinct/bnd.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/distinct/combptr.icc +0 -0
- data/ext/gecode-2.2.0/gecode/int/distinct/dom.icc +752 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/distinct/edge.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/distinct/node.icc +0 -0
- data/ext/gecode-2.2.0/gecode/int/distinct/ter-dom.icc +136 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/distinct/val.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/dom.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/dom.hh +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/dom/range.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/dom/spec.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/element.cc +0 -0
- data/ext/gecode-2.2.0/gecode/int/element.hh +239 -0
- data/ext/gecode-2.2.0/gecode/int/element/int.icc +444 -0
- data/ext/gecode-2.2.0/gecode/int/element/view.icc +584 -0
- data/ext/gecode-2.2.0/gecode/int/exception.icc +174 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/extensional.cc +0 -0
- data/ext/gecode-2.2.0/gecode/int/extensional.hh +415 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/extensional/base.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/extensional/basic.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/extensional/bitset.icc +0 -0
- data/ext/gecode-2.2.0/gecode/int/extensional/dfa.cc +565 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/extensional/dfa.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/extensional/incremental.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/extensional/layered-graph.icc +0 -0
- data/ext/gecode-2.2.0/gecode/int/extensional/tuple-set.cc +285 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/extensional/tuple-set.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/gcc.cc +0 -0
- data/ext/gecode-2.2.0/gecode/int/gcc.hh +329 -0
- data/ext/gecode-2.2.0/gecode/int/gcc/bnd.icc +660 -0
- data/ext/gecode-2.2.0/gecode/int/gcc/dom.icc +531 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/gcc/gccbndsup.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/gcc/graphsup.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/gcc/lbc.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/gcc/occur.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/gcc/ubc.icc +0 -0
- data/ext/gecode-2.2.0/gecode/int/gcc/val.icc +400 -0
- data/ext/gecode-2.2.0/gecode/int/int-set.cc +157 -0
- data/ext/gecode-2.2.0/gecode/int/int-set.icc +195 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/limits.icc +0 -0
- data/ext/gecode-2.2.0/gecode/int/linear-bool.cc +235 -0
- data/ext/gecode-2.2.0/gecode/int/linear-int.cc +272 -0
- data/ext/gecode-2.2.0/gecode/int/linear.hh +1849 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/linear/bool-int.icc +0 -0
- data/ext/gecode-2.2.0/gecode/int/linear/bool-post.cc +433 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/linear/bool-scale.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/linear/bool-view.icc +0 -0
- data/ext/gecode-2.2.0/gecode/int/linear/int-bin.icc +605 -0
- data/ext/gecode-2.2.0/gecode/int/linear/int-dom.icc +539 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/linear/int-nary.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/linear/int-noview.icc +0 -0
- data/ext/gecode-2.2.0/gecode/int/linear/int-post.cc +493 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/linear/int-ter.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/linear/post.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/propagator.icc +0 -0
- data/ext/gecode-2.2.0/gecode/int/rel.cc +420 -0
- data/ext/gecode-2.2.0/gecode/int/rel.hh +627 -0
- data/ext/gecode-2.2.0/gecode/int/rel/eq.icc +885 -0
- data/ext/gecode-2.2.0/gecode/int/rel/lex.icc +275 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/rel/lq-le.icc +0 -0
- data/ext/gecode-2.2.0/gecode/int/rel/nq.icc +118 -0
- data/ext/gecode-2.2.0/gecode/int/sorted.cc +81 -0
- data/ext/gecode-2.2.0/gecode/int/sorted.hh +118 -0
- data/ext/gecode-2.2.0/gecode/int/sorted/matching.icc +173 -0
- data/ext/gecode-2.2.0/gecode/int/sorted/narrowing.icc +249 -0
- data/ext/gecode-2.2.0/gecode/int/sorted/order.icc +212 -0
- data/ext/gecode-2.2.0/gecode/int/sorted/propagate.icc +702 -0
- data/ext/gecode-2.2.0/gecode/int/sorted/sortsup.icc +563 -0
- data/ext/gecode-2.2.0/gecode/int/support-values.hh +158 -0
- data/ext/gecode-2.2.0/gecode/int/support-values.icc +203 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/unshare.cc +0 -0
- data/ext/gecode-2.2.0/gecode/int/var-imp.icc +745 -0
- data/ext/gecode-2.2.0/gecode/int/var-imp/bool.cc +105 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/var-imp/bool.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/var-imp/bool.vis +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/var-imp/delta.icc +0 -0
- data/ext/gecode-2.2.0/gecode/int/var-imp/int.cc +408 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/var-imp/int.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/var-imp/int.vis +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/var/bool.cc +0 -0
- data/ext/gecode-2.2.0/gecode/int/var/bool.icc +128 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/var/int.cc +0 -0
- data/ext/gecode-2.2.0/gecode/int/var/int.icc +153 -0
- data/ext/gecode-2.2.0/gecode/int/view.icc +1918 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/view/bool.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/view/constint.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/view/int.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/view/iter.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/view/minus.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/view/offset.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/view/print.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/view/rtest.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/view/scale.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/int/view/zero.icc +0 -0
- data/ext/gecode-2.2.0/gecode/iter.hh +98 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/iter/ranges-add.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/iter/ranges-append.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/iter/ranges-array.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/iter/ranges-cache.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/iter/ranges-compl.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/iter/ranges-diff.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/iter/ranges-empty.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/iter/ranges-inter.icc +0 -0
- data/ext/gecode-2.2.0/gecode/iter/ranges-map.icc +260 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/iter/ranges-minmax.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/iter/ranges-minus.icc +0 -0
- data/ext/gecode-2.2.0/gecode/iter/ranges-negative.icc +137 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/iter/ranges-offset.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/iter/ranges-operations.icc +0 -0
- data/ext/gecode-2.2.0/gecode/iter/ranges-positive.icc +139 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/iter/ranges-scale.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/iter/ranges-singleton-append.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/iter/ranges-singleton.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/iter/ranges-size.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/iter/ranges-union.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/iter/ranges-values.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/iter/values-array.icc +0 -0
- data/ext/gecode-2.2.0/gecode/iter/values-inter.icc +130 -0
- data/ext/gecode-2.2.0/gecode/iter/values-map.icc +136 -0
- data/ext/gecode-2.2.0/gecode/iter/values-minus.icc +130 -0
- data/ext/gecode-2.2.0/gecode/iter/values-negative.icc +116 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/iter/values-offset.icc +0 -0
- data/ext/gecode-2.2.0/gecode/iter/values-positive.icc +123 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/iter/values-ranges.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/iter/values-singleton.icc +0 -0
- data/ext/gecode-2.2.0/gecode/iter/values-union.icc +137 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/iter/values-unique.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/iter/virtual-ranges-compl.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/iter/virtual-ranges-inter.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/iter/virtual-ranges-union.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/iter/virtual-ranges.icc +0 -0
- data/ext/gecode-2.2.0/gecode/kernel.hh +188 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/kernel/advisor.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/kernel/array.icc +0 -0
- data/ext/gecode-2.2.0/gecode/kernel/branching.icc +433 -0
- data/ext/gecode-2.2.0/gecode/kernel/core.cc +474 -0
- data/ext/gecode-2.2.0/gecode/kernel/core.icc +2311 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/kernel/exception.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/kernel/macros.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/kernel/memory-manager.cc +0 -0
- data/ext/gecode-2.2.0/gecode/kernel/memory-manager.icc +454 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/kernel/modevent.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/kernel/propagator.icc +0 -0
- data/ext/gecode-2.2.0/gecode/kernel/reflection.cc +951 -0
- data/ext/gecode-2.2.0/gecode/kernel/reflection.icc +1213 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/kernel/shared-array.icc +0 -0
- data/ext/gecode-2.2.0/gecode/kernel/var-imp.icc +433 -0
- data/ext/gecode-2.2.0/gecode/kernel/var-map.cc +269 -0
- data/ext/gecode-2.2.0/gecode/kernel/var-map.icc +230 -0
- data/ext/gecode-2.2.0/gecode/kernel/var-traits.icc +79 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/kernel/var-type.cc +0 -0
- data/ext/gecode-2.2.0/gecode/kernel/var-type.icc +915 -0
- data/ext/gecode-2.2.0/gecode/kernel/var.icc +114 -0
- data/ext/gecode-2.2.0/gecode/kernel/view.icc +413 -0
- data/ext/gecode-2.2.0/gecode/minimodel.hh +1206 -0
- data/ext/gecode-2.2.0/gecode/minimodel/arithmetic.icc +118 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/minimodel/bool-expr.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/minimodel/bool-expr.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/minimodel/bool-rel.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/minimodel/exception.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/minimodel/lin-expr.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/minimodel/lin-rel.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/minimodel/matrix.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/minimodel/reg.cc +0 -0
- data/ext/gecode-2.2.0/gecode/search.hh +759 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/search/bab.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/search/bab.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/search/dfs.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/search/dfs.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/search/engine-ctrl.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/search/lds.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/search/lds.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/search/options.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/search/options.icc +0 -0
- data/ext/gecode-2.2.0/gecode/search/reco-stack.icc +277 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/search/restart.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/search/statistics.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/search/stop.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/search/stop.icc +0 -0
- data/ext/gecode-2.2.0/gecode/serialization.hh +149 -0
- data/ext/gecode-2.2.0/gecode/serialization/boost.cc +78 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/serialization/boost.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/serialization/flatzinc.cc +0 -0
- data/ext/gecode-2.2.0/gecode/serialization/javascript.cc +343 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/serialization/javascript.hh +0 -0
- data/ext/gecode-2.2.0/gecode/serialization/register.cc +8498 -0
- data/ext/gecode-2.2.0/gecode/set.hh +970 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/array.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/array.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/branch.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/branch.hh +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/branch/select-val.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/branch/select-view.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/cardinality.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/convex.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/convex.hh +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/convex/conv.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/convex/conv.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/convex/hull.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/convex/hull.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/distinct.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/distinct.hh +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/distinct/atmostOne.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/distinct/atmostOne.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/dom.cc +0 -0
- data/ext/gecode-2.2.0/gecode/set/element.cc +135 -0
- data/ext/gecode-2.2.0/gecode/set/element.hh +233 -0
- data/ext/gecode-2.2.0/gecode/set/element/disjoint.cc +308 -0
- data/ext/gecode-2.2.0/gecode/set/element/disjoint.icc +75 -0
- data/ext/gecode-2.2.0/gecode/set/element/idxarray.hh +113 -0
- data/ext/gecode-2.2.0/gecode/set/element/idxarray.icc +155 -0
- data/ext/gecode-2.2.0/gecode/set/element/inter.icc +348 -0
- data/ext/gecode-2.2.0/gecode/set/element/union.icc +371 -0
- data/ext/gecode-2.2.0/gecode/set/element/unionConst.icc +334 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/exception.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/int.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/int.hh +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/int/card.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/int/channel-bool.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/int/channel-int.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/int/match.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/int/minmax.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/int/weights.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/limits.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/projectors-compiler.hh +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/projectors.cc +0 -0
- data/ext/gecode-2.2.0/gecode/set/projectors.hh +438 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/projectors/compiler.cc +0 -0
- data/ext/gecode-2.2.0/gecode/set/projectors/formula.cc +312 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/projectors/formula.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/projectors/projector-set.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/projectors/projector-set.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/projectors/projector.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/projectors/projector.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/projectors/propagator.hh +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/projectors/propagator/card.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/projectors/propagator/nary.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/projectors/propagator/re-nary.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/projectors/propagator/re-nary.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/projectors/set-expr.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/projectors/set-expr.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/propagator.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/rel-op-const.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/rel-op.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/rel-op.hh +0 -0
- data/ext/gecode-2.2.0/gecode/set/rel-op/common.icc +613 -0
- data/ext/gecode-2.2.0/gecode/set/rel-op/inter.icc +452 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/rel-op/partition.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/rel-op/post.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/rel-op/subofunion.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/rel-op/superofinter.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/rel-op/union.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/rel.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/rel.hh +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/rel/common.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/rel/eq.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/rel/nosubset.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/rel/nq.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/rel/re-eq.icc +0 -0
- data/ext/gecode-2.2.0/gecode/set/rel/re-subset.icc +174 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/rel/subset.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/sequence.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/sequence.hh +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/sequence/common.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/sequence/seq-u.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/sequence/seq-u.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/sequence/seq.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/sequence/seq.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/var-imp.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/var-imp/delta.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/var-imp/integerset.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/var-imp/integerset.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/var-imp/iter.icc +0 -0
- data/ext/gecode-2.2.0/gecode/set/var-imp/set.cc +215 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/var-imp/set.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/var-imp/set.vis +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/var/set.cc +0 -0
- data/ext/gecode-2.2.0/gecode/set/var/set.icc +303 -0
- data/ext/gecode-2.2.0/gecode/set/view.icc +1451 -0
- data/ext/gecode-2.2.0/gecode/set/view/complement.icc +614 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/view/const.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/view/offset.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/view/print.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/view/set.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/set/view/singleton.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support.hh +0 -0
- data/ext/gecode-2.2.0/gecode/support/block-allocator.icc +159 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/buddy/AUTHORS +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/buddy/ChangeLog +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/buddy/NEWS +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/buddy/README +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/buddy/bdd.h +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/buddy/bddio.c +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/buddy/bddop.c +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/buddy/bddtree.h +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/buddy/bvec.c +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/buddy/bvec.h +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/buddy/cache.c +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/buddy/cache.h +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/buddy/config.h +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/buddy/cppext.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/buddy/fdd.c +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/buddy/fdd.h +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/buddy/imatrix.c +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/buddy/imatrix.h +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/buddy/kernel.c +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/buddy/kernel.h +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/buddy/pairs.c +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/buddy/prime.c +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/buddy/prime.h +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/buddy/reorder.c +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/buddy/tree.c +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/cast.icc +0 -0
- data/ext/gecode-2.2.0/gecode/support/config.icc.in +83 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/dynamic-array.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/dynamic-stack.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/exception.cc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/exception.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/macros.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/map.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/marked-pointer.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/memory.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/random.icc +0 -0
- data/ext/gecode-2.2.0/gecode/support/sentinel-stack.icc +138 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/sort.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/static-pqueue.icc +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/gecode/support/static-stack.icc +0 -0
- data/ext/gecode-2.2.0/gecode/support/symbol.cc +241 -0
- data/ext/gecode-2.2.0/gecode/support/symbol.icc +134 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/install-sh +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/misc/AppleHelpbookInfo.plist +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/misc/allexamples.perl +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/misc/debian/Makefile.am +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/misc/debian/changelog +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/misc/debian/control +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/misc/debian/copyright +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/misc/debian/gecode.info +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/misc/debian/gecode.install +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/misc/debian/gecode.spec +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/misc/debian/rules +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/misc/doxygen/back.png +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/misc/doxygen/footer.html +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/misc/doxygen/gecode-logo-100.png +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/misc/doxygen/header.html +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/misc/doxygen/stylesheet.css +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/misc/fixproperties.sh +0 -0
- data/ext/gecode-2.2.0/misc/gecode-gist.pc.in +45 -0
- data/ext/gecode-2.2.0/misc/gecode-minimodel.pc.in +45 -0
- data/ext/gecode-2.2.0/misc/gecode-search.pc.in +45 -0
- data/ext/gecode-2.2.0/misc/gecode-serialization.pc.in +45 -0
- data/ext/gecode-2.2.0/misc/gecode.pc.in +45 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/misc/genchangelog.perl +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/misc/genlcovmakefile.perl +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/misc/genlicense.perl +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/misc/genregistry.perl +0 -0
- data/ext/gecode-2.2.0/misc/genstatistics.perl +179 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/misc/gentxtchangelog.perl +0 -0
- data/ext/gecode-2.2.0/misc/genvariables.perl +905 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/misc/getrevision.perl +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/misc/makedepend.perl +0 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/misc/svn-ignore.txt +0 -0
- data/ext/gecode-2.2.0/test/assign.cc +181 -0
- data/ext/gecode-2.2.0/test/assign.hh +93 -0
- data/ext/gecode-2.2.0/test/assign/bool.cc +61 -0
- data/ext/gecode-2.2.0/test/assign/int.cc +70 -0
- data/ext/gecode-2.2.0/test/branch.cc +563 -0
- data/ext/gecode-2.2.0/test/branch.hh +144 -0
- data/ext/gecode-2.2.0/test/branch/bool.cc +61 -0
- data/ext/gecode-2.2.0/test/branch/cpltset.cc +71 -0
- data/ext/gecode-2.2.0/test/branch/int.cc +70 -0
- data/ext/gecode-2.2.0/test/branch/set.cc +74 -0
- data/ext/gecode-2.2.0/test/cpltset.cc +568 -0
- data/ext/gecode-2.2.0/test/cpltset.hh +125 -0
- data/ext/gecode-2.2.0/test/cpltset/atmost.cc +155 -0
- data/ext/gecode-2.2.0/test/cpltset/cardinality.cc +138 -0
- data/ext/gecode-2.2.0/test/cpltset/dom.cc +137 -0
- data/ext/gecode-2.2.0/test/cpltset/partition.cc +210 -0
- data/ext/gecode-2.2.0/test/cpltset/rel.cc +158 -0
- data/ext/gecode-2.2.0/test/cpltset/select.cc +216 -0
- data/ext/gecode-2.2.0/test/int.cc +688 -0
- data/ext/gecode-2.2.0/test/int.hh +267 -0
- data/ext/gecode-2.2.0/test/int.icc +266 -0
- data/ext/gecode-2.2.0/test/int/arithmetic.cc +766 -0
- data/ext/gecode-2.2.0/test/int/basic.cc +77 -0
- data/ext/gecode-2.2.0/test/int/bool.cc +340 -0
- data/ext/gecode-2.2.0/test/int/channel.cc +238 -0
- data/ext/gecode-2.2.0/test/int/circuit.cc +100 -0
- data/ext/gecode-2.2.0/test/int/count.cc +357 -0
- data/ext/gecode-2.2.0/test/int/distinct.cc +248 -0
- data/ext/gecode-2.2.0/test/int/dom.cc +123 -0
- data/ext/gecode-2.2.0/test/int/element.cc +333 -0
- data/ext/gecode-2.2.0/test/int/extensional.cc +475 -0
- data/ext/gecode-2.2.0/test/int/gcc.cc +293 -0
- data/ext/gecode-2.2.0/test/int/linear.cc +383 -0
- data/ext/gecode-2.2.0/test/int/mm-arithmetic.cc +302 -0
- data/ext/gecode-2.2.0/test/int/mm-bool.cc +4342 -0
- data/ext/gecode-2.2.0/test/int/mm-count.cc +295 -0
- data/ext/gecode-2.2.0/test/int/mm-lin.cc +2035 -0
- data/ext/gecode-2.2.0/test/int/mm-rel.cc +136 -0
- data/ext/gecode-2.2.0/test/int/rel.cc +416 -0
- data/ext/gecode-2.2.0/test/int/scheduling.cc +276 -0
- data/ext/gecode-2.2.0/test/int/sorted.cc +165 -0
- data/ext/gecode-2.2.0/test/int/unshare.cc +109 -0
- data/ext/gecode-2.2.0/test/search.cc +618 -0
- data/ext/gecode-2.2.0/test/set.cc +753 -0
- data/ext/gecode-2.2.0/test/set.hh +286 -0
- data/ext/gecode-2.2.0/test/set.icc +108 -0
- data/ext/gecode-2.2.0/test/set/convex.cc +139 -0
- data/ext/gecode-2.2.0/test/set/distinct.cc +116 -0
- data/ext/gecode-2.2.0/test/set/dom.cc +292 -0
- data/ext/gecode-2.2.0/test/set/int.cc +473 -0
- data/ext/gecode-2.2.0/test/set/projection.cc +436 -0
- data/ext/gecode-2.2.0/test/set/rel-op-const.cc +368 -0
- data/ext/gecode-2.2.0/test/set/rel-op.cc +465 -0
- data/ext/gecode-2.2.0/test/set/rel.cc +125 -0
- data/ext/gecode-2.2.0/test/set/select.cc +299 -0
- data/ext/gecode-2.2.0/test/set/sequence.cc +125 -0
- data/ext/gecode-2.2.0/test/test.cc +287 -0
- data/ext/gecode-2.2.0/test/test.hh +175 -0
- data/ext/gecode-2.2.0/test/test.icc +93 -0
- data/ext/{gecode-2.1.1 → gecode-2.2.0}/variables.vsl +0 -0
- data/lib/gecoder/bindings.rb +7 -5
- data/lib/gecoder/bindings/bindings.rb +8 -8
- data/lib/gecoder/interface.rb +4 -2
- data/lib/gecoder/interface/binding_changes.rb +1 -1
- data/lib/gecoder/interface/branch.rb +1 -1
- data/lib/gecoder/interface/constraints/bool_enum_constraints.rb +4 -4
- data/lib/gecoder/interface/constraints/bool_var_constraints.rb +2 -2
- data/lib/gecoder/interface/constraints/extensional_regexp.rb +1 -1
- data/lib/gecoder/interface/constraints/fixnum_enum_constraints.rb +2 -2
- data/lib/gecoder/interface/constraints/int_enum/extensional.rb +5 -5
- data/lib/gecoder/interface/constraints/int_enum_constraints.rb +4 -4
- data/lib/gecoder/interface/constraints/int_var_constraints.rb +2 -2
- data/lib/gecoder/interface/constraints/selected_set/select.rb +8 -8
- data/lib/gecoder/interface/constraints/set_enum/element.rb +79 -0
- data/lib/gecoder/interface/constraints/set_enum_constraints.rb +5 -5
- data/lib/gecoder/interface/constraints/set_var_constraints.rb +2 -2
- data/lib/gecoder/interface/convenience.rb +99 -0
- data/lib/gecoder/interface/enum_wrapper.rb +1 -1
- data/lib/gecoder/interface/mixin.rb +486 -0
- data/lib/gecoder/interface/search.rb +23 -22
- data/lib/gecoder/version.rb +1 -1
- data/specs/branch.rb +5 -3
- data/specs/constraints/bool/boolean.rb +3 -1
- data/specs/constraints/bool/linear.rb +3 -1
- data/specs/constraints/bool_enum/bool_enum_relation.rb +3 -1
- data/specs/constraints/bool_enum/channel.rb +3 -1
- data/specs/constraints/fixnum_enum/element.rb +3 -1
- data/specs/constraints/int/arithmetic.rb +3 -1
- data/specs/constraints/int/channel.rb +3 -1
- data/specs/constraints/int/linear.rb +3 -1
- data/specs/constraints/int/linear_properties.rb +3 -1
- data/specs/constraints/int_enum/arithmetic.rb +3 -1
- data/specs/constraints/int_enum/channel.rb +3 -1
- data/specs/constraints/int_enum/count.rb +3 -1
- data/specs/constraints/int_enum/distinct.rb +3 -1
- data/specs/constraints/int_enum/element.rb +3 -1
- data/specs/constraints/int_enum/sort.rb +3 -1
- data/specs/constraints/property_helper.rb +10 -10
- data/specs/constraints/reification_sugar.rb +3 -1
- data/specs/constraints/selected_set/select.rb +6 -5
- data/specs/constraints/selected_set/select_properties.rb +12 -10
- data/specs/constraints/set/channel.rb +3 -1
- data/specs/constraints/set/domain.rb +4 -4
- data/specs/constraints/set/relation.rb +4 -4
- data/specs/constraints/set_enum/channel.rb +3 -1
- data/specs/constraints/set_enum/distinct.rb +3 -1
- data/specs/constraints/set_enum/element.rb +77 -0
- data/specs/enum_wrapper.rb +1 -1
- data/specs/mixin.rb +78 -0
- data/specs/model.rb +5 -5
- data/specs/search.rb +20 -14
- data/specs/selected_set.rb +3 -3
- data/specs/set_elements.rb +2 -2
- data/tasks/distribution.rake +25 -4
- metadata +739 -602
- data/example/money.rb +0 -36
- data/ext/gecode-2.1.1/Makefile.dep +0 -7622
- data/ext/gecode-2.1.1/Makefile.in +0 -1568
- data/ext/gecode-2.1.1/changelog.in +0 -2459
- data/ext/gecode-2.1.1/configure +0 -11631
- data/ext/gecode-2.1.1/configure.ac +0 -249
- data/ext/gecode-2.1.1/configure.ac.in +0 -245
- data/ext/gecode-2.1.1/contribs/qecode/Doxyfile +0 -263
- data/ext/gecode-2.1.1/contribs/qecode/FirstFailValueHeuristic.cc +0 -82
- data/ext/gecode-2.1.1/contribs/qecode/FirstFailValueHeuristic.hh +0 -37
- data/ext/gecode-2.1.1/contribs/qecode/Makefile.in.in +0 -162
- data/ext/gecode-2.1.1/contribs/qecode/NaiveValueHeuristics.cc +0 -172
- data/ext/gecode-2.1.1/contribs/qecode/NaiveValueHeuristics.hh +0 -63
- data/ext/gecode-2.1.1/contribs/qecode/SDFVariableHeuristic.cc +0 -37
- data/ext/gecode-2.1.1/contribs/qecode/SDFVariableHeuristic.hh +0 -35
- data/ext/gecode-2.1.1/contribs/qecode/configure +0 -2264
- data/ext/gecode-2.1.1/contribs/qecode/configure.ac +0 -23
- data/ext/gecode-2.1.1/contribs/qecode/examples/COMPILING +0 -13
- data/ext/gecode-2.1.1/contribs/qecode/examples/MatrixGame.cpp +0 -144
- data/ext/gecode-2.1.1/contribs/qecode/examples/NimFibo.cpp +0 -73
- data/ext/gecode-2.1.1/contribs/qecode/examples/stress_test.cpp +0 -179
- data/ext/gecode-2.1.1/contribs/qecode/extensivecomparator.cc +0 -34
- data/ext/gecode-2.1.1/contribs/qecode/extensivecomparator.hh +0 -46
- data/ext/gecode-2.1.1/contribs/qecode/implicative.cc +0 -595
- data/ext/gecode-2.1.1/contribs/qecode/implicative.hh +0 -184
- data/ext/gecode-2.1.1/contribs/qecode/myspace.hh +0 -69
- data/ext/gecode-2.1.1/contribs/qecode/qecore.cc +0 -145
- data/ext/gecode-2.1.1/contribs/qecode/qecore.hh +0 -247
- data/ext/gecode-2.1.1/contribs/qecode/qsolver.cc +0 -168
- data/ext/gecode-2.1.1/contribs/qecode/qsolver.hh +0 -73
- data/ext/gecode-2.1.1/contribs/qecode/valueHeuristic.hh +0 -91
- data/ext/gecode-2.1.1/contribs/qecode/warner.cc +0 -101
- data/ext/gecode-2.1.1/contribs/qecode/warner.hh +0 -83
- data/ext/gecode-2.1.1/doxygen/doxygen.hh.in +0 -1111
- data/ext/gecode-2.1.1/doxygen/reflection.hh +0 -417
- data/ext/gecode-2.1.1/gecode.m4 +0 -956
- data/ext/gecode-2.1.1/gecode/cpltset.hh +0 -797
- data/ext/gecode-2.1.1/gecode/gist/analysiscursor.cc +0 -115
- data/ext/gecode-2.1.1/gecode/gist/analysiscursor.hh +0 -77
- data/ext/gecode-2.1.1/gecode/gist/drawingcursor.cc +0 -245
- data/ext/gecode-2.1.1/gecode/gist/drawingcursor.hh +0 -101
- data/ext/gecode-2.1.1/gecode/gist/gecodelogo.icc +0 -522
- data/ext/gecode-2.1.1/gecode/gist/mainwindow.cc +0 -254
- data/ext/gecode-2.1.1/gecode/gist/mainwindow.hh +0 -86
- data/ext/gecode-2.1.1/gecode/gist/node.cc +0 -100
- data/ext/gecode-2.1.1/gecode/gist/node.hh +0 -89
- data/ext/gecode-2.1.1/gecode/gist/nodecursor.cc +0 -124
- data/ext/gecode-2.1.1/gecode/gist/nodecursor.hh +0 -122
- data/ext/gecode-2.1.1/gecode/gist/nodecursor.icc +0 -79
- data/ext/gecode-2.1.1/gecode/gist/postscript.cc +0 -543
- data/ext/gecode-2.1.1/gecode/gist/postscript.hh +0 -56
- data/ext/gecode-2.1.1/gecode/gist/preferences.cc +0 -110
- data/ext/gecode-2.1.1/gecode/gist/preferences.hh +0 -76
- data/ext/gecode-2.1.1/gecode/gist/reflectionhelpers.cc +0 -55
- data/ext/gecode-2.1.1/gecode/gist/reflectionhelpers.hh +0 -58
- data/ext/gecode-2.1.1/gecode/gist/shapelist.cc +0 -331
- data/ext/gecode-2.1.1/gecode/gist/shapelist.hh +0 -140
- data/ext/gecode-2.1.1/gecode/gist/spacenode.cc +0 -531
- data/ext/gecode-2.1.1/gecode/gist/spacenode.hh +0 -224
- data/ext/gecode-2.1.1/gecode/gist/textoutput.cc +0 -114
- data/ext/gecode-2.1.1/gecode/gist/treecanvas.cc +0 -1140
- data/ext/gecode-2.1.1/gecode/gist/treecanvas.hh +0 -324
- data/ext/gecode-2.1.1/gecode/gist/ui_addvisualisationdialog.hh +0 -163
- data/ext/gecode-2.1.1/gecode/gist/visualisation/intvaritem.cc +0 -175
- data/ext/gecode-2.1.1/gecode/gist/visualisation/intvaritem.hh +0 -71
- data/ext/gecode-2.1.1/gecode/gist/visualisation/setvaritem.cc +0 -219
- data/ext/gecode-2.1.1/gecode/gist/visualisation/setvaritem.hh +0 -73
- data/ext/gecode-2.1.1/gecode/gist/visualisation/vararrayitem.hh +0 -123
- data/ext/gecode-2.1.1/gecode/gist/visualnode.cc +0 -303
- data/ext/gecode-2.1.1/gecode/gist/visualnode.hh +0 -166
- data/ext/gecode-2.1.1/gecode/int.hh +0 -2035
- data/ext/gecode-2.1.1/gecode/int/arithmetic.cc +0 -136
- data/ext/gecode-2.1.1/gecode/int/arithmetic.hh +0 -440
- data/ext/gecode-2.1.1/gecode/int/arithmetic/abs.icc +0 -279
- data/ext/gecode-2.1.1/gecode/int/arithmetic/max.icc +0 -253
- data/ext/gecode-2.1.1/gecode/int/arithmetic/mult.icc +0 -522
- data/ext/gecode-2.1.1/gecode/int/arithmetic/sqr.icc +0 -218
- data/ext/gecode-2.1.1/gecode/int/arithmetic/sqrt.icc +0 -138
- data/ext/gecode-2.1.1/gecode/int/bool.cc +0 -642
- data/ext/gecode-2.1.1/gecode/int/bool/or.icc +0 -1000
- data/ext/gecode-2.1.1/gecode/int/branch.cc +0 -301
- data/ext/gecode-2.1.1/gecode/int/branch.hh +0 -576
- data/ext/gecode-2.1.1/gecode/int/branch/select-val.icc +0 -338
- data/ext/gecode-2.1.1/gecode/int/channel.cc +0 -114
- data/ext/gecode-2.1.1/gecode/int/channel.hh +0 -259
- data/ext/gecode-2.1.1/gecode/int/channel/dom.icc +0 -347
- data/ext/gecode-2.1.1/gecode/int/channel/val.icc +0 -276
- data/ext/gecode-2.1.1/gecode/int/circuit.hh +0 -175
- data/ext/gecode-2.1.1/gecode/int/circuit/base.icc +0 -271
- data/ext/gecode-2.1.1/gecode/int/circuit/val.icc +0 -122
- data/ext/gecode-2.1.1/gecode/int/count.hh +0 -487
- data/ext/gecode-2.1.1/gecode/int/count/int.icc +0 -619
- data/ext/gecode-2.1.1/gecode/int/count/rel.icc +0 -144
- data/ext/gecode-2.1.1/gecode/int/count/view.icc +0 -449
- data/ext/gecode-2.1.1/gecode/int/cumulatives.hh +0 -141
- data/ext/gecode-2.1.1/gecode/int/cumulatives/val.icc +0 -429
- data/ext/gecode-2.1.1/gecode/int/distinct.hh +0 -341
- data/ext/gecode-2.1.1/gecode/int/distinct/dom.icc +0 -750
- data/ext/gecode-2.1.1/gecode/int/distinct/ter-dom.icc +0 -136
- data/ext/gecode-2.1.1/gecode/int/element.hh +0 -239
- data/ext/gecode-2.1.1/gecode/int/element/int.icc +0 -441
- data/ext/gecode-2.1.1/gecode/int/element/view.icc +0 -584
- data/ext/gecode-2.1.1/gecode/int/exception.icc +0 -163
- data/ext/gecode-2.1.1/gecode/int/extensional.hh +0 -415
- data/ext/gecode-2.1.1/gecode/int/extensional/dfa.cc +0 -565
- data/ext/gecode-2.1.1/gecode/int/extensional/tuple-set.cc +0 -311
- data/ext/gecode-2.1.1/gecode/int/gcc.hh +0 -329
- data/ext/gecode-2.1.1/gecode/int/gcc/bnd.icc +0 -660
- data/ext/gecode-2.1.1/gecode/int/gcc/dom.icc +0 -531
- data/ext/gecode-2.1.1/gecode/int/gcc/val.icc +0 -400
- data/ext/gecode-2.1.1/gecode/int/int-set.cc +0 -153
- data/ext/gecode-2.1.1/gecode/int/int-set.icc +0 -191
- data/ext/gecode-2.1.1/gecode/int/linear-bool.cc +0 -220
- data/ext/gecode-2.1.1/gecode/int/linear-int.cc +0 -240
- data/ext/gecode-2.1.1/gecode/int/linear.hh +0 -1849
- data/ext/gecode-2.1.1/gecode/int/linear/bool-post.cc +0 -433
- data/ext/gecode-2.1.1/gecode/int/linear/int-bin.icc +0 -605
- data/ext/gecode-2.1.1/gecode/int/linear/int-dom.icc +0 -539
- data/ext/gecode-2.1.1/gecode/int/linear/int-post.cc +0 -493
- data/ext/gecode-2.1.1/gecode/int/rel.cc +0 -431
- data/ext/gecode-2.1.1/gecode/int/rel.hh +0 -657
- data/ext/gecode-2.1.1/gecode/int/rel/eq.icc +0 -848
- data/ext/gecode-2.1.1/gecode/int/rel/lex.icc +0 -248
- data/ext/gecode-2.1.1/gecode/int/rel/nq.icc +0 -269
- data/ext/gecode-2.1.1/gecode/int/sorted.cc +0 -91
- data/ext/gecode-2.1.1/gecode/int/sorted.hh +0 -117
- data/ext/gecode-2.1.1/gecode/int/sorted/matching.icc +0 -182
- data/ext/gecode-2.1.1/gecode/int/sorted/narrowing.icc +0 -257
- data/ext/gecode-2.1.1/gecode/int/sorted/order.icc +0 -208
- data/ext/gecode-2.1.1/gecode/int/sorted/propagate.icc +0 -669
- data/ext/gecode-2.1.1/gecode/int/sorted/sortsup.icc +0 -596
- data/ext/gecode-2.1.1/gecode/int/var-imp.icc +0 -745
- data/ext/gecode-2.1.1/gecode/int/var-imp/bool.cc +0 -104
- data/ext/gecode-2.1.1/gecode/int/var-imp/int.cc +0 -407
- data/ext/gecode-2.1.1/gecode/int/var/bool.icc +0 -126
- data/ext/gecode-2.1.1/gecode/int/var/int.icc +0 -151
- data/ext/gecode-2.1.1/gecode/int/view.icc +0 -1894
- data/ext/gecode-2.1.1/gecode/iter.hh +0 -90
- data/ext/gecode-2.1.1/gecode/iter/values-minus.icc +0 -130
- data/ext/gecode-2.1.1/gecode/kernel.hh +0 -182
- data/ext/gecode-2.1.1/gecode/kernel/branching.icc +0 -447
- data/ext/gecode-2.1.1/gecode/kernel/core.cc +0 -473
- data/ext/gecode-2.1.1/gecode/kernel/core.icc +0 -2295
- data/ext/gecode-2.1.1/gecode/kernel/memory-manager.icc +0 -458
- data/ext/gecode-2.1.1/gecode/kernel/reflection.cc +0 -921
- data/ext/gecode-2.1.1/gecode/kernel/reflection.icc +0 -1012
- data/ext/gecode-2.1.1/gecode/kernel/var-imp.icc +0 -433
- data/ext/gecode-2.1.1/gecode/kernel/var-map.cc +0 -269
- data/ext/gecode-2.1.1/gecode/kernel/var-map.icc +0 -227
- data/ext/gecode-2.1.1/gecode/kernel/var-traits.icc +0 -72
- data/ext/gecode-2.1.1/gecode/kernel/var-type.icc +0 -915
- data/ext/gecode-2.1.1/gecode/kernel/var.icc +0 -120
- data/ext/gecode-2.1.1/gecode/kernel/view.icc +0 -611
- data/ext/gecode-2.1.1/gecode/minimodel.hh +0 -1165
- data/ext/gecode-2.1.1/gecode/minimodel/arithmetic.cc +0 -179
- data/ext/gecode-2.1.1/gecode/search.hh +0 -752
- data/ext/gecode-2.1.1/gecode/search/reco-stack.icc +0 -237
- data/ext/gecode-2.1.1/gecode/serialization.hh +0 -149
- data/ext/gecode-2.1.1/gecode/serialization/boost.cc +0 -78
- data/ext/gecode-2.1.1/gecode/serialization/javascript.cc +0 -340
- data/ext/gecode-2.1.1/gecode/serialization/register.cc +0 -8142
- data/ext/gecode-2.1.1/gecode/set.hh +0 -970
- data/ext/gecode-2.1.1/gecode/set/projectors.hh +0 -438
- data/ext/gecode-2.1.1/gecode/set/projectors/formula.cc +0 -312
- data/ext/gecode-2.1.1/gecode/set/rel-op/common.icc +0 -557
- data/ext/gecode-2.1.1/gecode/set/rel-op/inter.icc +0 -409
- data/ext/gecode-2.1.1/gecode/set/rel/re-subset.icc +0 -172
- data/ext/gecode-2.1.1/gecode/set/select.cc +0 -135
- data/ext/gecode-2.1.1/gecode/set/select.hh +0 -233
- data/ext/gecode-2.1.1/gecode/set/select/disjoint.cc +0 -308
- data/ext/gecode-2.1.1/gecode/set/select/disjoint.icc +0 -75
- data/ext/gecode-2.1.1/gecode/set/select/idxarray.hh +0 -113
- data/ext/gecode-2.1.1/gecode/set/select/idxarray.icc +0 -155
- data/ext/gecode-2.1.1/gecode/set/select/inter.icc +0 -349
- data/ext/gecode-2.1.1/gecode/set/select/union.icc +0 -371
- data/ext/gecode-2.1.1/gecode/set/select/unionConst.icc +0 -334
- data/ext/gecode-2.1.1/gecode/set/var-imp/set.cc +0 -214
- data/ext/gecode-2.1.1/gecode/set/var/set.icc +0 -303
- data/ext/gecode-2.1.1/gecode/set/view.icc +0 -1503
- data/ext/gecode-2.1.1/gecode/set/view/complement.icc +0 -629
- data/ext/gecode-2.1.1/gecode/support/block-allocator.icc +0 -158
- data/ext/gecode-2.1.1/gecode/support/config.icc.in +0 -80
- data/ext/gecode-2.1.1/gecode/support/sentinel-stack.icc +0 -122
- data/ext/gecode-2.1.1/gecode/support/symbol.cc +0 -226
- data/ext/gecode-2.1.1/gecode/support/symbol.icc +0 -130
- data/ext/gecode-2.1.1/misc/gecode-gist.pc.in +0 -45
- data/ext/gecode-2.1.1/misc/gecode-minimodel.pc.in +0 -45
- data/ext/gecode-2.1.1/misc/gecode-search.pc.in +0 -45
- data/ext/gecode-2.1.1/misc/gecode-serialization.pc.in +0 -45
- data/ext/gecode-2.1.1/misc/gecode.pc.in +0 -45
- data/ext/gecode-2.1.1/misc/genstatistics.perl +0 -178
- data/ext/gecode-2.1.1/misc/genvariables.perl +0 -905
- data/lib/gecoder/interface/constraints/set_enum/select.rb +0 -79
- data/lib/gecoder/interface/model.rb +0 -453
- data/lib/gecoder/interface/model_sugar.rb +0 -84
- data/specs/constraints/set_enum/select.rb +0 -73
@@ -0,0 +1,158 @@
|
|
1
|
+
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
|
2
|
+
/*
|
3
|
+
* Main authors:
|
4
|
+
* Christian Schulte <schulte@gecode.org>
|
5
|
+
*
|
6
|
+
* Copyright:
|
7
|
+
* Christian Schulte, 2008
|
8
|
+
*
|
9
|
+
* Last modified:
|
10
|
+
* $Date: 2008-07-11 09:44:29 +0200 (Fri, 11 Jul 2008) $ by $Author: tack $
|
11
|
+
* $Revision: 7307 $
|
12
|
+
*
|
13
|
+
* This file is part of Gecode, the generic constraint
|
14
|
+
* development environment:
|
15
|
+
* http://www.gecode.org
|
16
|
+
*
|
17
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
18
|
+
* a copy of this software and associated documentation files (the
|
19
|
+
* "Software"), to deal in the Software without restriction, including
|
20
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
21
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
22
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
23
|
+
* the following conditions:
|
24
|
+
*
|
25
|
+
* The above copyright notice and this permission notice shall be
|
26
|
+
* included in all copies or substantial portions of the Software.
|
27
|
+
*
|
28
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
29
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
30
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
31
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
32
|
+
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
33
|
+
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
34
|
+
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
35
|
+
*
|
36
|
+
*/
|
37
|
+
|
38
|
+
#ifndef __GECODE_INT_SUPPORT_VALUES_HH__
|
39
|
+
#define __GECODE_INT_SUPPORT_VALUES_HH__
|
40
|
+
|
41
|
+
#include "gecode/int.hh"
|
42
|
+
|
43
|
+
namespace Gecode { namespace Int {
|
44
|
+
|
45
|
+
/**
|
46
|
+
* \brief Support value iterator and recorder
|
47
|
+
*
|
48
|
+
* Requires \code #include "gecode/int/support-values.hh" \endcode
|
49
|
+
* \ingroup FuncIntProp
|
50
|
+
*/
|
51
|
+
template<class View>
|
52
|
+
class SupportValues {
|
53
|
+
private:
|
54
|
+
/// Number of bits per unsigned integer
|
55
|
+
static const unsigned int bpui = sizeof(unsigned int) * 8;
|
56
|
+
/// Range and position information
|
57
|
+
class RangePos {
|
58
|
+
public:
|
59
|
+
int min; ///< Minimum of range
|
60
|
+
unsigned int pos; ///< Starting position of range
|
61
|
+
};
|
62
|
+
/// Value iterator for unsupported values
|
63
|
+
class Unsupported {
|
64
|
+
private:
|
65
|
+
/// Current range
|
66
|
+
RangePos* rp;
|
67
|
+
/// Current position
|
68
|
+
unsigned int p;
|
69
|
+
/// Access to other information
|
70
|
+
SupportValues& sv;
|
71
|
+
/// Find next unsupported value
|
72
|
+
void find(void);
|
73
|
+
public:
|
74
|
+
/// \name Constructors and initialization
|
75
|
+
//@{
|
76
|
+
/// Initialize with values from \a sv
|
77
|
+
Unsupported(SupportValues& sv0);
|
78
|
+
//@}
|
79
|
+
|
80
|
+
/// \name Iteration control
|
81
|
+
//@{
|
82
|
+
/// Test whether iterator is still at a value or done
|
83
|
+
bool operator()(void) const;
|
84
|
+
/// Move iterator to next value (if possible)
|
85
|
+
void operator++(void);
|
86
|
+
//@}
|
87
|
+
|
88
|
+
/// \name Value access
|
89
|
+
//@{
|
90
|
+
/// Return current value
|
91
|
+
int val(void) const;
|
92
|
+
//@}
|
93
|
+
};
|
94
|
+
|
95
|
+
/// The view
|
96
|
+
View x;
|
97
|
+
/// Array of bits
|
98
|
+
unsigned int* bits;
|
99
|
+
/// Start of range and position information
|
100
|
+
RangePos* rp_fst;
|
101
|
+
/// End of range and position information
|
102
|
+
RangePos* rp_lst;
|
103
|
+
/// Current range
|
104
|
+
RangePos* rp;
|
105
|
+
/// Current value
|
106
|
+
int v;
|
107
|
+
/// Current maximum of range
|
108
|
+
int max;
|
109
|
+
|
110
|
+
/// Set bit at position \a i
|
111
|
+
void set(unsigned int i);
|
112
|
+
/// Test whether bit is set at position \a i
|
113
|
+
bool bit(unsigned int i) const;
|
114
|
+
/// Mark \a n as supported and return whether value can be supported
|
115
|
+
bool _support(int n);
|
116
|
+
public:
|
117
|
+
/// Initialize for view \a x
|
118
|
+
SupportValues(View x);
|
119
|
+
/// Destructor
|
120
|
+
~SupportValues(void);
|
121
|
+
|
122
|
+
/// \name Iteration control
|
123
|
+
//@{
|
124
|
+
/// Reset iterator
|
125
|
+
void reset(void);
|
126
|
+
/// Test whether iterator is still at a value or done
|
127
|
+
bool operator()(void) const;
|
128
|
+
/// Move iterator to next value (if possible)
|
129
|
+
void operator++(void);
|
130
|
+
//@}
|
131
|
+
|
132
|
+
/// \name Value access
|
133
|
+
//@{
|
134
|
+
/// Return current value
|
135
|
+
int val(void) const;
|
136
|
+
//@}
|
137
|
+
|
138
|
+
/// \name Support control
|
139
|
+
//@{
|
140
|
+
/// Mark current (iterator) value as supported
|
141
|
+
void support(void);
|
142
|
+
/// Mark \a n as supported if possible
|
143
|
+
bool support(int n);
|
144
|
+
/// Mark \a n as supported if possible
|
145
|
+
bool support(double n);
|
146
|
+
/// Remove all unsupported values
|
147
|
+
ModEvent tell(Space* home);
|
148
|
+
//@}
|
149
|
+
};
|
150
|
+
|
151
|
+
}}
|
152
|
+
|
153
|
+
#include "gecode/int/support-values.icc"
|
154
|
+
|
155
|
+
#endif
|
156
|
+
|
157
|
+
// STATISTICS: int-prop
|
158
|
+
|
@@ -0,0 +1,203 @@
|
|
1
|
+
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
|
2
|
+
/*
|
3
|
+
* Main authors:
|
4
|
+
* Christian Schulte <schulte@gecode.org>
|
5
|
+
*
|
6
|
+
* Copyright:
|
7
|
+
* Christian Schulte, 2008
|
8
|
+
*
|
9
|
+
* Last modified:
|
10
|
+
* $Date: 2008-08-07 12:00:15 +0200 (Thu, 07 Aug 2008) $ by $Author: tack $
|
11
|
+
* $Revision: 7518 $
|
12
|
+
*
|
13
|
+
* This file is part of Gecode, the generic constraint
|
14
|
+
* development environment:
|
15
|
+
* http://www.gecode.org
|
16
|
+
*
|
17
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
18
|
+
* a copy of this software and associated documentation files (the
|
19
|
+
* "Software"), to deal in the Software without restriction, including
|
20
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
21
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
22
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
23
|
+
* the following conditions:
|
24
|
+
*
|
25
|
+
* The above copyright notice and this permission notice shall be
|
26
|
+
* included in all copies or substantial portions of the Software.
|
27
|
+
*
|
28
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
29
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
30
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
31
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
32
|
+
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
33
|
+
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
34
|
+
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
35
|
+
*
|
36
|
+
*/
|
37
|
+
|
38
|
+
namespace Gecode { namespace Int {
|
39
|
+
|
40
|
+
template<class View>
|
41
|
+
forceinline void
|
42
|
+
SupportValues<View>::set(unsigned int i) {
|
43
|
+
unsigned int p = i / bpui;
|
44
|
+
bits[p] |= 1 << (i-p*bpui);
|
45
|
+
}
|
46
|
+
|
47
|
+
template<class View>
|
48
|
+
forceinline bool
|
49
|
+
SupportValues<View>::bit(unsigned int i) const {
|
50
|
+
unsigned int p = i / bpui;
|
51
|
+
return (bits[p] & (1 << (i-p*bpui))) != 0;
|
52
|
+
}
|
53
|
+
|
54
|
+
template<class View>
|
55
|
+
forceinline void
|
56
|
+
SupportValues<View>::reset(void) {
|
57
|
+
rp = rp_fst; v = rp->min;
|
58
|
+
max = rp->min + static_cast<int>((rp+1)->pos - rp->pos) - 1;
|
59
|
+
}
|
60
|
+
|
61
|
+
template<class View>
|
62
|
+
inline
|
63
|
+
SupportValues<View>::SupportValues(View x0) : x(x0) {
|
64
|
+
bits = Memory::bmalloc<unsigned int>((x.size() / bpui) + 1);
|
65
|
+
for (unsigned int i = (x.size() / bpui) + 1; i--; )
|
66
|
+
bits[i] = 0;
|
67
|
+
unsigned int n = 0;
|
68
|
+
for (ViewRanges<View> r(x); r(); ++r)
|
69
|
+
n++;
|
70
|
+
rp_fst = Memory::bmalloc<RangePos>(n+1);
|
71
|
+
rp_lst = rp_fst + n;
|
72
|
+
unsigned int p = 0;
|
73
|
+
int i = 0;
|
74
|
+
for (ViewRanges<View> r(x); r(); ++r) {
|
75
|
+
rp_fst[i].min = r.min();
|
76
|
+
rp_fst[i].pos = p;
|
77
|
+
p += r.width(); i++;
|
78
|
+
}
|
79
|
+
rp_fst[i].pos=p;
|
80
|
+
reset();
|
81
|
+
}
|
82
|
+
|
83
|
+
template<class View>
|
84
|
+
inline
|
85
|
+
SupportValues<View>::~SupportValues(void) {
|
86
|
+
Memory::free(bits);
|
87
|
+
Memory::free(rp_fst);
|
88
|
+
}
|
89
|
+
|
90
|
+
template<class View>
|
91
|
+
forceinline void
|
92
|
+
SupportValues<View>::operator++(void) {
|
93
|
+
if (++v > max)
|
94
|
+
if (++rp < rp_lst) {
|
95
|
+
v = rp->min;
|
96
|
+
max = rp->min + static_cast<int>((rp+1)->pos - rp->pos) - 1;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
template<class View>
|
101
|
+
forceinline bool
|
102
|
+
SupportValues<View>::operator()(void) const {
|
103
|
+
return rp < rp_lst;
|
104
|
+
}
|
105
|
+
|
106
|
+
template<class View>
|
107
|
+
forceinline int
|
108
|
+
SupportValues<View>::val(void) const {
|
109
|
+
return v;
|
110
|
+
}
|
111
|
+
|
112
|
+
template<class View>
|
113
|
+
forceinline void
|
114
|
+
SupportValues<View>::support(void) {
|
115
|
+
set(rp->pos + static_cast<unsigned int>(v-rp->min));
|
116
|
+
}
|
117
|
+
|
118
|
+
template<class View>
|
119
|
+
forceinline bool
|
120
|
+
SupportValues<View>::_support(int n) {
|
121
|
+
RangePos* l = rp_fst;
|
122
|
+
RangePos* r = rp_lst-1;
|
123
|
+
while (true) {
|
124
|
+
if (l > r) return false;
|
125
|
+
RangePos* m = l + (r-l)/2;
|
126
|
+
int max = m->min + static_cast<int>((m+1)->pos - m->pos) - 1;
|
127
|
+
if ((n >= m->min) && (n <= max)) {
|
128
|
+
set(m->pos + static_cast<unsigned int>(n-m->min));
|
129
|
+
return true;
|
130
|
+
}
|
131
|
+
if (l == r) return false;
|
132
|
+
if (n < m->min)
|
133
|
+
r=m-1;
|
134
|
+
else
|
135
|
+
l=m+1;
|
136
|
+
}
|
137
|
+
GECODE_NEVER;
|
138
|
+
return false;
|
139
|
+
}
|
140
|
+
|
141
|
+
template<class View>
|
142
|
+
forceinline bool
|
143
|
+
SupportValues<View>::support(int n) {
|
144
|
+
if ((n < x.min()) || (n > x.max()))
|
145
|
+
return false;
|
146
|
+
return _support(n);
|
147
|
+
}
|
148
|
+
|
149
|
+
template<class View>
|
150
|
+
forceinline bool
|
151
|
+
SupportValues<View>::support(double n) {
|
152
|
+
if ((n < x.min()) || (n > x.max()))
|
153
|
+
return false;
|
154
|
+
return _support(static_cast<int>(n));
|
155
|
+
}
|
156
|
+
|
157
|
+
template<class View>
|
158
|
+
forceinline void
|
159
|
+
SupportValues<View>::Unsupported::find(void) {
|
160
|
+
// Skip all supported positions
|
161
|
+
while ((p < sv.x.size()) && sv.bit(p))
|
162
|
+
p++;
|
163
|
+
// Move to matching range
|
164
|
+
while ((rp < sv.rp_lst) && (p >= (rp+1)->pos))
|
165
|
+
rp++;
|
166
|
+
}
|
167
|
+
|
168
|
+
template<class View>
|
169
|
+
forceinline
|
170
|
+
SupportValues<View>::Unsupported::Unsupported(SupportValues& sv0)
|
171
|
+
: rp(sv0.rp_fst), p(0), sv(sv0) {
|
172
|
+
find();
|
173
|
+
}
|
174
|
+
|
175
|
+
template<class View>
|
176
|
+
forceinline void
|
177
|
+
SupportValues<View>::Unsupported::operator++(void) {
|
178
|
+
p++; find();
|
179
|
+
}
|
180
|
+
|
181
|
+
template<class View>
|
182
|
+
forceinline bool
|
183
|
+
SupportValues<View>::Unsupported::operator()(void) const {
|
184
|
+
return rp < sv.rp_lst;
|
185
|
+
}
|
186
|
+
|
187
|
+
template<class View>
|
188
|
+
forceinline int
|
189
|
+
SupportValues<View>::Unsupported::val(void) const {
|
190
|
+
return rp->min+(p-rp->pos);
|
191
|
+
}
|
192
|
+
|
193
|
+
template<class View>
|
194
|
+
inline ModEvent
|
195
|
+
SupportValues<View>::tell(Space* home) {
|
196
|
+
Unsupported u(*this);
|
197
|
+
return x.minus_v(home,u,false);
|
198
|
+
}
|
199
|
+
|
200
|
+
}}
|
201
|
+
|
202
|
+
// STATISTICS: int-prop
|
203
|
+
|
File without changes
|
@@ -0,0 +1,745 @@
|
|
1
|
+
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
|
2
|
+
/*
|
3
|
+
* Main authors:
|
4
|
+
* Christian Schulte <schulte@gecode.org>
|
5
|
+
*
|
6
|
+
* Contributing authors:
|
7
|
+
* Guido Tack <tack@gecode.org>
|
8
|
+
*
|
9
|
+
* Copyright:
|
10
|
+
* Christian Schulte, 2002
|
11
|
+
* Guido Tack, 2004
|
12
|
+
*
|
13
|
+
* Last modified:
|
14
|
+
* $Date: 2008-07-11 10:14:37 +0200 (Fri, 11 Jul 2008) $ by $Author: tack $
|
15
|
+
* $Revision: 7316 $
|
16
|
+
*
|
17
|
+
* This file is part of Gecode, the generic constraint
|
18
|
+
* development environment:
|
19
|
+
* http://www.gecode.org
|
20
|
+
*
|
21
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
22
|
+
* a copy of this software and associated documentation files (the
|
23
|
+
* "Software"), to deal in the Software without restriction, including
|
24
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
25
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
26
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
27
|
+
* the following conditions:
|
28
|
+
*
|
29
|
+
* The above copyright notice and this permission notice shall be
|
30
|
+
* included in all copies or substantial portions of the Software.
|
31
|
+
*
|
32
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
33
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
34
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
35
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
36
|
+
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
37
|
+
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
38
|
+
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
39
|
+
*
|
40
|
+
*/
|
41
|
+
|
42
|
+
#include <cmath>
|
43
|
+
|
44
|
+
namespace Gecode { namespace Int {
|
45
|
+
|
46
|
+
class IntVarImp;
|
47
|
+
class BoolVarImp;
|
48
|
+
|
49
|
+
/**
|
50
|
+
* \brief Integer delta information for advisors
|
51
|
+
*
|
52
|
+
* Note that the same delta information is used for both
|
53
|
+
* integer and Boolean variables and views.
|
54
|
+
*/
|
55
|
+
class IntDelta : public Delta {
|
56
|
+
friend class IntVarImp;
|
57
|
+
friend class BoolVarImp;
|
58
|
+
private:
|
59
|
+
int _min; ///< Minimum value just pruned
|
60
|
+
int _max; ///< Largest value just pruned
|
61
|
+
public:
|
62
|
+
/// Create integer delta as providing no information (if \a any is true)
|
63
|
+
IntDelta(bool any=true);
|
64
|
+
/// Create integer delta with \a min and \a max
|
65
|
+
IntDelta(int min, int max);
|
66
|
+
private:
|
67
|
+
/// Return minimum
|
68
|
+
int min(void) const;
|
69
|
+
/// Return maximum
|
70
|
+
int max(void) const;
|
71
|
+
/// Test whether any domain change has happened
|
72
|
+
bool any(void) const;
|
73
|
+
};
|
74
|
+
|
75
|
+
}}
|
76
|
+
|
77
|
+
#include "gecode/int/var-imp/delta.icc"
|
78
|
+
|
79
|
+
namespace Gecode { namespace Int {
|
80
|
+
|
81
|
+
class IntVarImpFwd;
|
82
|
+
class IntVarImpBwd;
|
83
|
+
|
84
|
+
/**
|
85
|
+
* \brief Integer variable implementation
|
86
|
+
*
|
87
|
+
* \ingroup Other
|
88
|
+
*/
|
89
|
+
class IntVarImp : public IntVarImpBase {
|
90
|
+
friend class IntVarImpFwd;
|
91
|
+
friend class IntVarImpBwd;
|
92
|
+
protected:
|
93
|
+
/**
|
94
|
+
* \brief Lists of ranges (intervals)
|
95
|
+
*
|
96
|
+
* Range lists are doubly-linked storing the pointer to both
|
97
|
+
* the next and the previous element in a single pointer.
|
98
|
+
* That means that the next element is only available when
|
99
|
+
* the previous element is supplied as additional information.
|
100
|
+
* The same holds true for access to the previous element.
|
101
|
+
*/
|
102
|
+
class RangeList : public FreeList {
|
103
|
+
protected:
|
104
|
+
/// Minimum of range
|
105
|
+
int _min;
|
106
|
+
/// Maximum of range
|
107
|
+
int _max;
|
108
|
+
public:
|
109
|
+
/// \name Constructors
|
110
|
+
//@{
|
111
|
+
/// Default constructor (noop)
|
112
|
+
RangeList(void);
|
113
|
+
/// Initialize with minimum \a min and maximum \a max
|
114
|
+
RangeList(int min, int max);
|
115
|
+
/// Initialize with minimum \a min and maximum \a max and predecessor \a p and successor \a n
|
116
|
+
RangeList(int min, int max, RangeList* p, RangeList* n);
|
117
|
+
//@}
|
118
|
+
|
119
|
+
/// \name Access
|
120
|
+
//@{
|
121
|
+
/// Return minimum
|
122
|
+
int min(void) const;
|
123
|
+
/// Return maximum
|
124
|
+
int max(void) const;
|
125
|
+
/// Return width (distance between maximum and minimum)
|
126
|
+
unsigned int width(void) const;
|
127
|
+
|
128
|
+
/// Return next element (from previous \a p)
|
129
|
+
RangeList* next(const RangeList* p) const;
|
130
|
+
/// Return previous element (from next \a n)
|
131
|
+
RangeList* prev(const RangeList* n) const;
|
132
|
+
//@}
|
133
|
+
|
134
|
+
/// \name Update
|
135
|
+
//@{
|
136
|
+
/// Set minimum to \a n
|
137
|
+
void min(int n);
|
138
|
+
/// Set maximum to \a n
|
139
|
+
void max(int n);
|
140
|
+
|
141
|
+
/// Set previous element to \a p and next element to \a n
|
142
|
+
void prevnext(RangeList* p, RangeList* n);
|
143
|
+
/// Set next element from \a o to \a n
|
144
|
+
void next(RangeList* o, RangeList* n);
|
145
|
+
/// Set previous element from \a o to \a n
|
146
|
+
void prev(RangeList* o, RangeList* n);
|
147
|
+
/// Restore simple link to next element (so that it becomes a true free list)
|
148
|
+
void fix(RangeList* n);
|
149
|
+
//@}
|
150
|
+
|
151
|
+
/// \name Memory management
|
152
|
+
//@{
|
153
|
+
/**
|
154
|
+
* \brief Free memory for all elements between this and \a l (inclusive)
|
155
|
+
*
|
156
|
+
* \a p must be the pointer to the previous element of \c this.
|
157
|
+
*/
|
158
|
+
void dispose(Space* home, RangeList* p, RangeList* l);
|
159
|
+
/**
|
160
|
+
* \brief Free memory for all elements between this and \a l (inclusive)
|
161
|
+
*
|
162
|
+
* This routine assumes that the list has already been fixed.
|
163
|
+
*/
|
164
|
+
void dispose(Space* home, RangeList* l);
|
165
|
+
/// Free memory for this element
|
166
|
+
void dispose(Space* home);
|
167
|
+
|
168
|
+
/// Allocate memory from space
|
169
|
+
static void* operator new(size_t s, Space* home);
|
170
|
+
/// No-op (for exceptions)
|
171
|
+
static void operator delete(void*);
|
172
|
+
/// No-op (use dispose instead)
|
173
|
+
static void operator delete(void*, Space*);
|
174
|
+
//@}
|
175
|
+
};
|
176
|
+
|
177
|
+
/**
|
178
|
+
* \brief Domain information
|
179
|
+
*
|
180
|
+
* Provides fast access to minimum and maximum of the
|
181
|
+
* entire domain and links to the first element
|
182
|
+
* of a RangeList defining the domain.
|
183
|
+
*/
|
184
|
+
RangeList dom;
|
185
|
+
/// Link the last element
|
186
|
+
RangeList* _lst;
|
187
|
+
/// Return first element of rangelist
|
188
|
+
RangeList* fst(void) const;
|
189
|
+
/// Set first element of rangelist
|
190
|
+
void fst(RangeList* f);
|
191
|
+
/// Return last element of rangelist
|
192
|
+
RangeList* lst(void) const;
|
193
|
+
/// Set last element of rangelist
|
194
|
+
void lst(RangeList* l);
|
195
|
+
/// Size of holes in the domain
|
196
|
+
unsigned int holes;
|
197
|
+
|
198
|
+
protected:
|
199
|
+
/// Constructor for cloning \a x
|
200
|
+
IntVarImp(Space* home, bool share, IntVarImp& x);
|
201
|
+
public:
|
202
|
+
/// Initialize with range domain
|
203
|
+
IntVarImp(Space* home, int min, int max);
|
204
|
+
/// Initialize with domain specified by \a d
|
205
|
+
IntVarImp(Space* home, const IntSet& d);
|
206
|
+
|
207
|
+
/// \name Value access
|
208
|
+
//@{
|
209
|
+
/// Return minimum of domain
|
210
|
+
int min(void) const;
|
211
|
+
/// Return maximum of domain
|
212
|
+
int max(void) const;
|
213
|
+
/// Return assigned value (only if assigned)
|
214
|
+
int val(void) const;
|
215
|
+
/// Return median of domain
|
216
|
+
GECODE_INT_EXPORT int med(void) const;
|
217
|
+
|
218
|
+
/// Return size (cardinality) of domain
|
219
|
+
unsigned int size(void) const;
|
220
|
+
/// Return width of domain (distance between maximum and minimum)
|
221
|
+
unsigned int width(void) const;
|
222
|
+
/// Return regret of domain minimum (distance to next larger value)
|
223
|
+
unsigned int regret_min(void) const;
|
224
|
+
/// Return regret of domain maximum (distance to next smaller value)
|
225
|
+
unsigned int regret_max(void) const;
|
226
|
+
//@}
|
227
|
+
|
228
|
+
private:
|
229
|
+
/// Test whether \a n is contained in domain (full domain)
|
230
|
+
GECODE_INT_EXPORT bool in_full(int n) const;
|
231
|
+
|
232
|
+
public:
|
233
|
+
/// \name Domain tests
|
234
|
+
//@{
|
235
|
+
/// Test whether domain is a range
|
236
|
+
bool range(void) const;
|
237
|
+
/// Test whether variable is assigned
|
238
|
+
bool assigned(void) const;
|
239
|
+
|
240
|
+
/// Test whether \a n is contained in domain
|
241
|
+
bool in(int n) const;
|
242
|
+
/// Test whether \a n is contained in domain
|
243
|
+
bool in(double n) const;
|
244
|
+
//@}
|
245
|
+
|
246
|
+
protected:
|
247
|
+
/// \name Range list access for iteration
|
248
|
+
//@{
|
249
|
+
/// Return range list for forward iteration
|
250
|
+
const RangeList* ranges_fwd(void) const;
|
251
|
+
/// Return range list for backward iteration
|
252
|
+
const RangeList* ranges_bwd(void) const;
|
253
|
+
//@}
|
254
|
+
|
255
|
+
private:
|
256
|
+
/// Test whether \a n is closer to the minimum or maximum
|
257
|
+
bool closer_min(int b) const;
|
258
|
+
/// \name Domain update by value (full domain)
|
259
|
+
//@{
|
260
|
+
/// Restrict domain values to be less or equal than \a n
|
261
|
+
GECODE_INT_EXPORT ModEvent lq_full(Space* home, int n);
|
262
|
+
/// Restrict domain values to be greater or equal than \a n
|
263
|
+
GECODE_INT_EXPORT ModEvent gq_full(Space* home, int n);
|
264
|
+
/// Restrict domain values to be equal to current minimum of domain
|
265
|
+
GECODE_INT_EXPORT ModEvent eq_full(Space* home, int n);
|
266
|
+
/// Restrict domain values to be different from \a n
|
267
|
+
GECODE_INT_EXPORT ModEvent nq_full(Space* home, int n);
|
268
|
+
//@}
|
269
|
+
public:
|
270
|
+
/// \name Domain update by value
|
271
|
+
//@{
|
272
|
+
/// Restrict domain values to be less or equal than \a n
|
273
|
+
ModEvent lq(Space* home, int n);
|
274
|
+
/// Restrict domain values to be less or equal than \a n
|
275
|
+
ModEvent lq(Space* home, double n);
|
276
|
+
|
277
|
+
/// Restrict domain values to be greater or equal than \a n
|
278
|
+
ModEvent gq(Space* home, int n);
|
279
|
+
/// Restrict domain values to be greater or equal than \a n
|
280
|
+
ModEvent gq(Space* home, double n);
|
281
|
+
|
282
|
+
/// Restrict domain values to be different from \a n
|
283
|
+
ModEvent nq(Space* home, int n);
|
284
|
+
/// Restrict domain values to be different from \a n
|
285
|
+
ModEvent nq(Space* home, double n);
|
286
|
+
|
287
|
+
/// Restrict domain values to be equal to \a n
|
288
|
+
ModEvent eq(Space* home, int n);
|
289
|
+
/// Restrict domain values to be equal to \a n
|
290
|
+
ModEvent eq(Space* home, double n);
|
291
|
+
//@}
|
292
|
+
|
293
|
+
/**
|
294
|
+
* \name Domain update by iterator
|
295
|
+
*
|
296
|
+
* Variable domains can be both updated by range and value iterators.
|
297
|
+
* Value iterators do not need to be strict in that the same value
|
298
|
+
* is allowed to occur more than once in the iterated sequence.
|
299
|
+
*
|
300
|
+
* The argument \a depends must be true, if the iterator
|
301
|
+
* passed as argument depends on the variable implementation
|
302
|
+
* on which the operation is invoked. In this case, the variable
|
303
|
+
* implementation is only updated after the iterator has been
|
304
|
+
* consumed. Otherwise, the domain might be updated concurrently
|
305
|
+
* while following the iterator.
|
306
|
+
*
|
307
|
+
*/
|
308
|
+
//@{
|
309
|
+
/// Replace domain by ranges described by \a i
|
310
|
+
template <class I>
|
311
|
+
ModEvent narrow_r(Space* home, I& i, bool depends=true);
|
312
|
+
/// Intersect domain with ranges described by \a i
|
313
|
+
template <class I>
|
314
|
+
ModEvent inter_r(Space* home, I& i, bool depends=true);
|
315
|
+
/// Remove from domain the ranges described by \a i
|
316
|
+
template <class I>
|
317
|
+
ModEvent minus_r(Space* home, I& i, bool depends=true);
|
318
|
+
/// Replace domain by values described by \a i
|
319
|
+
template <class I>
|
320
|
+
ModEvent narrow_v(Space* home, I& i, bool depends=true);
|
321
|
+
/// Intersect domain with values described by \a i
|
322
|
+
template <class I>
|
323
|
+
ModEvent inter_v(Space* home, I& i, bool depends=true);
|
324
|
+
/// Remove from domain the values described by \a i
|
325
|
+
template <class I>
|
326
|
+
ModEvent minus_v(Space* home, I& i, bool depends=true);
|
327
|
+
//@}
|
328
|
+
|
329
|
+
/// \name Dependencies
|
330
|
+
//@{
|
331
|
+
/**
|
332
|
+
* \brief Subscribe propagator \a p with propagation condition \a pc to variable
|
333
|
+
*
|
334
|
+
* In case \a process is false, the propagator is just subscribed but
|
335
|
+
* not processed for execution (this must be used when creating
|
336
|
+
* subscriptions during propagation).
|
337
|
+
*
|
338
|
+
*/
|
339
|
+
void subscribe(Space* home, Propagator* p, PropCond pc, bool process=true);
|
340
|
+
/// Cancel subscription of propagator \a p with propagation condition \a pc
|
341
|
+
void cancel(Space* home, Propagator* p, PropCond pc);
|
342
|
+
/// Subscribe advisor \a a to variable
|
343
|
+
void subscribe(Space* home, Advisor* a);
|
344
|
+
/// Cancel subscription of advisor \a a
|
345
|
+
void cancel(Space* home, Advisor* a);
|
346
|
+
//@}
|
347
|
+
|
348
|
+
/// \name Variable implementation-dependent propagator support
|
349
|
+
//@{
|
350
|
+
/// Translate modification event \a me to modification event delta for view
|
351
|
+
static ModEventDelta med(ModEvent me);
|
352
|
+
//@}
|
353
|
+
|
354
|
+
|
355
|
+
private:
|
356
|
+
/// Return copy of not-yet copied variable
|
357
|
+
GECODE_INT_EXPORT IntVarImp* perform_copy(Space* home, bool share);
|
358
|
+
public:
|
359
|
+
/// \name Cloning
|
360
|
+
//@{
|
361
|
+
/// Return copy of this variable
|
362
|
+
IntVarImp* copy(Space* home, bool share);
|
363
|
+
//@}
|
364
|
+
|
365
|
+
/// \name Reflection
|
366
|
+
//@{
|
367
|
+
/// Return specification
|
368
|
+
GECODE_INT_EXPORT Reflection::Arg*
|
369
|
+
spec(const Space* home, Reflection::VarMap& m) const;
|
370
|
+
/// Create variable implementation from specification
|
371
|
+
static GECODE_INT_EXPORT VarImpBase*
|
372
|
+
create(Space* home, Reflection::VarSpec& spec);
|
373
|
+
/// Constrain variable implementation using specification
|
374
|
+
static GECODE_INT_EXPORT void
|
375
|
+
constrain(Space* home, VarImpBase* v, Reflection::VarSpec& spec);
|
376
|
+
//@}
|
377
|
+
|
378
|
+
/// \name Delta information for advisors
|
379
|
+
//@{
|
380
|
+
/// Return modification event
|
381
|
+
static ModEvent modevent(const Delta* d);
|
382
|
+
/// Return minimum value just pruned
|
383
|
+
int min(const Delta* d) const;
|
384
|
+
/// Return maximum value just pruned
|
385
|
+
int max(const Delta* d) const;
|
386
|
+
/// Test whether arbitrary values got pruned
|
387
|
+
bool any(const Delta* d) const;
|
388
|
+
//@}
|
389
|
+
};
|
390
|
+
|
391
|
+
|
392
|
+
/**
|
393
|
+
* \brief Range iterator for ranges of integer variable implementation
|
394
|
+
*
|
395
|
+
*/
|
396
|
+
class IntVarImpFwd {
|
397
|
+
private:
|
398
|
+
/// Previous range
|
399
|
+
const IntVarImp::RangeList* p;
|
400
|
+
/// Current range
|
401
|
+
const IntVarImp::RangeList* c;
|
402
|
+
public:
|
403
|
+
/// \name Constructors and initialization
|
404
|
+
//@{
|
405
|
+
/// Default constructor
|
406
|
+
IntVarImpFwd(void);
|
407
|
+
/// Initialize with ranges from variable implementation \a x
|
408
|
+
IntVarImpFwd(const IntVarImp* x);
|
409
|
+
/// Initialize with ranges from variable implementation \a x
|
410
|
+
void init(const IntVarImp* x);
|
411
|
+
//@}
|
412
|
+
|
413
|
+
/// \name Iteration control
|
414
|
+
//@{
|
415
|
+
/// Test whether iterator is still at a range or done
|
416
|
+
bool operator()(void) const;
|
417
|
+
/// Move iterator to next range (if possible)
|
418
|
+
void operator++(void);
|
419
|
+
//@}
|
420
|
+
|
421
|
+
/// \name Range access
|
422
|
+
//@{
|
423
|
+
/// Return smallest value of range
|
424
|
+
int min(void) const;
|
425
|
+
/// Return largest value of range
|
426
|
+
int max(void) const;
|
427
|
+
/// Return width of range (distance between minimum and maximum)
|
428
|
+
unsigned int width(void) const;
|
429
|
+
//@}
|
430
|
+
};
|
431
|
+
|
432
|
+
/**
|
433
|
+
* \brief Backward iterator for ranges of integer variable implementations
|
434
|
+
*
|
435
|
+
* Note that this iterator is not a range iterator as the ranges
|
436
|
+
* are not iterated in increasing but in decreasing order.
|
437
|
+
*
|
438
|
+
*/
|
439
|
+
class IntVarImpBwd {
|
440
|
+
private:
|
441
|
+
/// Next range
|
442
|
+
const IntVarImp::RangeList* n;
|
443
|
+
/// Current range
|
444
|
+
const IntVarImp::RangeList* c;
|
445
|
+
public:
|
446
|
+
/// \name Constructors and initialization
|
447
|
+
//@{
|
448
|
+
/// Default constructor
|
449
|
+
IntVarImpBwd(void);
|
450
|
+
/// Initialize with ranges from variable implementation \a x
|
451
|
+
IntVarImpBwd(const IntVarImp* x);
|
452
|
+
/// Initialize with ranges from variable implementation \a x
|
453
|
+
void init(const IntVarImp* x);
|
454
|
+
//@}
|
455
|
+
|
456
|
+
/// \name Iteration control
|
457
|
+
//@{
|
458
|
+
/// Test whether iterator is still at a range or done
|
459
|
+
bool operator()(void) const;
|
460
|
+
/// Move iterator to previous range (if possible)
|
461
|
+
void operator++(void);
|
462
|
+
//@}
|
463
|
+
|
464
|
+
/// \name Range access
|
465
|
+
//@{
|
466
|
+
/// Return smallest value of range
|
467
|
+
int min(void) const;
|
468
|
+
/// Return largest value of range
|
469
|
+
int max(void) const;
|
470
|
+
/// Return width of range (distance between minimum and maximum)
|
471
|
+
unsigned int width(void) const;
|
472
|
+
//@}
|
473
|
+
};
|
474
|
+
|
475
|
+
}}
|
476
|
+
|
477
|
+
#include "gecode/int/var-imp/int.icc"
|
478
|
+
|
479
|
+
namespace Gecode {
|
480
|
+
|
481
|
+
class IntVar;
|
482
|
+
|
483
|
+
/** \brief Traits class for variable implementations and variables */
|
484
|
+
template <>
|
485
|
+
class VarImpVarTraits<Int::IntVarImp> {
|
486
|
+
public:
|
487
|
+
typedef IntVar Var;
|
488
|
+
};
|
489
|
+
|
490
|
+
class BoolVar;
|
491
|
+
}
|
492
|
+
|
493
|
+
namespace Gecode { namespace Int {
|
494
|
+
|
495
|
+
/// Type for status of a Boolean variable
|
496
|
+
typedef unsigned int BoolStatus;
|
497
|
+
|
498
|
+
/**
|
499
|
+
* \brief Boolean variable implementation
|
500
|
+
*
|
501
|
+
* \ingroup Other
|
502
|
+
*/
|
503
|
+
class BoolVarImp : public BoolVarImpBase {
|
504
|
+
friend class ::Gecode::BoolVar;
|
505
|
+
private:
|
506
|
+
/**
|
507
|
+
* \brief Domain information
|
508
|
+
*
|
509
|
+
* - The bit at position 0 corresponds to the minimum
|
510
|
+
* - The bit at position 1 corresponds to the maximum
|
511
|
+
* - Interpreted as an unsigned, that is: 0 represents
|
512
|
+
* a variable assigned to 0, 3 represents a variable
|
513
|
+
* assigned to 1, and 2 represents an unassigned variable.
|
514
|
+
* - No other values are possible.
|
515
|
+
*/
|
516
|
+
|
517
|
+
GECODE_INT_EXPORT static BoolVarImp s_one;
|
518
|
+
GECODE_INT_EXPORT static BoolVarImp s_zero;
|
519
|
+
|
520
|
+
/// Constructor for cloning \a x
|
521
|
+
BoolVarImp(Space* home, bool share, BoolVarImp& x);
|
522
|
+
/// Initialize static instance assigned to \a n
|
523
|
+
BoolVarImp(int n);
|
524
|
+
public:
|
525
|
+
/// Initialize with range domain
|
526
|
+
BoolVarImp(Space* home, int min, int max);
|
527
|
+
|
528
|
+
/// \name Domain status access
|
529
|
+
//@{
|
530
|
+
/// How many bits does the status have
|
531
|
+
static const int BITS = 2;
|
532
|
+
/// Status of domain assigned to zero
|
533
|
+
static const BoolStatus ZERO = 0;
|
534
|
+
/// Status of domain assigned to one
|
535
|
+
static const BoolStatus ONE = 3;
|
536
|
+
/// Status of domain not yet assigned
|
537
|
+
static const BoolStatus NONE = 2;
|
538
|
+
/// Return current domain status
|
539
|
+
BoolStatus status(void) const;
|
540
|
+
//@}
|
541
|
+
|
542
|
+
/// \name Value access
|
543
|
+
//@{
|
544
|
+
/// Return minimum of domain
|
545
|
+
int min(void) const;
|
546
|
+
/// Return maximum of domain
|
547
|
+
int max(void) const;
|
548
|
+
/// Return assigned value (only if assigned)
|
549
|
+
int val(void) const;
|
550
|
+
/// Return median of domain
|
551
|
+
int med(void) const;
|
552
|
+
|
553
|
+
/// Return size (cardinality) of domain
|
554
|
+
unsigned int size(void) const;
|
555
|
+
/// Return width of domain (distance between maximum and minimum)
|
556
|
+
unsigned int width(void) const;
|
557
|
+
/// Return regret of domain minimum (distance to next larger value)
|
558
|
+
unsigned int regret_min(void) const;
|
559
|
+
/// Return regret of domain maximum (distance to next smaller value)
|
560
|
+
unsigned int regret_max(void) const;
|
561
|
+
//@}
|
562
|
+
|
563
|
+
/// \name Boolean domain tests
|
564
|
+
//@{
|
565
|
+
/// Test whether variable is assigned to zero
|
566
|
+
bool zero(void) const;
|
567
|
+
/// Test whether variable is assigned to one
|
568
|
+
bool one(void) const;
|
569
|
+
/// Test whether variable is not yet assigned
|
570
|
+
bool none(void) const;
|
571
|
+
//@}
|
572
|
+
|
573
|
+
/// \name Domain tests
|
574
|
+
//@{
|
575
|
+
/// Test whether domain is a range
|
576
|
+
bool range(void) const;
|
577
|
+
/// Test whether variable is assigned
|
578
|
+
bool assigned(void) const;
|
579
|
+
|
580
|
+
/// Test whether \a n is contained in domain
|
581
|
+
bool in(int n) const;
|
582
|
+
/// Test whether \a n is contained in domain
|
583
|
+
bool in(double n) const;
|
584
|
+
//@}
|
585
|
+
|
586
|
+
/// \name Domain update by value
|
587
|
+
//@{
|
588
|
+
/// Restrict domain values to be less or equal than \a n
|
589
|
+
ModEvent lq(Space* home, int n);
|
590
|
+
/// Restrict domain values to be less or equal than \a n
|
591
|
+
ModEvent lq(Space* home, double n);
|
592
|
+
|
593
|
+
/// Restrict domain values to be greater or equal than \a n
|
594
|
+
ModEvent gq(Space* home, int n);
|
595
|
+
/// Restrict domain values to be greater or equal than \a n
|
596
|
+
ModEvent gq(Space* home, double n);
|
597
|
+
|
598
|
+
/// Restrict domain values to be different from \a n
|
599
|
+
ModEvent nq(Space* home, int n);
|
600
|
+
/// Restrict domain values to be different from \a n
|
601
|
+
ModEvent nq(Space* home, double n);
|
602
|
+
|
603
|
+
/// Restrict domain values to be equal to \a n
|
604
|
+
ModEvent eq(Space* home, int n);
|
605
|
+
/// Restrict domain values to be equal to \a n
|
606
|
+
ModEvent eq(Space* home, double n);
|
607
|
+
//@}
|
608
|
+
|
609
|
+
/**
|
610
|
+
* \name Domain update by iterator
|
611
|
+
*
|
612
|
+
* Variable domains can be both updated by range and value iterators.
|
613
|
+
* Value iterators do not need to be strict in that the same value
|
614
|
+
* is allowed to occur more than once in the iterated sequence.
|
615
|
+
*
|
616
|
+
* The argument \a depends must be true, if the iterator
|
617
|
+
* passed as argument depends on the variable implementation
|
618
|
+
* on which the operation is invoked. In this case, the variable
|
619
|
+
* implementation is only updated after the iterator has been
|
620
|
+
* consumed. Otherwise, the domain might be updated concurrently
|
621
|
+
* while following the iterator.
|
622
|
+
*
|
623
|
+
*/
|
624
|
+
//@{
|
625
|
+
/// Replace domain by ranges described by \a i
|
626
|
+
template <class I>
|
627
|
+
ModEvent narrow_r(Space* home, I& i, bool depends=true);
|
628
|
+
/// Intersect domain with ranges described by \a i
|
629
|
+
template <class I>
|
630
|
+
ModEvent inter_r(Space* home, I& i, bool depends=true);
|
631
|
+
/// Remove from domain the ranges described by \a i
|
632
|
+
template <class I>
|
633
|
+
ModEvent minus_r(Space* home, I& i, bool depends=true);
|
634
|
+
/// Replace domain by values described by \a i
|
635
|
+
template <class I>
|
636
|
+
ModEvent narrow_v(Space* home, I& i, bool depends=true);
|
637
|
+
/// Intersect domain with values described by \a i
|
638
|
+
template <class I>
|
639
|
+
ModEvent inter_v(Space* home, I& i, bool depends=true);
|
640
|
+
/// Remove from domain the values described by \a i
|
641
|
+
template <class I>
|
642
|
+
ModEvent minus_v(Space* home, I& i, bool depends=true);
|
643
|
+
//@}
|
644
|
+
|
645
|
+
/// \name Boolean update operations
|
646
|
+
//@{
|
647
|
+
/// Assign variable to zero
|
648
|
+
ModEvent zero(Space* home);
|
649
|
+
/// Assign variable to one
|
650
|
+
ModEvent one(Space* home);
|
651
|
+
/// Assign unassigned variable to zero
|
652
|
+
GECODE_INT_EXPORT ModEvent zero_none(Space* home);
|
653
|
+
/// Assign unassigned variable to one
|
654
|
+
GECODE_INT_EXPORT ModEvent one_none(Space* home);
|
655
|
+
//@}
|
656
|
+
|
657
|
+
public:
|
658
|
+
/// \name Dependencies
|
659
|
+
//@{
|
660
|
+
/**
|
661
|
+
* \brief Subscribe propagator \a p to variable with propagation condition \a pc
|
662
|
+
*
|
663
|
+
* In case \a process is false, the propagator is just subscribed but
|
664
|
+
* not processed for execution (this must be used when creating
|
665
|
+
* subscriptions during propagation).
|
666
|
+
*
|
667
|
+
* The propagation condition \a pc can be a propagation condition
|
668
|
+
* for integer variables, which will be mapped to PC_BOOL_VAL.
|
669
|
+
*/
|
670
|
+
void subscribe(Space* home, Propagator* p, PropCond pc, bool process=true);
|
671
|
+
/**
|
672
|
+
* \brief Cancel subscription of propagator \a p with propagation condition \a pc
|
673
|
+
*
|
674
|
+
* The propagation condition \a pc can be a propagation condition
|
675
|
+
* for integer variables, which will be mapped to PC_BOOL_VAL.
|
676
|
+
*/
|
677
|
+
void cancel(Space* home, Propagator* p, PropCond pc);
|
678
|
+
/// Subscribe advisor \a a to variable
|
679
|
+
void subscribe(Space* home, Advisor* a);
|
680
|
+
/// Cancel subscription of advisor \a a
|
681
|
+
void cancel(Space* home, Advisor* a);
|
682
|
+
//@}
|
683
|
+
|
684
|
+
/// \name Variable implementation-dependent propagator support
|
685
|
+
//@{
|
686
|
+
/**
|
687
|
+
* \brief Schedule propagator \a p with modification event \a me
|
688
|
+
*
|
689
|
+
* The modfication event \a me can be a modification event for
|
690
|
+
* integer variables, however \a me will be ignored if it is not
|
691
|
+
* ME_INT_VAL (or ME_BOOL_VAL).
|
692
|
+
*/
|
693
|
+
static void schedule(Space* home, Propagator* p, ModEvent me);
|
694
|
+
/// Translate modification event \a me to modification event delta for view
|
695
|
+
static ModEventDelta med(ModEvent me);
|
696
|
+
//@}
|
697
|
+
|
698
|
+
/// \name Support for delta information for advisors
|
699
|
+
//@{
|
700
|
+
/// Return modification event
|
701
|
+
static ModEvent modevent(const Delta* d);
|
702
|
+
/// Return minimum value just pruned
|
703
|
+
int min(const Delta* d) const;
|
704
|
+
/// Return maximum value just pruned
|
705
|
+
int max(const Delta* d) const;
|
706
|
+
/// Test whether arbitrary values got pruned
|
707
|
+
bool any(const Delta* d) const;
|
708
|
+
//@}
|
709
|
+
|
710
|
+
/// \name Cloning
|
711
|
+
//@{
|
712
|
+
/// Return copy of this variable
|
713
|
+
BoolVarImp* copy(Space* home, bool share);
|
714
|
+
//@}
|
715
|
+
|
716
|
+
/// \name Reflection
|
717
|
+
//@{
|
718
|
+
/// Return specification
|
719
|
+
GECODE_INT_EXPORT Reflection::Arg*
|
720
|
+
spec(const Space* home, Reflection::VarMap& m) const;
|
721
|
+
/// Create variable implementation from specification
|
722
|
+
static GECODE_INT_EXPORT VarImpBase*
|
723
|
+
create(Space* home, Reflection::VarSpec& spec);
|
724
|
+
/// Constrain variable implementation using specification
|
725
|
+
static GECODE_INT_EXPORT void
|
726
|
+
constrain(Space* home, VarImpBase* v, Reflection::VarSpec& spec);
|
727
|
+
//@}
|
728
|
+
|
729
|
+
};
|
730
|
+
|
731
|
+
}}
|
732
|
+
|
733
|
+
#include "gecode/int/var-imp/bool.icc"
|
734
|
+
|
735
|
+
namespace Gecode {
|
736
|
+
/** \brief Traits class for variable implementations and variables */
|
737
|
+
template <>
|
738
|
+
class VarImpVarTraits<Int::BoolVarImp> {
|
739
|
+
public:
|
740
|
+
typedef BoolVar Var;
|
741
|
+
};
|
742
|
+
}
|
743
|
+
|
744
|
+
// STATISTICS: int-var
|
745
|
+
|