gecoder-with-gecode 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +81 -0
- data/COPYING +17 -0
- data/LGPL-LICENSE +458 -0
- data/README +45 -0
- data/Rakefile +13 -0
- data/example/example_helper.rb +1 -0
- data/example/magic_sequence.rb +43 -0
- data/example/queens.rb +43 -0
- data/example/raw_bindings.rb +42 -0
- data/example/send_more_money.rb +43 -0
- data/example/send_most_money.rb +58 -0
- data/example/square_tiling.rb +84 -0
- data/example/sudoku-set.rb +110 -0
- data/example/sudoku.rb +61 -0
- data/ext/extconf.rb +29 -0
- data/ext/gecode-1.3.1/LICENSE +34 -0
- data/ext/gecode-1.3.1/Makefile.contribs +71 -0
- data/ext/gecode-1.3.1/Makefile.dep +3928 -0
- data/ext/gecode-1.3.1/Makefile.in +966 -0
- data/ext/gecode-1.3.1/changelog.in +1065 -0
- data/ext/gecode-1.3.1/configure +8590 -0
- data/ext/gecode-1.3.1/configure.ac +179 -0
- data/ext/gecode-1.3.1/configure.ac.in +175 -0
- data/ext/gecode-1.3.1/contribs/README +26 -0
- data/ext/gecode-1.3.1/contribs/graph/INSTALL +53 -0
- data/ext/gecode-1.3.1/contribs/graph/LICENSE +11 -0
- data/ext/gecode-1.3.1/contribs/graph/Makefile +167 -0
- data/ext/gecode-1.3.1/contribs/graph/Makefile.in.in +169 -0
- data/ext/gecode-1.3.1/contribs/graph/TODO +28 -0
- data/ext/gecode-1.3.1/contribs/graph/binarysimple.hh +82 -0
- data/ext/gecode-1.3.1/contribs/graph/binarysimple.icc +186 -0
- data/ext/gecode-1.3.1/contribs/graph/branch/branch.icc +257 -0
- data/ext/gecode-1.3.1/contribs/graph/configure +2160 -0
- data/ext/gecode-1.3.1/contribs/graph/configure.ac +33 -0
- data/ext/gecode-1.3.1/contribs/graph/doxygen.conf +1226 -0
- data/ext/gecode-1.3.1/contribs/graph/doxygen.hh +132 -0
- data/ext/gecode-1.3.1/contribs/graph/examples/cpgraph-basic.cc +94 -0
- data/ext/gecode-1.3.1/contribs/graph/examples/cpgraph-complement.cc +104 -0
- data/ext/gecode-1.3.1/contribs/graph/examples/cpgraph-instUB.cc +105 -0
- data/ext/gecode-1.3.1/contribs/graph/examples/cpgraph-path.cc +92 -0
- data/ext/gecode-1.3.1/contribs/graph/examples/cpgraph-path2.cc +273 -0
- data/ext/gecode-1.3.1/contribs/graph/examples/cpgraph-pathcost.cc +311 -0
- data/ext/gecode-1.3.1/contribs/graph/examples/g1.txt +1 -0
- data/ext/gecode-1.3.1/contribs/graph/examples/g2.txt +1 -0
- data/ext/gecode-1.3.1/contribs/graph/graph.hh +51 -0
- data/ext/gecode-1.3.1/contribs/graph/graphutils.h +46 -0
- data/ext/gecode-1.3.1/contribs/graph/graphutils.icc +140 -0
- data/ext/gecode-1.3.1/contribs/graph/misc/doxygen/footer.html +1 -0
- data/ext/gecode-1.3.1/contribs/graph/path.hh +116 -0
- data/ext/gecode-1.3.1/contribs/graph/path.icc +64 -0
- data/ext/gecode-1.3.1/contribs/graph/path/path.icc +139 -0
- data/ext/gecode-1.3.1/contribs/graph/path/pathdegree.icc +133 -0
- data/ext/gecode-1.3.1/contribs/graph/path/pathgraphs.icc +341 -0
- data/ext/gecode-1.3.1/contribs/graph/shortdesc.ac +1 -0
- data/ext/gecode-1.3.1/contribs/graph/stlutility.icc +105 -0
- data/ext/gecode-1.3.1/contribs/graph/var.icc +106 -0
- data/ext/gecode-1.3.1/contribs/graph/view.icc +373 -0
- data/ext/gecode-1.3.1/contribs/graph/view/arcnode.cc +162 -0
- data/ext/gecode-1.3.1/contribs/graph/view/arcnode.hh +78 -0
- data/ext/gecode-1.3.1/contribs/graph/view/boundsgraphs.icc +349 -0
- data/ext/gecode-1.3.1/contribs/graph/view/constant.icc +148 -0
- data/ext/gecode-1.3.1/contribs/graph/view/iter.icc +337 -0
- data/ext/gecode-1.3.1/contribs/graph/view/nodearcsets.icc +493 -0
- data/ext/gecode-1.3.1/contribs/graph/view/nodeset.icc +60 -0
- data/ext/gecode-1.3.1/contribs/graph/view/outadjsets.icc +600 -0
- data/ext/gecode-1.3.1/contribs/graph/view/prop.icc +135 -0
- data/ext/gecode-1.3.1/contribs/map/COMPILING +68 -0
- data/ext/gecode-1.3.1/contribs/map/LICENSE +11 -0
- data/ext/gecode-1.3.1/contribs/map/Makefile.in.in +173 -0
- data/ext/gecode-1.3.1/contribs/map/configure +2285 -0
- data/ext/gecode-1.3.1/contribs/map/configure.ac +32 -0
- data/ext/gecode-1.3.1/contribs/map/constraints.hh +46 -0
- data/ext/gecode-1.3.1/contribs/map/constraints.icc +84 -0
- data/ext/gecode-1.3.1/contribs/map/doxygen.conf +1229 -0
- data/ext/gecode-1.3.1/contribs/map/doxygen.hh +33 -0
- data/ext/gecode-1.3.1/contribs/map/examples/approximateMatching.cc +199 -0
- data/ext/gecode-1.3.1/contribs/map/examples/g1.txt +1 -0
- data/ext/gecode-1.3.1/contribs/map/examples/g2.txt +1 -0
- data/ext/gecode-1.3.1/contribs/map/examples/graph-examples.tgz +0 -0
- data/ext/gecode-1.3.1/contribs/map/examples/isomorphism.cc +148 -0
- data/ext/gecode-1.3.1/contribs/map/examples/map +0 -0
- data/ext/gecode-1.3.1/contribs/map/examples/map.cc +80 -0
- data/ext/gecode-1.3.1/contribs/map/examples/subgraphmonomorphism.cc +155 -0
- data/ext/gecode-1.3.1/contribs/map/map.hh +65 -0
- data/ext/gecode-1.3.1/contribs/map/matching/mono.hh +235 -0
- data/ext/gecode-1.3.1/contribs/map/matching/mono.icc +771 -0
- data/ext/gecode-1.3.1/contribs/map/shortdesc.ac +2 -0
- data/ext/gecode-1.3.1/contribs/map/var.icc +346 -0
- data/ext/gecode-1.3.1/contribs/map/var/imp.cc +42 -0
- data/ext/gecode-1.3.1/contribs/map/var/imp.icc +436 -0
- data/ext/gecode-1.3.1/doxygen.conf.in +1225 -0
- data/ext/gecode-1.3.1/doxygen.hh.in +877 -0
- data/ext/gecode-1.3.1/examples/all-interval-sort.cc +201 -0
- data/ext/gecode-1.3.1/examples/all-interval.cc +114 -0
- data/ext/gecode-1.3.1/examples/alpha.cc +112 -0
- data/ext/gecode-1.3.1/examples/baseline.cc +71 -0
- data/ext/gecode-1.3.1/examples/bibd.cc +173 -0
- data/ext/gecode-1.3.1/examples/black-hole.cc +281 -0
- data/ext/gecode-1.3.1/examples/cars.cc +165 -0
- data/ext/gecode-1.3.1/examples/crew.cc +220 -0
- data/ext/gecode-1.3.1/examples/crowded-chess.cc +312 -0
- data/ext/gecode-1.3.1/examples/donald.cc +93 -0
- data/ext/gecode-1.3.1/examples/eq20.cc +111 -0
- data/ext/gecode-1.3.1/examples/golf.cc +242 -0
- data/ext/gecode-1.3.1/examples/golomb.cc +141 -0
- data/ext/gecode-1.3.1/examples/graph-color.cc +371 -0
- data/ext/gecode-1.3.1/examples/grocery.cc +107 -0
- data/ext/gecode-1.3.1/examples/hamming.cc +107 -0
- data/ext/gecode-1.3.1/examples/ind-set.cc +130 -0
- data/ext/gecode-1.3.1/examples/knights.cc +146 -0
- data/ext/gecode-1.3.1/examples/langfordnum.cc +244 -0
- data/ext/gecode-1.3.1/examples/magic-sequence-gcc.cc +93 -0
- data/ext/gecode-1.3.1/examples/magic-sequence.cc +108 -0
- data/ext/gecode-1.3.1/examples/magic-square.cc +120 -0
- data/ext/gecode-1.3.1/examples/money.cc +92 -0
- data/ext/gecode-1.3.1/examples/ortho-latin.cc +156 -0
- data/ext/gecode-1.3.1/examples/packing.cc +211 -0
- data/ext/gecode-1.3.1/examples/partition.cc +126 -0
- data/ext/gecode-1.3.1/examples/photo.cc +155 -0
- data/ext/gecode-1.3.1/examples/picture-puzzle.cc +481 -0
- data/ext/gecode-1.3.1/examples/queen-armies.cc +240 -0
- data/ext/gecode-1.3.1/examples/queens.cc +99 -0
- data/ext/gecode-1.3.1/examples/sports-league.cc +454 -0
- data/ext/gecode-1.3.1/examples/steiner.cc +148 -0
- data/ext/gecode-1.3.1/examples/stress-domain.cc +86 -0
- data/ext/gecode-1.3.1/examples/stress-element.cc +95 -0
- data/ext/gecode-1.3.1/examples/stress-exec.cc +74 -0
- data/ext/gecode-1.3.1/examples/stress-min.cc +84 -0
- data/ext/gecode-1.3.1/examples/stress-search.cc +72 -0
- data/ext/gecode-1.3.1/examples/sudoku-mixed.cc +282 -0
- data/ext/gecode-1.3.1/examples/sudoku-set.cc +162 -0
- data/ext/gecode-1.3.1/examples/sudoku.cc +188 -0
- data/ext/gecode-1.3.1/examples/sudoku.icc +703 -0
- data/ext/gecode-1.3.1/examples/support.cc +160 -0
- data/ext/gecode-1.3.1/examples/support.hh +98 -0
- data/ext/gecode-1.3.1/examples/support.icc +187 -0
- data/ext/gecode-1.3.1/examples/timer.cc +47 -0
- data/ext/gecode-1.3.1/examples/timer.hh +72 -0
- data/ext/gecode-1.3.1/examples/warehouses.cc +176 -0
- data/ext/gecode-1.3.1/extconf.rb +8 -0
- data/ext/gecode-1.3.1/gecode.m4 +736 -0
- data/ext/gecode-1.3.1/gecode/config.icc.in +50 -0
- data/ext/gecode-1.3.1/gecode/int.hh +1426 -0
- data/ext/gecode-1.3.1/gecode/int/arithmetic.cc +87 -0
- data/ext/gecode-1.3.1/gecode/int/arithmetic.hh +292 -0
- data/ext/gecode-1.3.1/gecode/int/arithmetic/abs.icc +213 -0
- data/ext/gecode-1.3.1/gecode/int/arithmetic/max.icc +196 -0
- data/ext/gecode-1.3.1/gecode/int/arithmetic/mult.icc +478 -0
- data/ext/gecode-1.3.1/gecode/int/array.cc +61 -0
- data/ext/gecode-1.3.1/gecode/int/array.icc +264 -0
- data/ext/gecode-1.3.1/gecode/int/bool.cc +187 -0
- data/ext/gecode-1.3.1/gecode/int/bool.hh +255 -0
- data/ext/gecode-1.3.1/gecode/int/bool/base.icc +123 -0
- data/ext/gecode-1.3.1/gecode/int/bool/eq.icc +89 -0
- data/ext/gecode-1.3.1/gecode/int/bool/eqv.icc +132 -0
- data/ext/gecode-1.3.1/gecode/int/bool/or.icc +380 -0
- data/ext/gecode-1.3.1/gecode/int/branch.cc +81 -0
- data/ext/gecode-1.3.1/gecode/int/branch.hh +444 -0
- data/ext/gecode-1.3.1/gecode/int/branch/assign.cc +83 -0
- data/ext/gecode-1.3.1/gecode/int/branch/assign.icc +76 -0
- data/ext/gecode-1.3.1/gecode/int/branch/select-val.icc +104 -0
- data/ext/gecode-1.3.1/gecode/int/branch/select-view.icc +219 -0
- data/ext/gecode-1.3.1/gecode/int/channel.cc +62 -0
- data/ext/gecode-1.3.1/gecode/int/channel.hh +144 -0
- data/ext/gecode-1.3.1/gecode/int/channel/base.icc +60 -0
- data/ext/gecode-1.3.1/gecode/int/channel/dom.icc +313 -0
- data/ext/gecode-1.3.1/gecode/int/channel/stack.icc +59 -0
- data/ext/gecode-1.3.1/gecode/int/channel/val.icc +239 -0
- data/ext/gecode-1.3.1/gecode/int/count.cc +174 -0
- data/ext/gecode-1.3.1/gecode/int/count.hh +401 -0
- data/ext/gecode-1.3.1/gecode/int/count/int.icc +495 -0
- data/ext/gecode-1.3.1/gecode/int/count/rel.icc +100 -0
- data/ext/gecode-1.3.1/gecode/int/count/view.icc +332 -0
- data/ext/gecode-1.3.1/gecode/int/cumulatives.cc +210 -0
- data/ext/gecode-1.3.1/gecode/int/cumulatives.hh +118 -0
- data/ext/gecode-1.3.1/gecode/int/cumulatives/val.icc +377 -0
- data/ext/gecode-1.3.1/gecode/int/distinct.cc +77 -0
- data/ext/gecode-1.3.1/gecode/int/distinct.hh +272 -0
- data/ext/gecode-1.3.1/gecode/int/distinct/bilink.icc +73 -0
- data/ext/gecode-1.3.1/gecode/int/distinct/bnd.icc +335 -0
- data/ext/gecode-1.3.1/gecode/int/distinct/combptr.icc +62 -0
- data/ext/gecode-1.3.1/gecode/int/distinct/dom.icc +740 -0
- data/ext/gecode-1.3.1/gecode/int/distinct/edge.icc +96 -0
- data/ext/gecode-1.3.1/gecode/int/distinct/node.icc +107 -0
- data/ext/gecode-1.3.1/gecode/int/distinct/ter-dom.icc +97 -0
- data/ext/gecode-1.3.1/gecode/int/distinct/val.icc +171 -0
- data/ext/gecode-1.3.1/gecode/int/dom.cc +81 -0
- data/ext/gecode-1.3.1/gecode/int/dom.hh +101 -0
- data/ext/gecode-1.3.1/gecode/int/dom/range.icc +85 -0
- data/ext/gecode-1.3.1/gecode/int/dom/spec.icc +85 -0
- data/ext/gecode-1.3.1/gecode/int/element.cc +58 -0
- data/ext/gecode-1.3.1/gecode/int/element.hh +203 -0
- data/ext/gecode-1.3.1/gecode/int/element/int.icc +396 -0
- data/ext/gecode-1.3.1/gecode/int/element/view.icc +443 -0
- data/ext/gecode-1.3.1/gecode/int/exception.icc +137 -0
- data/ext/gecode-1.3.1/gecode/int/gcc.cc +708 -0
- data/ext/gecode-1.3.1/gecode/int/gcc.hh +338 -0
- data/ext/gecode-1.3.1/gecode/int/gcc/bnd.icc +629 -0
- data/ext/gecode-1.3.1/gecode/int/gcc/dom.icc +504 -0
- data/ext/gecode-1.3.1/gecode/int/gcc/gccbndsup.icc +760 -0
- data/ext/gecode-1.3.1/gecode/int/gcc/graphsup.icc +2375 -0
- data/ext/gecode-1.3.1/gecode/int/gcc/lbc.icc +375 -0
- data/ext/gecode-1.3.1/gecode/int/gcc/occur.icc +687 -0
- data/ext/gecode-1.3.1/gecode/int/gcc/ubc.icc +236 -0
- data/ext/gecode-1.3.1/gecode/int/gcc/val.icc +373 -0
- data/ext/gecode-1.3.1/gecode/int/int-set.cc +115 -0
- data/ext/gecode-1.3.1/gecode/int/int-set.icc +151 -0
- data/ext/gecode-1.3.1/gecode/int/linear.cc +247 -0
- data/ext/gecode-1.3.1/gecode/int/linear.hh +1056 -0
- data/ext/gecode-1.3.1/gecode/int/linear/binary.icc +439 -0
- data/ext/gecode-1.3.1/gecode/int/linear/bool-int.icc +422 -0
- data/ext/gecode-1.3.1/gecode/int/linear/bool-view.icc +311 -0
- data/ext/gecode-1.3.1/gecode/int/linear/dom.icc +503 -0
- data/ext/gecode-1.3.1/gecode/int/linear/nary.icc +857 -0
- data/ext/gecode-1.3.1/gecode/int/linear/noview.icc +264 -0
- data/ext/gecode-1.3.1/gecode/int/linear/post.cc +542 -0
- data/ext/gecode-1.3.1/gecode/int/linear/ternary.icc +255 -0
- data/ext/gecode-1.3.1/gecode/int/propagator.icc +194 -0
- data/ext/gecode-1.3.1/gecode/int/regular.cc +40 -0
- data/ext/gecode-1.3.1/gecode/int/regular.hh +83 -0
- data/ext/gecode-1.3.1/gecode/int/regular/dfa.cc +466 -0
- data/ext/gecode-1.3.1/gecode/int/regular/dfa.icc +172 -0
- data/ext/gecode-1.3.1/gecode/int/regular/dom.icc +480 -0
- data/ext/gecode-1.3.1/gecode/int/regular/reg.cc +738 -0
- data/ext/gecode-1.3.1/gecode/int/rel.cc +293 -0
- data/ext/gecode-1.3.1/gecode/int/rel.hh +526 -0
- data/ext/gecode-1.3.1/gecode/int/rel/eq.icc +640 -0
- data/ext/gecode-1.3.1/gecode/int/rel/lex.icc +212 -0
- data/ext/gecode-1.3.1/gecode/int/rel/lq-le.icc +246 -0
- data/ext/gecode-1.3.1/gecode/int/rel/nq.icc +188 -0
- data/ext/gecode-1.3.1/gecode/int/sortedness.cc +124 -0
- data/ext/gecode-1.3.1/gecode/int/sortedness.hh +108 -0
- data/ext/gecode-1.3.1/gecode/int/sortedness/matching.icc +177 -0
- data/ext/gecode-1.3.1/gecode/int/sortedness/narrowing.icc +243 -0
- data/ext/gecode-1.3.1/gecode/int/sortedness/order.icc +232 -0
- data/ext/gecode-1.3.1/gecode/int/sortedness/sortedness.icc +727 -0
- data/ext/gecode-1.3.1/gecode/int/sortedness/sortsup.icc +666 -0
- data/ext/gecode-1.3.1/gecode/int/var-imp.vis +198 -0
- data/ext/gecode-1.3.1/gecode/int/var.icc +590 -0
- data/ext/gecode-1.3.1/gecode/int/var/bool.icc +52 -0
- data/ext/gecode-1.3.1/gecode/int/var/imp-body.icc +65 -0
- data/ext/gecode-1.3.1/gecode/int/var/imp-hdr.icc +191 -0
- data/ext/gecode-1.3.1/gecode/int/var/imp.cc +361 -0
- data/ext/gecode-1.3.1/gecode/int/var/imp.icc +579 -0
- data/ext/gecode-1.3.1/gecode/int/var/int.cc +63 -0
- data/ext/gecode-1.3.1/gecode/int/var/int.icc +135 -0
- data/ext/gecode-1.3.1/gecode/int/view.icc +1219 -0
- data/ext/gecode-1.3.1/gecode/int/view/bool.icc +270 -0
- data/ext/gecode-1.3.1/gecode/int/view/constint.icc +306 -0
- data/ext/gecode-1.3.1/gecode/int/view/int.icc +221 -0
- data/ext/gecode-1.3.1/gecode/int/view/iter.icc +49 -0
- data/ext/gecode-1.3.1/gecode/int/view/minus.icc +285 -0
- data/ext/gecode-1.3.1/gecode/int/view/offset.icc +274 -0
- data/ext/gecode-1.3.1/gecode/int/view/print.cc +109 -0
- data/ext/gecode-1.3.1/gecode/int/view/rtest.icc +215 -0
- data/ext/gecode-1.3.1/gecode/int/view/scale.icc +373 -0
- data/ext/gecode-1.3.1/gecode/iter.hh +65 -0
- data/ext/gecode-1.3.1/gecode/iter/ranges-add.icc +130 -0
- data/ext/gecode-1.3.1/gecode/iter/ranges-append.icc +208 -0
- data/ext/gecode-1.3.1/gecode/iter/ranges-array.icc +123 -0
- data/ext/gecode-1.3.1/gecode/iter/ranges-cache.icc +143 -0
- data/ext/gecode-1.3.1/gecode/iter/ranges-compl.icc +206 -0
- data/ext/gecode-1.3.1/gecode/iter/ranges-diff.icc +127 -0
- data/ext/gecode-1.3.1/gecode/iter/ranges-empty.icc +96 -0
- data/ext/gecode-1.3.1/gecode/iter/ranges-inter.icc +202 -0
- data/ext/gecode-1.3.1/gecode/iter/ranges-minmax.icc +103 -0
- data/ext/gecode-1.3.1/gecode/iter/ranges-minus.icc +138 -0
- data/ext/gecode-1.3.1/gecode/iter/ranges-offset.icc +112 -0
- data/ext/gecode-1.3.1/gecode/iter/ranges-operations.icc +142 -0
- data/ext/gecode-1.3.1/gecode/iter/ranges-scale.icc +224 -0
- data/ext/gecode-1.3.1/gecode/iter/ranges-singleton.icc +71 -0
- data/ext/gecode-1.3.1/gecode/iter/ranges-size.icc +131 -0
- data/ext/gecode-1.3.1/gecode/iter/ranges-union.icc +211 -0
- data/ext/gecode-1.3.1/gecode/iter/ranges-values.icc +125 -0
- data/ext/gecode-1.3.1/gecode/iter/values-ranges.icc +91 -0
- data/ext/gecode-1.3.1/gecode/iter/virtual-ranges-compl.icc +247 -0
- data/ext/gecode-1.3.1/gecode/iter/virtual-ranges-inter.icc +227 -0
- data/ext/gecode-1.3.1/gecode/iter/virtual-ranges-union.icc +236 -0
- data/ext/gecode-1.3.1/gecode/iter/virtual-ranges.icc +126 -0
- data/ext/gecode-1.3.1/gecode/kernel.hh +141 -0
- data/ext/gecode-1.3.1/gecode/kernel/array.icc +954 -0
- data/ext/gecode-1.3.1/gecode/kernel/branching.icc +233 -0
- data/ext/gecode-1.3.1/gecode/kernel/core.cc +417 -0
- data/ext/gecode-1.3.1/gecode/kernel/core.icc +1681 -0
- data/ext/gecode-1.3.1/gecode/kernel/exception.cc +49 -0
- data/ext/gecode-1.3.1/gecode/kernel/exception.icc +104 -0
- data/ext/gecode-1.3.1/gecode/kernel/macros.icc +98 -0
- data/ext/gecode-1.3.1/gecode/kernel/memory-manager.cc +41 -0
- data/ext/gecode-1.3.1/gecode/kernel/memory-manager.icc +438 -0
- data/ext/gecode-1.3.1/gecode/kernel/memory.icc +205 -0
- data/ext/gecode-1.3.1/gecode/kernel/modevent.icc +53 -0
- data/ext/gecode-1.3.1/gecode/kernel/propagator.icc +680 -0
- data/ext/gecode-1.3.1/gecode/kernel/view.icc +583 -0
- data/ext/gecode-1.3.1/gecode/limits.hh +87 -0
- data/ext/gecode-1.3.1/gecode/minimodel.hh +942 -0
- data/ext/gecode-1.3.1/gecode/minimodel/arithmetic.cc +137 -0
- data/ext/gecode-1.3.1/gecode/minimodel/bool-expr.cc +207 -0
- data/ext/gecode-1.3.1/gecode/minimodel/bool-expr.icc +191 -0
- data/ext/gecode-1.3.1/gecode/minimodel/bool-rel.icc +66 -0
- data/ext/gecode-1.3.1/gecode/minimodel/exception.icc +59 -0
- data/ext/gecode-1.3.1/gecode/minimodel/lin-expr.cc +103 -0
- data/ext/gecode-1.3.1/gecode/minimodel/lin-expr.icc +192 -0
- data/ext/gecode-1.3.1/gecode/minimodel/lin-rel.icc +200 -0
- data/ext/gecode-1.3.1/gecode/minimodel/matrix.icc +118 -0
- data/ext/gecode-1.3.1/gecode/minimodel/scheduling.cc +241 -0
- data/ext/gecode-1.3.1/gecode/search.hh +745 -0
- data/ext/gecode-1.3.1/gecode/search/bab.cc +153 -0
- data/ext/gecode-1.3.1/gecode/search/bab.icc +101 -0
- data/ext/gecode-1.3.1/gecode/search/dfs.cc +63 -0
- data/ext/gecode-1.3.1/gecode/search/dfs.icc +144 -0
- data/ext/gecode-1.3.1/gecode/search/engine-ctrl.icc +109 -0
- data/ext/gecode-1.3.1/gecode/search/lds.cc +237 -0
- data/ext/gecode-1.3.1/gecode/search/lds.icc +57 -0
- data/ext/gecode-1.3.1/gecode/search/reco-stack.icc +219 -0
- data/ext/gecode-1.3.1/gecode/search/restart.icc +76 -0
- data/ext/gecode-1.3.1/gecode/search/statistics.icc +30 -0
- data/ext/gecode-1.3.1/gecode/search/stop.cc +58 -0
- data/ext/gecode-1.3.1/gecode/search/stop.icc +100 -0
- data/ext/gecode-1.3.1/gecode/set.hh +419 -0
- data/ext/gecode-1.3.1/gecode/set/array.cc +114 -0
- data/ext/gecode-1.3.1/gecode/set/array.icc +134 -0
- data/ext/gecode-1.3.1/gecode/set/branch.cc +57 -0
- data/ext/gecode-1.3.1/gecode/set/branch.hh +176 -0
- data/ext/gecode-1.3.1/gecode/set/branch/select-val.icc +72 -0
- data/ext/gecode-1.3.1/gecode/set/branch/select-view.icc +112 -0
- data/ext/gecode-1.3.1/gecode/set/cardinality.cc +49 -0
- data/ext/gecode-1.3.1/gecode/set/convex.cc +43 -0
- data/ext/gecode-1.3.1/gecode/set/convex.hh +92 -0
- data/ext/gecode-1.3.1/gecode/set/convex/conv.cc +81 -0
- data/ext/gecode-1.3.1/gecode/set/convex/conv.icc +51 -0
- data/ext/gecode-1.3.1/gecode/set/convex/hull.cc +100 -0
- data/ext/gecode-1.3.1/gecode/set/convex/hull.icc +52 -0
- data/ext/gecode-1.3.1/gecode/set/distinct.cc +48 -0
- data/ext/gecode-1.3.1/gecode/set/distinct.hh +97 -0
- data/ext/gecode-1.3.1/gecode/set/distinct/atmostOne.cc +151 -0
- data/ext/gecode-1.3.1/gecode/set/distinct/atmostOne.icc +50 -0
- data/ext/gecode-1.3.1/gecode/set/distinct/binomial.cc +46 -0
- data/ext/gecode-1.3.1/gecode/set/distinct/binomial.icc +157 -0
- data/ext/gecode-1.3.1/gecode/set/distinct/distinct.cc +124 -0
- data/ext/gecode-1.3.1/gecode/set/distinct/distinct.icc +58 -0
- data/ext/gecode-1.3.1/gecode/set/dom.cc +224 -0
- data/ext/gecode-1.3.1/gecode/set/exception.icc +132 -0
- data/ext/gecode-1.3.1/gecode/set/int.cc +139 -0
- data/ext/gecode-1.3.1/gecode/set/int.hh +226 -0
- data/ext/gecode-1.3.1/gecode/set/int/card.cc +61 -0
- data/ext/gecode-1.3.1/gecode/set/int/card.icc +54 -0
- data/ext/gecode-1.3.1/gecode/set/int/channel.cc +100 -0
- data/ext/gecode-1.3.1/gecode/set/int/channel.icc +75 -0
- data/ext/gecode-1.3.1/gecode/set/int/match.cc +148 -0
- data/ext/gecode-1.3.1/gecode/set/int/match.icc +67 -0
- data/ext/gecode-1.3.1/gecode/set/int/minmax.cc +109 -0
- data/ext/gecode-1.3.1/gecode/set/int/minmax.icc +63 -0
- data/ext/gecode-1.3.1/gecode/set/int/weights.cc +182 -0
- data/ext/gecode-1.3.1/gecode/set/int/weights.icc +174 -0
- data/ext/gecode-1.3.1/gecode/set/projectors-compiler.hh +148 -0
- data/ext/gecode-1.3.1/gecode/set/projectors.cc +109 -0
- data/ext/gecode-1.3.1/gecode/set/projectors.hh +319 -0
- data/ext/gecode-1.3.1/gecode/set/projectors/compiler.cc +841 -0
- data/ext/gecode-1.3.1/gecode/set/projectors/projector-set.cc +69 -0
- data/ext/gecode-1.3.1/gecode/set/projectors/projector-set.icc +66 -0
- data/ext/gecode-1.3.1/gecode/set/projectors/projector.cc +125 -0
- data/ext/gecode-1.3.1/gecode/set/projectors/projector.icc +79 -0
- data/ext/gecode-1.3.1/gecode/set/projectors/propagator.hh +127 -0
- data/ext/gecode-1.3.1/gecode/set/projectors/propagator/card.icc +96 -0
- data/ext/gecode-1.3.1/gecode/set/projectors/propagator/nary.icc +106 -0
- data/ext/gecode-1.3.1/gecode/set/projectors/propagator/re-nary.cc +76 -0
- data/ext/gecode-1.3.1/gecode/set/projectors/propagator/re-nary.icc +53 -0
- data/ext/gecode-1.3.1/gecode/set/projectors/set-expr.cc +306 -0
- data/ext/gecode-1.3.1/gecode/set/projectors/set-expr.icc +192 -0
- data/ext/gecode-1.3.1/gecode/set/propagator.icc +96 -0
- data/ext/gecode-1.3.1/gecode/set/rel-op-const.cc +233 -0
- data/ext/gecode-1.3.1/gecode/set/rel-op.cc +96 -0
- data/ext/gecode-1.3.1/gecode/set/rel-op.hh +267 -0
- data/ext/gecode-1.3.1/gecode/set/rel-op/common.icc +528 -0
- data/ext/gecode-1.3.1/gecode/set/rel-op/inter.icc +312 -0
- data/ext/gecode-1.3.1/gecode/set/rel-op/partition.icc +131 -0
- data/ext/gecode-1.3.1/gecode/set/rel-op/post.icc +198 -0
- data/ext/gecode-1.3.1/gecode/set/rel-op/subofunion.icc +150 -0
- data/ext/gecode-1.3.1/gecode/set/rel-op/superofinter.icc +151 -0
- data/ext/gecode-1.3.1/gecode/set/rel-op/union.icc +292 -0
- data/ext/gecode-1.3.1/gecode/set/rel.cc +201 -0
- data/ext/gecode-1.3.1/gecode/set/rel.hh +250 -0
- data/ext/gecode-1.3.1/gecode/set/rel/common.icc +109 -0
- data/ext/gecode-1.3.1/gecode/set/rel/eq.icc +101 -0
- data/ext/gecode-1.3.1/gecode/set/rel/nosubset.icc +88 -0
- data/ext/gecode-1.3.1/gecode/set/rel/nq.icc +132 -0
- data/ext/gecode-1.3.1/gecode/set/rel/re-eq.icc +142 -0
- data/ext/gecode-1.3.1/gecode/set/rel/re-subset.icc +121 -0
- data/ext/gecode-1.3.1/gecode/set/rel/subset.icc +80 -0
- data/ext/gecode-1.3.1/gecode/set/select.cc +88 -0
- data/ext/gecode-1.3.1/gecode/set/select.hh +113 -0
- data/ext/gecode-1.3.1/gecode/set/select/disjoint.cc +267 -0
- data/ext/gecode-1.3.1/gecode/set/select/disjoint.icc +59 -0
- data/ext/gecode-1.3.1/gecode/set/select/idxarray.hh +91 -0
- data/ext/gecode-1.3.1/gecode/set/select/idxarray.icc +112 -0
- data/ext/gecode-1.3.1/gecode/set/select/inter.icc +300 -0
- data/ext/gecode-1.3.1/gecode/set/sequence.cc +48 -0
- data/ext/gecode-1.3.1/gecode/set/sequence.hh +97 -0
- data/ext/gecode-1.3.1/gecode/set/sequence/common.icc +79 -0
- data/ext/gecode-1.3.1/gecode/set/sequence/seq-u.cc +83 -0
- data/ext/gecode-1.3.1/gecode/set/sequence/seq-u.icc +63 -0
- data/ext/gecode-1.3.1/gecode/set/sequence/seq.cc +61 -0
- data/ext/gecode-1.3.1/gecode/set/sequence/seq.icc +53 -0
- data/ext/gecode-1.3.1/gecode/set/var-imp.vis +205 -0
- data/ext/gecode-1.3.1/gecode/set/var.icc +1090 -0
- data/ext/gecode-1.3.1/gecode/set/var/imp-body.icc +192 -0
- data/ext/gecode-1.3.1/gecode/set/var/imp-hdr.icc +235 -0
- data/ext/gecode-1.3.1/gecode/set/var/imp.cc +127 -0
- data/ext/gecode-1.3.1/gecode/set/var/imp.icc +356 -0
- data/ext/gecode-1.3.1/gecode/set/var/integerset.cc +256 -0
- data/ext/gecode-1.3.1/gecode/set/var/integerset.icc +512 -0
- data/ext/gecode-1.3.1/gecode/set/var/iter.icc +47 -0
- data/ext/gecode-1.3.1/gecode/set/var/set.cc +99 -0
- data/ext/gecode-1.3.1/gecode/set/var/set.icc +282 -0
- data/ext/gecode-1.3.1/gecode/set/view.icc +1075 -0
- data/ext/gecode-1.3.1/gecode/set/view/complement.icc +525 -0
- data/ext/gecode-1.3.1/gecode/set/view/const.icc +651 -0
- data/ext/gecode-1.3.1/gecode/set/view/print.cc +120 -0
- data/ext/gecode-1.3.1/gecode/set/view/set.icc +217 -0
- data/ext/gecode-1.3.1/gecode/set/view/singleton.icc +348 -0
- data/ext/gecode-1.3.1/gecode/support/block-allocator.hh +152 -0
- data/ext/gecode-1.3.1/gecode/support/dynamic-array.hh +131 -0
- data/ext/gecode-1.3.1/gecode/support/dynamic-stack.hh +157 -0
- data/ext/gecode-1.3.1/gecode/support/random.hh +100 -0
- data/ext/gecode-1.3.1/gecode/support/shared-array.hh +255 -0
- data/ext/gecode-1.3.1/gecode/support/sort.hh +193 -0
- data/ext/gecode-1.3.1/gecode/support/static-pqueue.hh +240 -0
- data/ext/gecode-1.3.1/gecode/support/static-stack.hh +117 -0
- data/ext/gecode-1.3.1/install-sh +323 -0
- data/ext/gecode-1.3.1/misc/debian/Makefile.am +8 -0
- data/ext/gecode-1.3.1/misc/debian/changelog +6 -0
- data/ext/gecode-1.3.1/misc/debian/control +11 -0
- data/ext/gecode-1.3.1/misc/debian/copyright +44 -0
- data/ext/gecode-1.3.1/misc/debian/gecode.info +9 -0
- data/ext/gecode-1.3.1/misc/debian/gecode.install +2 -0
- data/ext/gecode-1.3.1/misc/debian/gecode.spec +58 -0
- data/ext/gecode-1.3.1/misc/debian/rules +81 -0
- data/ext/gecode-1.3.1/misc/doxygen/back.png +0 -0
- data/ext/gecode-1.3.1/misc/doxygen/footer.html +3 -0
- data/ext/gecode-1.3.1/misc/doxygen/gecode-logo-100.png +0 -0
- data/ext/gecode-1.3.1/misc/doxygen/header.html +46 -0
- data/ext/gecode-1.3.1/misc/doxygen/stylesheet.css +460 -0
- data/ext/gecode-1.3.1/misc/fixproperties.sh +32 -0
- data/ext/gecode-1.3.1/misc/gecode-minimodel.pc.in +12 -0
- data/ext/gecode-1.3.1/misc/gecode-search.pc.in +12 -0
- data/ext/gecode-1.3.1/misc/gecode.pc.in +12 -0
- data/ext/gecode-1.3.1/misc/genchangelog.perl +190 -0
- data/ext/gecode-1.3.1/misc/genlicense.perl +113 -0
- data/ext/gecode-1.3.1/misc/genstatistics.perl +155 -0
- data/ext/gecode-1.3.1/misc/gentxtchangelog.perl +170 -0
- data/ext/gecode-1.3.1/misc/genvarimp.perl +666 -0
- data/ext/gecode-1.3.1/misc/getrevision.perl +32 -0
- data/ext/gecode-1.3.1/misc/makedepend.perl +66 -0
- data/ext/gecode-1.3.1/test/int.cc +497 -0
- data/ext/gecode-1.3.1/test/int.hh +119 -0
- data/ext/gecode-1.3.1/test/int/arithmetic.cc +262 -0
- data/ext/gecode-1.3.1/test/int/basic.cc +42 -0
- data/ext/gecode-1.3.1/test/int/bool.cc +189 -0
- data/ext/gecode-1.3.1/test/int/channel.cc +79 -0
- data/ext/gecode-1.3.1/test/int/count.cc +264 -0
- data/ext/gecode-1.3.1/test/int/distinct.cc +121 -0
- data/ext/gecode-1.3.1/test/int/dom.cc +69 -0
- data/ext/gecode-1.3.1/test/int/element.cc +132 -0
- data/ext/gecode-1.3.1/test/int/gcc.cc +592 -0
- data/ext/gecode-1.3.1/test/int/linear.cc +315 -0
- data/ext/gecode-1.3.1/test/int/minimodel.cc +451 -0
- data/ext/gecode-1.3.1/test/int/regular.cc +105 -0
- data/ext/gecode-1.3.1/test/int/rel.cc +283 -0
- data/ext/gecode-1.3.1/test/int/scheduling.cc +259 -0
- data/ext/gecode-1.3.1/test/int/sortedness.cc +272 -0
- data/ext/gecode-1.3.1/test/intset.cc +40 -0
- data/ext/gecode-1.3.1/test/log.cc +515 -0
- data/ext/gecode-1.3.1/test/log.hh +68 -0
- data/ext/gecode-1.3.1/test/set.cc +542 -0
- data/ext/gecode-1.3.1/test/set.hh +152 -0
- data/ext/gecode-1.3.1/test/set/convex.cc +94 -0
- data/ext/gecode-1.3.1/test/set/distinct.cc +148 -0
- data/ext/gecode-1.3.1/test/set/dom.cc +67 -0
- data/ext/gecode-1.3.1/test/set/int.cc +249 -0
- data/ext/gecode-1.3.1/test/set/projection.cc +333 -0
- data/ext/gecode-1.3.1/test/set/rel-op.cc +662 -0
- data/ext/gecode-1.3.1/test/set/rel.cc +198 -0
- data/ext/gecode-1.3.1/test/set/select.cc +108 -0
- data/ext/gecode-1.3.1/test/set/sequence.cc +83 -0
- data/ext/gecode-1.3.1/test/stress.cc +93 -0
- data/ext/gecode-1.3.1/test/stress.hh +74 -0
- data/ext/gecode-1.3.1/test/stress/distinct.cc +70 -0
- data/ext/gecode-1.3.1/test/stress/domain.cc +69 -0
- data/ext/gecode-1.3.1/test/stress/exec.cc +60 -0
- data/ext/gecode-1.3.1/test/stress/minsort.cc +63 -0
- data/ext/gecode-1.3.1/test/stress/regular.cc +112 -0
- data/ext/gecode-1.3.1/test/test.cc +215 -0
- data/ext/gecode-1.3.1/test/test.hh +107 -0
- data/ext/missing.cpp +328 -0
- data/ext/missing.h +120 -0
- data/ext/vararray.cpp +330 -0
- data/ext/vararray.h +149 -0
- data/lib/gecoder.rb +5 -0
- data/lib/gecoder/bindings.rb +34 -0
- data/lib/gecoder/bindings/bindings.rb +2209 -0
- data/lib/gecoder/interface.rb +8 -0
- data/lib/gecoder/interface/binding_changes.rb +313 -0
- data/lib/gecoder/interface/branch.rb +152 -0
- data/lib/gecoder/interface/constraints.rb +397 -0
- data/lib/gecoder/interface/constraints/bool/boolean.rb +246 -0
- data/lib/gecoder/interface/constraints/bool/linear.rb +29 -0
- data/lib/gecoder/interface/constraints/bool_enum/boolean.rb +84 -0
- data/lib/gecoder/interface/constraints/bool_enum_constraints.rb +8 -0
- data/lib/gecoder/interface/constraints/bool_var_constraints.rb +75 -0
- data/lib/gecoder/interface/constraints/int/arithmetic.rb +71 -0
- data/lib/gecoder/interface/constraints/int/domain.rb +78 -0
- data/lib/gecoder/interface/constraints/int/linear.rb +295 -0
- data/lib/gecoder/interface/constraints/int_enum/arithmetic.rb +72 -0
- data/lib/gecoder/interface/constraints/int_enum/channel.rb +100 -0
- data/lib/gecoder/interface/constraints/int_enum/count.rb +92 -0
- data/lib/gecoder/interface/constraints/int_enum/distinct.rb +69 -0
- data/lib/gecoder/interface/constraints/int_enum/element.rb +82 -0
- data/lib/gecoder/interface/constraints/int_enum/equality.rb +38 -0
- data/lib/gecoder/interface/constraints/int_enum/sort.rb +126 -0
- data/lib/gecoder/interface/constraints/int_enum_constraints.rb +37 -0
- data/lib/gecoder/interface/constraints/int_var_constraints.rb +58 -0
- data/lib/gecoder/interface/constraints/reifiable_constraints.rb +78 -0
- data/lib/gecoder/interface/constraints/set/cardinality.rb +75 -0
- data/lib/gecoder/interface/constraints/set/connection.rb +193 -0
- data/lib/gecoder/interface/constraints/set/domain.rb +109 -0
- data/lib/gecoder/interface/constraints/set/operation.rb +132 -0
- data/lib/gecoder/interface/constraints/set/relation.rb +178 -0
- data/lib/gecoder/interface/constraints/set_enum/channel.rb +18 -0
- data/lib/gecoder/interface/constraints/set_enum/distinct.rb +80 -0
- data/lib/gecoder/interface/constraints/set_enum/operation.rb +60 -0
- data/lib/gecoder/interface/constraints/set_enum/selection.rb +217 -0
- data/lib/gecoder/interface/constraints/set_enum_constraints.rb +34 -0
- data/lib/gecoder/interface/constraints/set_var_constraints.rb +72 -0
- data/lib/gecoder/interface/enum_matrix.rb +64 -0
- data/lib/gecoder/interface/enum_wrapper.rb +153 -0
- data/lib/gecoder/interface/model.rb +251 -0
- data/lib/gecoder/interface/search.rb +123 -0
- data/lib/gecoder/interface/variables.rb +254 -0
- data/lib/gecoder/version.rb +4 -0
- data/specs/binding_changes.rb +76 -0
- data/specs/bool_var.rb +74 -0
- data/specs/branch.rb +170 -0
- data/specs/constraints/arithmetic.rb +266 -0
- data/specs/constraints/bool_enum.rb +140 -0
- data/specs/constraints/boolean.rb +232 -0
- data/specs/constraints/cardinality.rb +154 -0
- data/specs/constraints/channel.rb +126 -0
- data/specs/constraints/connection.rb +373 -0
- data/specs/constraints/constraint_helper.rb +180 -0
- data/specs/constraints/constraints.rb +74 -0
- data/specs/constraints/count.rb +139 -0
- data/specs/constraints/distinct.rb +218 -0
- data/specs/constraints/element.rb +106 -0
- data/specs/constraints/equality.rb +31 -0
- data/specs/constraints/int_domain.rb +69 -0
- data/specs/constraints/int_relation.rb +78 -0
- data/specs/constraints/linear.rb +332 -0
- data/specs/constraints/reification_sugar.rb +96 -0
- data/specs/constraints/selection.rb +292 -0
- data/specs/constraints/set_domain.rb +181 -0
- data/specs/constraints/set_operation.rb +285 -0
- data/specs/constraints/set_relation.rb +201 -0
- data/specs/constraints/sort.rb +175 -0
- data/specs/enum_matrix.rb +43 -0
- data/specs/enum_wrapper.rb +122 -0
- data/specs/int_var.rb +144 -0
- data/specs/logging.rb +24 -0
- data/specs/model.rb +190 -0
- data/specs/search.rb +246 -0
- data/specs/set_var.rb +68 -0
- data/specs/spec_helper.rb +93 -0
- data/tasks/all_tasks.rb +1 -0
- data/tasks/distribution.rake +129 -0
- data/tasks/rcov.rake +17 -0
- data/tasks/specs.rake +15 -0
- data/tasks/svn.rake +11 -0
- data/tasks/website.rake +51 -0
- data/vendor/rust/README +28 -0
- data/vendor/rust/bin/cxxgenerator.rb +93 -0
- data/vendor/rust/include/rust_checks.hh +115 -0
- data/vendor/rust/include/rust_conversions.hh +102 -0
- data/vendor/rust/rust.rb +67 -0
- data/vendor/rust/rust/attribute.rb +51 -0
- data/vendor/rust/rust/bindings.rb +172 -0
- data/vendor/rust/rust/class.rb +339 -0
- data/vendor/rust/rust/constants.rb +48 -0
- data/vendor/rust/rust/container.rb +110 -0
- data/vendor/rust/rust/cppifaceparser.rb +129 -0
- data/vendor/rust/rust/cwrapper.rb +72 -0
- data/vendor/rust/rust/cxxclass.rb +98 -0
- data/vendor/rust/rust/element.rb +81 -0
- data/vendor/rust/rust/enum.rb +63 -0
- data/vendor/rust/rust/function.rb +407 -0
- data/vendor/rust/rust/namespace.rb +61 -0
- data/vendor/rust/rust/templates/AttributeDefinition.rusttpl +17 -0
- data/vendor/rust/rust/templates/AttributeInitBinding.rusttpl +9 -0
- data/vendor/rust/rust/templates/BindingsHeader.rusttpl +24 -0
- data/vendor/rust/rust/templates/BindingsUnit.rusttpl +46 -0
- data/vendor/rust/rust/templates/CWrapperClassDefinitions.rusttpl +64 -0
- data/vendor/rust/rust/templates/ClassDeclarations.rusttpl +7 -0
- data/vendor/rust/rust/templates/ClassInitialize.rusttpl +6 -0
- data/vendor/rust/rust/templates/ConstructorStub.rusttpl +21 -0
- data/vendor/rust/rust/templates/CxxClassDefinitions.rusttpl +91 -0
- data/vendor/rust/rust/templates/CxxMethodStub.rusttpl +12 -0
- data/vendor/rust/rust/templates/CxxStandaloneClassDefinitions.rusttpl +26 -0
- data/vendor/rust/rust/templates/EnumDeclarations.rusttpl +3 -0
- data/vendor/rust/rust/templates/EnumDefinitions.rusttpl +29 -0
- data/vendor/rust/rust/templates/FunctionDefinition.rusttpl +9 -0
- data/vendor/rust/rust/templates/FunctionInitAlias.rusttpl +5 -0
- data/vendor/rust/rust/templates/FunctionInitBinding.rusttpl +9 -0
- data/vendor/rust/rust/templates/MethodInitBinding.rusttpl +9 -0
- data/vendor/rust/rust/templates/ModuleDeclarations.rusttpl +3 -0
- data/vendor/rust/rust/templates/ModuleDefinitions.rusttpl +3 -0
- data/vendor/rust/rust/templates/StandaloneClassDeclarations.rusttpl +7 -0
- data/vendor/rust/rust/templates/VariableFunctionCall.rusttpl +14 -0
- data/vendor/rust/rust/type.rb +98 -0
- data/vendor/rust/test/Makefile +4 -0
- data/vendor/rust/test/constants.rb +36 -0
- data/vendor/rust/test/cppclass.cc +45 -0
- data/vendor/rust/test/cppclass.hh +67 -0
- data/vendor/rust/test/cppclass.rb +59 -0
- data/vendor/rust/test/cwrapper.c +74 -0
- data/vendor/rust/test/cwrapper.h +41 -0
- data/vendor/rust/test/cwrapper.rb +56 -0
- data/vendor/rust/test/dummyclass.hh +31 -0
- data/vendor/rust/test/lib/extension-test.rb +98 -0
- data/vendor/rust/test/operators.cc +41 -0
- data/vendor/rust/test/operators.hh +39 -0
- data/vendor/rust/test/operators.rb +39 -0
- data/vendor/rust/test/test-constants.rb +43 -0
- data/vendor/rust/test/test-cppclass.rb +82 -0
- data/vendor/rust/test/test-cwrapper.rb +80 -0
- data/vendor/rust/test/test-operators.rb +42 -0
- metadata +826 -0
data/ext/vararray.h
ADDED
@@ -0,0 +1,149 @@
|
|
1
|
+
/**
|
2
|
+
* Gecode/R, a Ruby interface to Gecode.
|
3
|
+
* Copyright (C) 2007 The Gecode/R development team.
|
4
|
+
*
|
5
|
+
* This library is free software; you can redistribute it and/or
|
6
|
+
* modify it under the terms of the GNU Lesser General Public
|
7
|
+
* License as published by the Free Software Foundation; either
|
8
|
+
* version 2.1 of the License, or (at your option) any later version.
|
9
|
+
*
|
10
|
+
* This library is distributed in the hope that it will be useful,
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
13
|
+
* Lesser General Public License for more details.
|
14
|
+
*
|
15
|
+
* You should have received a copy of the GNU Lesser General Public
|
16
|
+
* License along with this library; if not, write to the Free Software
|
17
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
18
|
+
**/
|
19
|
+
|
20
|
+
#ifndef _VARARRAY_H
|
21
|
+
#define _VARARRAY_H
|
22
|
+
|
23
|
+
#include <gecode/int.hh>
|
24
|
+
#include <gecode/set.hh>
|
25
|
+
|
26
|
+
|
27
|
+
namespace Gecode {
|
28
|
+
|
29
|
+
class MVarArray
|
30
|
+
{
|
31
|
+
public:
|
32
|
+
MVarArray();
|
33
|
+
virtual ~MVarArray();
|
34
|
+
virtual void enlargeArray(Gecode::Space *parent, int n = 1) = 0;
|
35
|
+
|
36
|
+
int count() const;
|
37
|
+
int size() const;
|
38
|
+
|
39
|
+
void setCount(int c);
|
40
|
+
void setSize(int n);
|
41
|
+
|
42
|
+
private:
|
43
|
+
struct Private;
|
44
|
+
Private *const d;
|
45
|
+
};
|
46
|
+
|
47
|
+
class MIntVarArray : public MVarArray
|
48
|
+
{
|
49
|
+
public:
|
50
|
+
MIntVarArray();
|
51
|
+
MIntVarArray(const Gecode::IntVarArray &arr);
|
52
|
+
MIntVarArray(Space *home, int n);
|
53
|
+
MIntVarArray(Space *home, int n, int min, int max);
|
54
|
+
MIntVarArray(Space *home, int n, const IntSet &s);
|
55
|
+
|
56
|
+
~MIntVarArray();
|
57
|
+
|
58
|
+
void enlargeArray(Gecode::Space *parent, int n = 1);
|
59
|
+
|
60
|
+
void setArray(const Gecode::IntVarArray &arr);
|
61
|
+
Gecode::IntVarArray *ptr() const;
|
62
|
+
|
63
|
+
Gecode::IntVar &at(int index);
|
64
|
+
void push(const Gecode::IntVar& intvar);
|
65
|
+
|
66
|
+
void debug() const;
|
67
|
+
|
68
|
+
void gc_mark();
|
69
|
+
|
70
|
+
IntVar &operator [](int index);
|
71
|
+
|
72
|
+
private:
|
73
|
+
struct Private;
|
74
|
+
Private *const d;
|
75
|
+
};
|
76
|
+
|
77
|
+
class MBoolVarArray : public MVarArray
|
78
|
+
{
|
79
|
+
public:
|
80
|
+
MBoolVarArray();
|
81
|
+
MBoolVarArray(const Gecode::BoolVarArray &arr);
|
82
|
+
MBoolVarArray(Space *home, int n);
|
83
|
+
|
84
|
+
~MBoolVarArray();
|
85
|
+
|
86
|
+
void enlargeArray(Gecode::Space *parent, int n = 1);
|
87
|
+
|
88
|
+
void setArray(const Gecode::BoolVarArray &arr);
|
89
|
+
Gecode::BoolVarArray *ptr() const;
|
90
|
+
|
91
|
+
Gecode::BoolVar &at(int index);
|
92
|
+
Gecode::BoolVar &operator[](int index);
|
93
|
+
|
94
|
+
void push(const Gecode::BoolVar& boolvar);
|
95
|
+
|
96
|
+
void debug() const;
|
97
|
+
|
98
|
+
void gc_mark();
|
99
|
+
|
100
|
+
private:
|
101
|
+
struct Private;
|
102
|
+
Private *const d;
|
103
|
+
};
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
class MSetVarArray : public MVarArray
|
108
|
+
{
|
109
|
+
public:
|
110
|
+
MSetVarArray();
|
111
|
+
MSetVarArray(const Gecode::SetVarArray &arr);
|
112
|
+
|
113
|
+
MSetVarArray(Space *home, int n);
|
114
|
+
MSetVarArray(Space *home, int n, int glbMin, int glbMax, int lubMin, int lubMax, unsigned int minCard=0, unsigned int maxCard=Limits::Set::card_max);
|
115
|
+
|
116
|
+
MSetVarArray(Space *home, int n, const IntSet &glb, int lubMin, int lubMax, unsigned int minCard=0, unsigned int maxCard=Limits::Set::card_max);
|
117
|
+
|
118
|
+
MSetVarArray(Space *home, int n, int glbMin, int glbMax, const IntSet &lub, unsigned int minCard=0, unsigned int maxCard=Limits::Set::card_max);
|
119
|
+
|
120
|
+
MSetVarArray(Space *home, int n, const IntSet &glb, const IntSet &lub, unsigned int minCard=0, unsigned int maxCard=Limits::Set::card_max);
|
121
|
+
|
122
|
+
~MSetVarArray();
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
void enlargeArray(Gecode::Space *parent, int n = 1);
|
127
|
+
|
128
|
+
void setArray(const Gecode::SetVarArray &arr);
|
129
|
+
Gecode::SetVarArray *ptr() const;
|
130
|
+
|
131
|
+
Gecode::SetVar &at(int index);
|
132
|
+
Gecode::SetVar &operator[](int index);
|
133
|
+
|
134
|
+
void push(const Gecode::SetVar& setvar);
|
135
|
+
|
136
|
+
void debug() const;
|
137
|
+
|
138
|
+
void gc_mark();
|
139
|
+
|
140
|
+
private:
|
141
|
+
struct Private;
|
142
|
+
Private *const d;
|
143
|
+
};
|
144
|
+
|
145
|
+
}
|
146
|
+
|
147
|
+
|
148
|
+
#endif
|
149
|
+
|
data/lib/gecoder.rb
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'gecode.so'
|
2
|
+
module Gecode
|
3
|
+
# The Gecode::Raw module is what the interface should use to access methods
|
4
|
+
# in Gecode. The actual bindings are located in ::GecodeRaw.
|
5
|
+
|
6
|
+
# Describes a layer that delegates to GecodeRaw only after having logged the
|
7
|
+
# call.
|
8
|
+
module LoggingLayer #:nodoc:
|
9
|
+
require 'logger'
|
10
|
+
|
11
|
+
def self.method_missing(name, *args)
|
12
|
+
logger.info{ "#{name}(#{args.join(', ')})" }
|
13
|
+
::GecodeRaw.send(name, *args)
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.const_missing(name)
|
17
|
+
::GecodeRaw.const_get(name)
|
18
|
+
end
|
19
|
+
|
20
|
+
# Gets the logger, or creates one if none exists.
|
21
|
+
def self.logger
|
22
|
+
return @logger unless @logger.nil?
|
23
|
+
file = open('gecoder.log', File::WRONLY | File::APPEND | File::CREAT)
|
24
|
+
@logger = ::Logger.new(file)
|
25
|
+
@logger.datetime_format = "%Y-%m-%d %H:%M:%S"
|
26
|
+
@logger
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
# We just make Gecode::Raw an alias of the real module.
|
31
|
+
Raw = ::GecodeRaw
|
32
|
+
# Log all calls via Gecode::Raw.
|
33
|
+
#Raw = LoggingLayer
|
34
|
+
end
|
@@ -0,0 +1,2209 @@
|
|
1
|
+
# Copyright (c) 2007, David Cuadrado <krawek@gmail.com>
|
2
|
+
# All rights reserved.
|
3
|
+
|
4
|
+
# Redistribution and use in source and binary forms, with or without
|
5
|
+
# modification, are permitted provided that the following conditions are met:
|
6
|
+
#
|
7
|
+
# 1. Redistributions of source code must retain the above copyright notice,
|
8
|
+
# this list of conditions and the following disclaimer.
|
9
|
+
# 2. Redistributions in binary form must reproduce the above copyright
|
10
|
+
# notice, this list of conditions and the following disclaimer in the
|
11
|
+
# documentation and/or other materials provided with the distribution.
|
12
|
+
#
|
13
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
14
|
+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
15
|
+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
16
|
+
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
17
|
+
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
18
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
19
|
+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
20
|
+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
21
|
+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
22
|
+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
23
|
+
# POSSIBILITY OF SUCH DAMAGE.
|
24
|
+
|
25
|
+
|
26
|
+
RUST_PATH = File.dirname(__FILE__) + '/../../../vendor/rust'
|
27
|
+
$:.unshift(RUST_PATH) unless $:.include?(RUST_PATH)
|
28
|
+
require 'rust'
|
29
|
+
|
30
|
+
ruby2intargs = %@
|
31
|
+
|
32
|
+
bool is_Gecode_IntArgs(VALUE arr)
|
33
|
+
{
|
34
|
+
return is_array(arr);
|
35
|
+
}
|
36
|
+
|
37
|
+
Gecode::IntArgs ruby2Gecode_IntArgs(VALUE arr, int argn = -1);
|
38
|
+
Gecode::IntArgs ruby2Gecode_IntArgs(VALUE arr, int argn)
|
39
|
+
{
|
40
|
+
RArray *array = RARRAY(arr);
|
41
|
+
Gecode::IntArgs intargs(array->len);
|
42
|
+
for(int i = 0; i < array->len; i++)
|
43
|
+
{
|
44
|
+
intargs[i] = NUM2INT(array->ptr[i]);
|
45
|
+
}
|
46
|
+
|
47
|
+
return intargs;
|
48
|
+
}
|
49
|
+
@
|
50
|
+
|
51
|
+
custom_mark_definitions =<<-"end_custom_definition"
|
52
|
+
static void Gecode_MSpace_custom_mark(void *p) {
|
53
|
+
Gecode_MSpace_mark(p);
|
54
|
+
((Gecode::MSpace*)p)->gc_mark();
|
55
|
+
}
|
56
|
+
|
57
|
+
static void Gecode_MIntVarArray_custom_mark(void *p) {
|
58
|
+
Gecode_MIntVarArray_mark(p);
|
59
|
+
((Gecode::MIntVarArray*)p)->gc_mark();
|
60
|
+
}
|
61
|
+
|
62
|
+
static void Gecode_MBoolVarArray_custom_mark(void *p) {
|
63
|
+
Gecode_MBoolVarArray_mark(p);
|
64
|
+
((Gecode::MBoolVarArray*)p)->gc_mark();
|
65
|
+
}
|
66
|
+
|
67
|
+
static void Gecode_MSetVarArray_custom_mark(void *p) {
|
68
|
+
Gecode_MSetVarArray_mark(p);
|
69
|
+
((Gecode::MSetVarArray*)p)->gc_mark();
|
70
|
+
}
|
71
|
+
end_custom_definition
|
72
|
+
|
73
|
+
|
74
|
+
Rust::Bindings::create_bindings Rust::Bindings::LangCxx, "gecode" do |b|
|
75
|
+
b.include_header 'gecode/kernel.hh', Rust::Bindings::HeaderGlobal
|
76
|
+
b.include_header 'gecode/int.hh', Rust::Bindings::HeaderGlobal
|
77
|
+
b.include_header 'gecode/search.hh', Rust::Bindings::HeaderGlobal
|
78
|
+
b.include_header 'gecode/minimodel.hh', Rust::Bindings::HeaderGlobal
|
79
|
+
b.include_header 'missing.h', Rust::Bindings::HeaderLocal
|
80
|
+
|
81
|
+
b.add_custom_definition ruby2intargs
|
82
|
+
b.add_custom_definition custom_mark_definitions
|
83
|
+
|
84
|
+
# Is it possible to use namespaces with multiple levels in Rust? I.e. use
|
85
|
+
# Gecode::Raw instead of GecodeRaw here (and avoid the hidious renaming)
|
86
|
+
# when requiring them.
|
87
|
+
b.add_namespace "GecodeRaw", "Gecode" do |ns|
|
88
|
+
ns.add_enum "BvarSel" do |enum|
|
89
|
+
enum.add_value "BVAR_NONE"
|
90
|
+
enum.add_value "BVAR_MIN_MIN"
|
91
|
+
enum.add_value "BVAR_MIN_MAX"
|
92
|
+
enum.add_value "BVAR_MAX_MIN"
|
93
|
+
enum.add_value "BVAR_MAX_MAX"
|
94
|
+
enum.add_value "BVAR_SIZE_MIN"
|
95
|
+
enum.add_value "BVAR_SIZE_MAX"
|
96
|
+
enum.add_value "BVAR_DEGREE_MAX"
|
97
|
+
enum.add_value "BVAR_DEGREE_MIN"
|
98
|
+
enum.add_value "BVAR_REGRET_MIN_MIN"
|
99
|
+
enum.add_value "BVAR_REGRET_MIN_MAX"
|
100
|
+
enum.add_value "BVAR_REGRET_MAX_MIN"
|
101
|
+
enum.add_value "BVAR_REGRET_MAX_MAX"
|
102
|
+
end
|
103
|
+
|
104
|
+
ns.add_enum "SetBvarSel" do |enum|
|
105
|
+
enum.add_value "SETBVAR_NONE"
|
106
|
+
enum.add_value "SETBVAR_MIN_CARD"
|
107
|
+
enum.add_value "SETBVAR_MAX_CARD"
|
108
|
+
enum.add_value "SETBVAR_MIN_UNKNOWN_ELEM"
|
109
|
+
enum.add_value "SETBVAR_MAX_UNKNOWN_ELEM"
|
110
|
+
end
|
111
|
+
|
112
|
+
ns.add_enum "SetBvalSel" do |enum|
|
113
|
+
enum.add_value "SETBVAL_MIN"
|
114
|
+
enum.add_value "SETBVAL_MAX"
|
115
|
+
end
|
116
|
+
|
117
|
+
|
118
|
+
ns.add_enum "BvalSel" do |enum|
|
119
|
+
enum.add_value "BVAL_MIN"
|
120
|
+
enum.add_value "BVAL_MED"
|
121
|
+
enum.add_value "BVAL_MAX"
|
122
|
+
enum.add_value "BVAL_SPLIT_MIN"
|
123
|
+
enum.add_value "BVAL_SPLIT_MAX"
|
124
|
+
end
|
125
|
+
|
126
|
+
ns.add_enum "IntRelType" do |enum|
|
127
|
+
enum.add_value "IRT_EQ"
|
128
|
+
enum.add_value "IRT_NQ"
|
129
|
+
enum.add_value "IRT_LQ"
|
130
|
+
enum.add_value "IRT_LE"
|
131
|
+
enum.add_value "IRT_GQ"
|
132
|
+
enum.add_value "IRT_GR"
|
133
|
+
end
|
134
|
+
|
135
|
+
ns.add_enum "SetRelType" do |enum|
|
136
|
+
enum.add_value "SRT_EQ"
|
137
|
+
enum.add_value "SRT_NQ"
|
138
|
+
enum.add_value "SRT_SUB"
|
139
|
+
enum.add_value "SRT_SUP"
|
140
|
+
enum.add_value "SRT_DISJ"
|
141
|
+
enum.add_value "SRT_CMPL"
|
142
|
+
end
|
143
|
+
|
144
|
+
ns.add_enum "SetOpType " do |enum|
|
145
|
+
enum.add_value "SOT_UNION"
|
146
|
+
enum.add_value "SOT_DUNION"
|
147
|
+
enum.add_value "SOT_INTER"
|
148
|
+
enum.add_value "SOT_MINUS"
|
149
|
+
end
|
150
|
+
|
151
|
+
ns.add_enum "IntConLevel" do |enum|
|
152
|
+
enum.add_value "ICL_VAL"
|
153
|
+
enum.add_value "ICL_BND"
|
154
|
+
enum.add_value "ICL_DOM"
|
155
|
+
enum.add_value "ICL_DEF"
|
156
|
+
end
|
157
|
+
|
158
|
+
ns.add_enum "SpaceStatus" do |enum|
|
159
|
+
enum.add_value "SS_FAILED"
|
160
|
+
enum.add_value "SS_SOLVED"
|
161
|
+
enum.add_value "SS_BRANCH"
|
162
|
+
end
|
163
|
+
|
164
|
+
ns.add_enum "AvalSel" do |enum|
|
165
|
+
enum.add_value "AVAL_MIN"
|
166
|
+
enum.add_value "AVAL_MED"
|
167
|
+
enum.add_value "AVAL_MAX"
|
168
|
+
end
|
169
|
+
|
170
|
+
ns.add_cxx_class "MIntVarArray" do |klass|
|
171
|
+
klass.bindname = "IntVarArray"
|
172
|
+
klass.function_mark = 'Gecode_MIntVarArray_custom_mark'
|
173
|
+
|
174
|
+
klass.add_constructor
|
175
|
+
klass.add_constructor do |func|
|
176
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
177
|
+
func.add_parameter "int", "n"
|
178
|
+
end
|
179
|
+
|
180
|
+
klass.add_constructor do |func|
|
181
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
182
|
+
func.add_parameter "int", "n"
|
183
|
+
func.add_parameter "int", "min"
|
184
|
+
func.add_parameter "int", "max"
|
185
|
+
end
|
186
|
+
|
187
|
+
klass.add_constructor do |func|
|
188
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
189
|
+
func.add_parameter "int", "n"
|
190
|
+
func.add_parameter "Gecode::IntSet", "s"
|
191
|
+
end
|
192
|
+
|
193
|
+
klass.add_method "at", "Gecode::IntVar&" do |method|
|
194
|
+
method.add_parameter "int", "index"
|
195
|
+
end
|
196
|
+
|
197
|
+
klass.add_operator "[]", "Gecode::IntVar&" do |method|
|
198
|
+
method.add_parameter "int", "index"
|
199
|
+
end
|
200
|
+
|
201
|
+
klass.add_operator "[]=", "Gecode::IntVar&" do |method|
|
202
|
+
method.add_parameter "int", "index"
|
203
|
+
method.add_parameter "Gecode::IntVar", "val"
|
204
|
+
end
|
205
|
+
|
206
|
+
klass.add_method "enlargeArray" do |method|
|
207
|
+
method.add_parameter "Gecode::MSpace *", "home"
|
208
|
+
method.add_parameter "int", "n"
|
209
|
+
end
|
210
|
+
|
211
|
+
klass.add_method "size", "int"
|
212
|
+
|
213
|
+
klass.add_method "debug"
|
214
|
+
|
215
|
+
end
|
216
|
+
|
217
|
+
|
218
|
+
ns.add_cxx_class "MBoolVarArray" do |klass|
|
219
|
+
klass.bindname = "BoolVarArray"
|
220
|
+
klass.function_mark = 'Gecode_MBoolVarArray_custom_mark'
|
221
|
+
|
222
|
+
klass.add_constructor
|
223
|
+
klass.add_constructor do |func|
|
224
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
225
|
+
func.add_parameter "int", "n"
|
226
|
+
end
|
227
|
+
|
228
|
+
klass.add_method "at", "Gecode::BoolVar&" do |method|
|
229
|
+
method.add_parameter "int", "index"
|
230
|
+
end
|
231
|
+
|
232
|
+
klass.add_operator "[]", "Gecode::BoolVar&" do |method|
|
233
|
+
method.add_parameter "int", "index"
|
234
|
+
end
|
235
|
+
|
236
|
+
klass.add_operator "[]=", "Gecode::BoolVar&" do |method|
|
237
|
+
method.add_parameter "int", "index"
|
238
|
+
method.add_parameter "Gecode::BoolVar", "val"
|
239
|
+
end
|
240
|
+
|
241
|
+
klass.add_method "enlargeArray" do |method|
|
242
|
+
method.add_parameter "Gecode::MSpace *", "home"
|
243
|
+
method.add_parameter "int", "n"
|
244
|
+
end
|
245
|
+
|
246
|
+
klass.add_method "size", "int"
|
247
|
+
|
248
|
+
klass.add_method "debug"
|
249
|
+
|
250
|
+
end
|
251
|
+
|
252
|
+
ns.add_cxx_class "MSetVarArray" do |klass|
|
253
|
+
klass.bindname = "SetVarArray"
|
254
|
+
klass.function_mark = 'Gecode_MSetVarArray_custom_mark'
|
255
|
+
|
256
|
+
klass.add_constructor
|
257
|
+
|
258
|
+
klass.add_constructor do |method|
|
259
|
+
method.add_parameter "Gecode::MSpace *", "home"
|
260
|
+
method.add_parameter "int", "n"
|
261
|
+
end
|
262
|
+
|
263
|
+
klass.add_constructor do |method|
|
264
|
+
method.add_parameter "Gecode::MSpace *", "home"
|
265
|
+
method.add_parameter "int", "n"
|
266
|
+
method.add_parameter "int", "glbMin"
|
267
|
+
method.add_parameter "int", "glbMax"
|
268
|
+
method.add_parameter "int", "lubMin"
|
269
|
+
method.add_parameter "int", "lubMax"
|
270
|
+
method.add_parameter "int", "minCard"
|
271
|
+
method.add_parameter "int", "maxCard"
|
272
|
+
end
|
273
|
+
|
274
|
+
klass.add_constructor do |method|
|
275
|
+
method.add_parameter "Gecode::MSpace *", "home"
|
276
|
+
method.add_parameter "int", "n"
|
277
|
+
method.add_parameter "Gecode::IntSet", "glb"
|
278
|
+
method.add_parameter "int", "lubMin"
|
279
|
+
method.add_parameter "int", "lubMax"
|
280
|
+
method.add_parameter "int", "minCard", true
|
281
|
+
method.add_parameter "int", "maxCard", true
|
282
|
+
end
|
283
|
+
|
284
|
+
klass.add_constructor do |method|
|
285
|
+
method.add_parameter "Gecode::MSpace *", "home"
|
286
|
+
method.add_parameter "int", "n"
|
287
|
+
method.add_parameter "int", "glbMin"
|
288
|
+
method.add_parameter "int", "glbMax"
|
289
|
+
method.add_parameter "Gecode::IntSet", "lub"
|
290
|
+
method.add_parameter "int", "minCard", true
|
291
|
+
method.add_parameter "int", "maxCard", true
|
292
|
+
end
|
293
|
+
|
294
|
+
klass.add_constructor do |method|
|
295
|
+
method.add_parameter "Gecode::MSpace *", "home"
|
296
|
+
method.add_parameter "int", "n"
|
297
|
+
method.add_parameter "Gecode::IntSet", "glb"
|
298
|
+
method.add_parameter "Gecode::IntSet", "lub"
|
299
|
+
method.add_parameter "int", "minCard", true
|
300
|
+
method.add_parameter "int", "maxCard", true
|
301
|
+
end
|
302
|
+
|
303
|
+
klass.add_method "at", "Gecode::SetVar&" do |method|
|
304
|
+
method.add_parameter "int", "index"
|
305
|
+
end
|
306
|
+
|
307
|
+
klass.add_operator "[]", "Gecode::SetVar&" do |method|
|
308
|
+
method.add_parameter "int", "index"
|
309
|
+
end
|
310
|
+
|
311
|
+
klass.add_operator "[]=", "Gecode::SetVar&" do |method|
|
312
|
+
method.add_parameter "int", "index"
|
313
|
+
method.add_parameter "Gecode::SetVar", "val"
|
314
|
+
end
|
315
|
+
|
316
|
+
klass.add_method "enlargeArray" do |method|
|
317
|
+
method.add_parameter "Gecode::MSpace *", "home"
|
318
|
+
method.add_parameter "int", "n"
|
319
|
+
end
|
320
|
+
|
321
|
+
klass.add_method "size", "int"
|
322
|
+
|
323
|
+
klass.add_method "debug"
|
324
|
+
end
|
325
|
+
|
326
|
+
ns.add_cxx_class "MBranchingDesc" do |klass|
|
327
|
+
klass.bindname = "BranchingDesc"
|
328
|
+
klass.add_constructor
|
329
|
+
klass.add_method "alternatives", "int"
|
330
|
+
klass.add_method "size", "int"
|
331
|
+
end
|
332
|
+
|
333
|
+
ns.add_cxx_class "MSpace" do |klass|
|
334
|
+
klass.bindname = "Space"
|
335
|
+
klass.function_mark = 'Gecode_MSpace_custom_mark'
|
336
|
+
|
337
|
+
klass.add_constructor
|
338
|
+
|
339
|
+
klass.add_method "debug"
|
340
|
+
|
341
|
+
klass.add_method "constrain" do |method|
|
342
|
+
method.add_parameter "Gecode::MSpace*", "s"
|
343
|
+
end
|
344
|
+
|
345
|
+
klass.add_method "own" do |method|
|
346
|
+
method.add_parameter "Gecode::MIntVarArray *", "x"
|
347
|
+
method.add_parameter "char*", "name"
|
348
|
+
end
|
349
|
+
|
350
|
+
klass.add_method "own" do |method|
|
351
|
+
method.add_parameter "Gecode::MBoolVarArray *", "x"
|
352
|
+
method.add_parameter "char*", "name"
|
353
|
+
end
|
354
|
+
|
355
|
+
klass.add_method "own" do |method|
|
356
|
+
method.add_parameter "Gecode::MSetVarArray *", "x"
|
357
|
+
method.add_parameter "char*", "name"
|
358
|
+
end
|
359
|
+
|
360
|
+
klass.add_method "intVarArray", "Gecode::MIntVarArray *" do |method|
|
361
|
+
method.add_parameter "char *", "name"
|
362
|
+
end
|
363
|
+
|
364
|
+
klass.add_method "boolVarArray", "Gecode::MBoolVarArray *" do |method|
|
365
|
+
method.add_parameter "char *", "name"
|
366
|
+
end
|
367
|
+
|
368
|
+
klass.add_method "setVarArray", "Gecode::MSetVarArray *" do |method|
|
369
|
+
method.add_parameter "char *", "name"
|
370
|
+
end
|
371
|
+
|
372
|
+
klass.add_method "clone", "Gecode::MSpace *" do |method|
|
373
|
+
method.add_parameter "bool", "shared"
|
374
|
+
end
|
375
|
+
|
376
|
+
klass.add_method "status", "int"
|
377
|
+
|
378
|
+
klass.add_method "propagators", "int"
|
379
|
+
klass.add_method "branchings", "int"
|
380
|
+
klass.add_method "failed", "bool"
|
381
|
+
klass.add_method "cached", "int"
|
382
|
+
|
383
|
+
klass.add_method "mdescription", "Gecode::MBranchingDesc *", "description"
|
384
|
+
|
385
|
+
klass.add_method "commit" do |method|
|
386
|
+
method.add_parameter "Gecode::MBranchingDesc", "desc" do |param|
|
387
|
+
param.custom_conversion = "ruby2Gecode_MBranchingDescPtr(desc, 1)->ptr()"
|
388
|
+
end
|
389
|
+
method.add_parameter "int", "a"
|
390
|
+
end
|
391
|
+
end
|
392
|
+
|
393
|
+
ns.add_namespace "Limits" do |limitsns|
|
394
|
+
limitsns.add_namespace "Int" do |intns|
|
395
|
+
intns.add_constant "INT_MAX", "Gecode::Limits::Int::int_max"
|
396
|
+
intns.add_constant "INT_MIN", "Gecode::Limits::Int::int_min"
|
397
|
+
intns.add_constant "DOUBLE_MAX", "Gecode::Limits::Int::double_max"
|
398
|
+
intns.add_constant "DOUBLE_MIN", "Gecode::Limits::Int::double_min"
|
399
|
+
end
|
400
|
+
limitsns.add_namespace "Set" do |setns|
|
401
|
+
setns.add_constant "INT_MAX", "Gecode::Limits::Set::int_max"
|
402
|
+
setns.add_constant "INT_MIN", "Gecode::Limits::Set::int_min"
|
403
|
+
setns.add_constant "CARD_MAX", "Gecode::Limits::Set::card_max"
|
404
|
+
end
|
405
|
+
end
|
406
|
+
|
407
|
+
ns.add_cxx_class "IntSet" do |klass|
|
408
|
+
klass.add_constructor do |method|
|
409
|
+
method.add_parameter "int", "min"
|
410
|
+
method.add_parameter "int", "max"
|
411
|
+
end
|
412
|
+
|
413
|
+
klass.add_constructor do |method|
|
414
|
+
method.add_parameter "int []", "r"
|
415
|
+
method.add_parameter "int", "n"
|
416
|
+
end
|
417
|
+
|
418
|
+
klass.add_method "size", "int"
|
419
|
+
|
420
|
+
klass.add_method "width", "unsigned int" do |method|
|
421
|
+
method.add_parameter "int", "i"
|
422
|
+
end
|
423
|
+
|
424
|
+
klass.add_method "max", "int" do |method|
|
425
|
+
method.add_parameter "int", "i"
|
426
|
+
end
|
427
|
+
|
428
|
+
klass.add_method "min", "int" do |method|
|
429
|
+
method.add_parameter "int", "i"
|
430
|
+
end
|
431
|
+
|
432
|
+
klass.add_constant "Empty", "(Gecode::IntSet *)&Gecode::IntSet::empty"
|
433
|
+
end
|
434
|
+
|
435
|
+
ns.add_cxx_class "IntVar" do |klass|
|
436
|
+
klass.add_constructor do |method|
|
437
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
438
|
+
method.add_parameter "int", "min"
|
439
|
+
method.add_parameter "int", "max"
|
440
|
+
end
|
441
|
+
|
442
|
+
klass.add_constructor do |method|
|
443
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
444
|
+
method.add_parameter "Gecode::IntSet", "s"
|
445
|
+
end
|
446
|
+
|
447
|
+
klass.add_method "max", "int"
|
448
|
+
|
449
|
+
klass.add_method "min", "int"
|
450
|
+
klass.add_method "med", "int"
|
451
|
+
klass.add_method "val", "int"
|
452
|
+
klass.add_method "size", "unsigned int"
|
453
|
+
klass.add_method "width", "unsigned int"
|
454
|
+
klass.add_method "degree", "unsigned int"
|
455
|
+
|
456
|
+
klass.add_method "range", "bool"
|
457
|
+
klass.add_method "assigned", "bool"
|
458
|
+
klass.add_method "in", "bool" do |method|
|
459
|
+
method.add_parameter "int", "n"
|
460
|
+
end
|
461
|
+
|
462
|
+
klass.add_method "update" do |method|
|
463
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
464
|
+
method.add_parameter "bool", "share"
|
465
|
+
method.add_parameter "Gecode::IntVar", "x"
|
466
|
+
end
|
467
|
+
|
468
|
+
klass.add_operator "+", "Gecode::MiniModel::LinExpr" do |operator|
|
469
|
+
operator.add_parameter("int", "i")
|
470
|
+
end
|
471
|
+
|
472
|
+
klass.add_operator "-", "Gecode::MiniModel::LinExpr" do |operator|
|
473
|
+
operator.add_parameter("int", "i")
|
474
|
+
end
|
475
|
+
|
476
|
+
klass.add_operator "*", "Gecode::MiniModel::LinExpr" do |operator|
|
477
|
+
operator.add_parameter("int", "i")
|
478
|
+
end
|
479
|
+
|
480
|
+
klass.add_operator "!=", "Gecode::MiniModel::LinRel", "different" do |operator|
|
481
|
+
operator.add_parameter("Gecode::IntVar", "other")
|
482
|
+
end
|
483
|
+
|
484
|
+
klass.add_operator "==", "Gecode::MiniModel::LinRel", "equal" do |operator|
|
485
|
+
operator.add_parameter("Gecode::IntVar", "other")
|
486
|
+
end
|
487
|
+
|
488
|
+
end
|
489
|
+
|
490
|
+
ns.add_cxx_class "BoolVar" do |klass|
|
491
|
+
klass.add_constructor
|
492
|
+
klass.add_constructor do |method|
|
493
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
494
|
+
method.add_parameter "int", "min"
|
495
|
+
method.add_parameter "int", "max"
|
496
|
+
end
|
497
|
+
klass.add_constructor do |method|
|
498
|
+
method.add_parameter "Gecode::IntVar", "x"
|
499
|
+
end
|
500
|
+
|
501
|
+
klass.add_method "max", "int"
|
502
|
+
|
503
|
+
klass.add_method "min", "int"
|
504
|
+
klass.add_method "med", "int"
|
505
|
+
klass.add_method "val", "int"
|
506
|
+
klass.add_method "size", "unsigned int"
|
507
|
+
klass.add_method "width", "unsigned int"
|
508
|
+
klass.add_method "degree", "unsigned int"
|
509
|
+
|
510
|
+
klass.add_method "range", "bool"
|
511
|
+
klass.add_method "assigned", "bool"
|
512
|
+
klass.add_method "in", "bool" do |method|
|
513
|
+
method.add_parameter "int", "n"
|
514
|
+
end
|
515
|
+
|
516
|
+
klass.add_method "update", "void" do |method|
|
517
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
518
|
+
method.add_parameter "bool", "share"
|
519
|
+
method.add_parameter "Gecode::BoolVar", "x"
|
520
|
+
end
|
521
|
+
|
522
|
+
klass.add_operator "+", "Gecode::MiniModel::LinExpr" do |operator|
|
523
|
+
operator.add_parameter("int", "i")
|
524
|
+
end
|
525
|
+
|
526
|
+
klass.add_operator "-", "Gecode::MiniModel::LinExpr" do |operator|
|
527
|
+
operator.add_parameter("int", "i")
|
528
|
+
end
|
529
|
+
|
530
|
+
klass.add_operator "*", "Gecode::MiniModel::LinExpr" do |operator|
|
531
|
+
operator.add_parameter("int", "i")
|
532
|
+
end
|
533
|
+
|
534
|
+
klass.add_operator "!=", "Gecode::MiniModel::LinRel", "different" do |operator|
|
535
|
+
operator.add_parameter("Gecode::IntVar", "other")
|
536
|
+
end
|
537
|
+
|
538
|
+
klass.add_operator "==", "Gecode::MiniModel::LinRel", "equal" do |operator|
|
539
|
+
operator.add_parameter("Gecode::IntVar", "other")
|
540
|
+
end
|
541
|
+
end
|
542
|
+
|
543
|
+
ns.add_cxx_class "SetVar" do |klass|
|
544
|
+
klass.add_constructor
|
545
|
+
klass.add_constructor do |method|
|
546
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
547
|
+
end
|
548
|
+
klass.add_constructor do |method|
|
549
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
550
|
+
method.add_parameter "int", "glbMin"
|
551
|
+
method.add_parameter "int", "glbMax"
|
552
|
+
method.add_parameter "int", "lubMin"
|
553
|
+
method.add_parameter "int", "lubMax"
|
554
|
+
method.add_parameter "int", "cardMin"
|
555
|
+
method.add_parameter "int", "cardMax"
|
556
|
+
end
|
557
|
+
|
558
|
+
klass.add_constructor do |method|
|
559
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
560
|
+
method.add_parameter "Gecode::IntSet", "glbD"
|
561
|
+
method.add_parameter "int", "lubMin"
|
562
|
+
method.add_parameter "int", "lubMax"
|
563
|
+
method.add_parameter "int", "cardMin", true
|
564
|
+
method.add_parameter "int", "cardMax", true
|
565
|
+
end
|
566
|
+
|
567
|
+
klass.add_constructor do |method|
|
568
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
569
|
+
method.add_parameter "int", "glbMin"
|
570
|
+
method.add_parameter "int", "glbMax"
|
571
|
+
method.add_parameter "Gecode::IntSet", "lubD"
|
572
|
+
method.add_parameter "int", "cardMin", true
|
573
|
+
method.add_parameter "int", "cardMax", true
|
574
|
+
end
|
575
|
+
|
576
|
+
klass.add_constructor do |method|
|
577
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
578
|
+
method.add_parameter "Gecode::IntSet", "glbD"
|
579
|
+
method.add_parameter "Gecode::IntSet", "lubD"
|
580
|
+
method.add_parameter "int", "cardMin", true
|
581
|
+
method.add_parameter "int", "cardMax", true
|
582
|
+
end
|
583
|
+
|
584
|
+
klass.add_method "glbSize", "int"
|
585
|
+
klass.add_method "lubSize", "int"
|
586
|
+
klass.add_method "unknownSize", "int"
|
587
|
+
klass.add_method "cardMin", "int"
|
588
|
+
klass.add_method "cardMax", "int"
|
589
|
+
klass.add_method "lubMin", "int"
|
590
|
+
klass.add_method "lubMax", "int"
|
591
|
+
klass.add_method "glbMin", "int"
|
592
|
+
klass.add_method "glbMax", "int"
|
593
|
+
klass.add_method "glbSize", "int"
|
594
|
+
klass.add_method "contains", "bool" do |method|
|
595
|
+
method.add_parameter "int", "i"
|
596
|
+
end
|
597
|
+
|
598
|
+
klass.add_method "notContains", "bool" do |method|
|
599
|
+
method.add_parameter "int", "i"
|
600
|
+
end
|
601
|
+
|
602
|
+
klass.add_method "assigned", "bool"
|
603
|
+
|
604
|
+
klass.add_method "update" do |method|
|
605
|
+
method.add_parameter "Gecode::MSpace *", "home"
|
606
|
+
method.add_parameter "bool", "shared"
|
607
|
+
method.add_parameter "Gecode::SetVar", "x"
|
608
|
+
end
|
609
|
+
end
|
610
|
+
|
611
|
+
ns.add_cxx_class "MDFS" do |klass|
|
612
|
+
klass.bindname = "DFS"
|
613
|
+
klass.add_constructor do |method|
|
614
|
+
method.add_parameter "Gecode::MSpace *", "s"
|
615
|
+
method.add_parameter "int", "c_d"
|
616
|
+
method.add_parameter "int", "a_d"
|
617
|
+
method.add_parameter "Gecode::Search::MStop *", "st"
|
618
|
+
end
|
619
|
+
|
620
|
+
klass.add_method "next", "Gecode::MSpace *"
|
621
|
+
klass.add_method "statistics", "Gecode::Search::Statistics"
|
622
|
+
end
|
623
|
+
|
624
|
+
ns.add_cxx_class "MBAB" do |klass|
|
625
|
+
klass.bindname = "BAB"
|
626
|
+
klass.add_constructor do |method|
|
627
|
+
method.add_parameter "Gecode::MSpace *", "s"
|
628
|
+
method.add_parameter "int", "c_d"
|
629
|
+
method.add_parameter "int", "a_d"
|
630
|
+
method.add_parameter "Gecode::Search::MStop *", "st"
|
631
|
+
end
|
632
|
+
|
633
|
+
klass.add_method "next", "Gecode::MSpace *"
|
634
|
+
klass.add_method "statistics", "Gecode::Search::Statistics"
|
635
|
+
end
|
636
|
+
|
637
|
+
# SEARCH NAMESPACE
|
638
|
+
|
639
|
+
ns.add_namespace "Search" do |searchns|
|
640
|
+
searchns.add_cxx_class "MStop" do |klass|
|
641
|
+
klass.bindname = "Stop"
|
642
|
+
klass.add_constructor
|
643
|
+
end
|
644
|
+
|
645
|
+
searchns.add_cxx_class "Statistics" do |klass|
|
646
|
+
klass.add_constructor
|
647
|
+
klass.add_attribute "memory", "int"
|
648
|
+
klass.add_attribute "propagate", "int"
|
649
|
+
klass.add_attribute "fail", "int"
|
650
|
+
klass.add_attribute "clone", "int"
|
651
|
+
klass.add_attribute "commit", "int"
|
652
|
+
end
|
653
|
+
|
654
|
+
searchns.add_namespace "Config" do |intns|
|
655
|
+
intns.add_constant "ADAPTIVE_DISTANCE", "Gecode::Search::Config::a_d"
|
656
|
+
intns.add_constant "MINIMAL_DISTANCE", "Gecode::Search::Config::c_d"
|
657
|
+
end
|
658
|
+
end
|
659
|
+
|
660
|
+
# MINIMODEL NAMESPACE
|
661
|
+
|
662
|
+
ns.add_namespace "MiniModel" do |minimodelns|
|
663
|
+
minimodelns.add_cxx_class "LinExpr" do |klass|
|
664
|
+
klass.add_constructor
|
665
|
+
|
666
|
+
klass.add_method "post" do |method|
|
667
|
+
method.add_parameter "Gecode::MSpace *", "home"
|
668
|
+
method.add_parameter "Gecode::IntRelType", "irt"
|
669
|
+
method.add_parameter "Gecode::IntConLevel", "icl"
|
670
|
+
end
|
671
|
+
|
672
|
+
klass.add_method "post" do |method|
|
673
|
+
method.add_parameter "Gecode::MSpace *", "home"
|
674
|
+
method.add_parameter "Gecode::IntRelType", "irt"
|
675
|
+
method.add_parameter "Gecode::BoolVar", "b"
|
676
|
+
end
|
677
|
+
|
678
|
+
klass.add_operator "+", "Gecode::MiniModel::LinExpr" do |operator|
|
679
|
+
operator.add_parameter("Gecode::MiniModel::LinExpr", "exp")
|
680
|
+
end
|
681
|
+
|
682
|
+
klass.add_operator "+", "Gecode::MiniModel::LinExpr" do |operator|
|
683
|
+
operator.add_parameter("Gecode::IntVar", "exp")
|
684
|
+
end
|
685
|
+
|
686
|
+
klass.add_operator "+", "Gecode::MiniModel::LinExpr" do |operator|
|
687
|
+
operator.add_parameter("int", "c")
|
688
|
+
end
|
689
|
+
|
690
|
+
klass.add_operator "-", "Gecode::MiniModel::LinExpr" do |operator|
|
691
|
+
operator.add_parameter("Gecode::MiniModel::LinExpr", "exp")
|
692
|
+
end
|
693
|
+
|
694
|
+
klass.add_operator "-", "Gecode::MiniModel::LinExpr" do |operator|
|
695
|
+
operator.add_parameter("Gecode::IntVar", "exp")
|
696
|
+
end
|
697
|
+
|
698
|
+
klass.add_operator "-", "Gecode::MiniModel::LinExpr" do |operator|
|
699
|
+
operator.add_parameter("int", "c")
|
700
|
+
end
|
701
|
+
|
702
|
+
klass.add_operator "*", "Gecode::MiniModel::LinExpr" do |operator|
|
703
|
+
operator.add_parameter("int", "c")
|
704
|
+
end
|
705
|
+
|
706
|
+
klass.add_operator "==", "Gecode::MiniModel::LinRel", "equal" do |operator|
|
707
|
+
operator.add_parameter "Gecode::MiniModel::LinExpr", "other"
|
708
|
+
end
|
709
|
+
|
710
|
+
klass.add_operator "!=", "Gecode::MiniModel::LinRel", "different" do |operator|
|
711
|
+
operator.add_parameter "Gecode::MiniModel::LinExpr", "other"
|
712
|
+
end
|
713
|
+
end
|
714
|
+
|
715
|
+
minimodelns.add_cxx_class "BoolExpr" do |klass| # TODO
|
716
|
+
klass.add_enum "NodeType" do |enum|
|
717
|
+
enum.add_value "BT_VAR"
|
718
|
+
enum.add_value "BT_NOT"
|
719
|
+
enum.add_value "BT_AND"
|
720
|
+
enum.add_value "BT_OR"
|
721
|
+
enum.add_value "BT_IMP"
|
722
|
+
enum.add_value "BT_XOR"
|
723
|
+
enum.add_value "BT_EQV"
|
724
|
+
enum.add_value "BT_RLIN"
|
725
|
+
end
|
726
|
+
klass.add_constructor do |method|
|
727
|
+
method.add_parameter "Gecode::MiniModel::BoolExpr", "e"
|
728
|
+
end
|
729
|
+
|
730
|
+
klass.add_constructor do |method|
|
731
|
+
method.add_parameter "Gecode::BoolVar", "e"
|
732
|
+
end
|
733
|
+
|
734
|
+
klass.add_constructor do |method|
|
735
|
+
method.add_parameter "Gecode::MiniModel::BoolExpr", "l"
|
736
|
+
method.add_parameter "Gecode::MiniModel::BoolExpr::NodeType", "t"
|
737
|
+
method.add_parameter "Gecode::MiniModel::BoolExpr", "r"
|
738
|
+
end
|
739
|
+
|
740
|
+
klass.add_constructor do |method|
|
741
|
+
method.add_parameter "Gecode::MiniModel::BoolExpr", "l"
|
742
|
+
method.add_parameter "Gecode::MiniModel::BoolExpr::NodeType", "t"
|
743
|
+
end
|
744
|
+
|
745
|
+
klass.add_constructor do |method|
|
746
|
+
method.add_parameter "Gecode::MiniModel::LinRel", "e"
|
747
|
+
end
|
748
|
+
|
749
|
+
klass.add_method "post" do |method|
|
750
|
+
method.add_parameter "Gecode::MSpace *", "home"
|
751
|
+
end
|
752
|
+
|
753
|
+
klass.add_method "post" do |method|
|
754
|
+
method.add_parameter "Gecode::MSpace *", "home"
|
755
|
+
method.add_parameter "bool", "t"
|
756
|
+
end
|
757
|
+
end
|
758
|
+
|
759
|
+
minimodelns.add_cxx_class "BoolRel" do |klass|
|
760
|
+
klass.add_constructor do |method|
|
761
|
+
method.add_parameter "Gecode::MiniModel::BoolExpr", "e"
|
762
|
+
method.add_parameter "bool", "t"
|
763
|
+
end
|
764
|
+
end
|
765
|
+
|
766
|
+
minimodelns.add_cxx_class "LinRel" do |klass|
|
767
|
+
klass.add_constructor
|
768
|
+
|
769
|
+
klass.add_constructor do |method|
|
770
|
+
method.add_parameter "Gecode::MiniModel::LinExpr", "l"
|
771
|
+
method.add_parameter "Gecode::IntRelType", "irt"
|
772
|
+
method.add_parameter "Gecode::MiniModel::LinExpr", "r"
|
773
|
+
end
|
774
|
+
|
775
|
+
klass.add_constructor do |method|
|
776
|
+
method.add_parameter "Gecode::MiniModel::LinExpr", "l"
|
777
|
+
method.add_parameter "Gecode::IntRelType", "irt"
|
778
|
+
method.add_parameter "int", "r"
|
779
|
+
end
|
780
|
+
|
781
|
+
klass.add_constructor do |method|
|
782
|
+
method.add_parameter "int", "l"
|
783
|
+
method.add_parameter "Gecode::IntRelType", "irt"
|
784
|
+
method.add_parameter "Gecode::MiniModel::LinExpr", "r"
|
785
|
+
end
|
786
|
+
|
787
|
+
klass.add_method "post", "void" do |method|
|
788
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
789
|
+
method.add_parameter "bool", "t"
|
790
|
+
method.add_parameter "Gecode::IntConLevel", "icl"
|
791
|
+
end
|
792
|
+
klass.add_method "post", "void" do |method|
|
793
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
794
|
+
method.add_parameter "Gecode::BoolVar", "b"
|
795
|
+
end
|
796
|
+
|
797
|
+
# klass.add_operator "==", "Gecode::MiniModel::LinRel", "equal" do |operator|
|
798
|
+
# operator.add_parameter "int", "i"
|
799
|
+
# end
|
800
|
+
end
|
801
|
+
end
|
802
|
+
|
803
|
+
|
804
|
+
|
805
|
+
# INT POSTING FUNCTIONS
|
806
|
+
|
807
|
+
ns.add_function "abs" do |func|
|
808
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
809
|
+
func.add_parameter "Gecode::IntVar", "x0"
|
810
|
+
func.add_parameter "Gecode::IntVar", "x1"
|
811
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
812
|
+
end
|
813
|
+
|
814
|
+
ns.add_function "max" do |func|
|
815
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
816
|
+
func.add_parameter "Gecode::IntVar", "x0"
|
817
|
+
func.add_parameter "Gecode::IntVar", "x1"
|
818
|
+
func.add_parameter "Gecode::IntVar", "x2"
|
819
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
820
|
+
end
|
821
|
+
|
822
|
+
ns.add_function "max" do |func|
|
823
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
824
|
+
func.add_parameter "Gecode::MIntVarArray", "arr" do |param|
|
825
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 1)->ptr()"
|
826
|
+
end
|
827
|
+
func.add_parameter "Gecode::IntVar", "y"
|
828
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
829
|
+
end
|
830
|
+
|
831
|
+
ns.add_function "min" do |func|
|
832
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
833
|
+
func.add_parameter "Gecode::IntVar", "x0"
|
834
|
+
func.add_parameter "Gecode::IntVar", "x1"
|
835
|
+
func.add_parameter "Gecode::IntVar", "x2"
|
836
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
837
|
+
end
|
838
|
+
|
839
|
+
ns.add_function "min" do |func|
|
840
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
841
|
+
func.add_parameter "Gecode::MIntVarArray", "x" do |param|
|
842
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 1)->ptr()"
|
843
|
+
end
|
844
|
+
func.add_parameter "Gecode::IntVar", "y"
|
845
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
846
|
+
end
|
847
|
+
|
848
|
+
ns.add_function "mult" do |func|
|
849
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
850
|
+
func.add_parameter "Gecode::IntVar", "x0"
|
851
|
+
func.add_parameter "Gecode::IntVar", "x1"
|
852
|
+
func.add_parameter "Gecode::IntVar", "x2"
|
853
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
854
|
+
end
|
855
|
+
|
856
|
+
# Bool post functions
|
857
|
+
|
858
|
+
ns.add_function "bool_not" do |func|
|
859
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
860
|
+
func.add_parameter "Gecode::BoolVar", "b0"
|
861
|
+
func.add_parameter "Gecode::BoolVar", "b1"
|
862
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
863
|
+
end
|
864
|
+
|
865
|
+
ns.add_function "bool_eq" do |func|
|
866
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
867
|
+
func.add_parameter "Gecode::BoolVar", "b0"
|
868
|
+
func.add_parameter "Gecode::BoolVar", "b1"
|
869
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
870
|
+
end
|
871
|
+
|
872
|
+
ns.add_function "bool_and" do |func|
|
873
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
874
|
+
func.add_parameter "Gecode::BoolVar", "b0"
|
875
|
+
func.add_parameter "Gecode::BoolVar", "b1"
|
876
|
+
func.add_parameter "Gecode::BoolVar", "b2"
|
877
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
878
|
+
end
|
879
|
+
|
880
|
+
ns.add_function "bool_and" do |func|
|
881
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
882
|
+
func.add_parameter "Gecode::BoolVar", "b0"
|
883
|
+
func.add_parameter "Gecode::BoolVar", "b1"
|
884
|
+
func.add_parameter "bool", "b2"
|
885
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
886
|
+
end
|
887
|
+
|
888
|
+
ns.add_function "bool_and" do |func|
|
889
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
890
|
+
func.add_parameter "Gecode::MBoolVarArray", "b0" do |param|
|
891
|
+
param.custom_conversion = "*reinterpret_cast<Gecode::BoolVarArgs *>(ruby2Gecode_MBoolVarArrayPtr(argv[1], 1)->ptr())"
|
892
|
+
end
|
893
|
+
func.add_parameter "Gecode::BoolVar", "c"
|
894
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
895
|
+
end
|
896
|
+
|
897
|
+
ns.add_function "bool_and" do |func|
|
898
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
899
|
+
func.add_parameter "Gecode::MBoolVarArray", "b0" do |param|
|
900
|
+
param.custom_conversion = "*reinterpret_cast<Gecode::BoolVarArgs *>(ruby2Gecode_MBoolVarArrayPtr(argv[1], 1)->ptr())"
|
901
|
+
end
|
902
|
+
func.add_parameter "bool", "c"
|
903
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
904
|
+
end
|
905
|
+
|
906
|
+
ns.add_function "bool_or" do |func|
|
907
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
908
|
+
func.add_parameter "Gecode::BoolVar", "b0"
|
909
|
+
func.add_parameter "Gecode::BoolVar", "b1"
|
910
|
+
func.add_parameter "Gecode::BoolVar", "b2"
|
911
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
912
|
+
end
|
913
|
+
|
914
|
+
ns.add_function "bool_or" do |func|
|
915
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
916
|
+
func.add_parameter "Gecode::BoolVar", "b0"
|
917
|
+
func.add_parameter "Gecode::BoolVar", "b1"
|
918
|
+
func.add_parameter "bool", "b2"
|
919
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
920
|
+
end
|
921
|
+
|
922
|
+
ns.add_function "bool_or" do |func|
|
923
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
924
|
+
func.add_parameter "Gecode::MBoolVarArray", "b" do |param|
|
925
|
+
param.custom_conversion = "*reinterpret_cast<Gecode::BoolVarArgs *>(ruby2Gecode_MBoolVarArrayPtr(argv[1], 2)->ptr())"
|
926
|
+
end
|
927
|
+
func.add_parameter "Gecode::BoolVar", "c"
|
928
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
929
|
+
end
|
930
|
+
|
931
|
+
ns.add_function "bool_or" do |func|
|
932
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
933
|
+
func.add_parameter "Gecode::MBoolVarArray", "b" do |param|
|
934
|
+
param.custom_conversion = "*reinterpret_cast<Gecode::BoolVarArgs *>(ruby2Gecode_MBoolVarArrayPtr(argv[1], 2)->ptr())"
|
935
|
+
end
|
936
|
+
func.add_parameter "bool", "c"
|
937
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
938
|
+
end
|
939
|
+
|
940
|
+
ns.add_function "bool_imp" do |func|
|
941
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
942
|
+
func.add_parameter "Gecode::BoolVar", "b0"
|
943
|
+
func.add_parameter "Gecode::BoolVar", "b1"
|
944
|
+
func.add_parameter "Gecode::BoolVar", "b2"
|
945
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
946
|
+
end
|
947
|
+
|
948
|
+
ns.add_function "bool_imp" do |func|
|
949
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
950
|
+
func.add_parameter "Gecode::BoolVar", "b0"
|
951
|
+
func.add_parameter "Gecode::BoolVar", "b1"
|
952
|
+
func.add_parameter "bool", "b2"
|
953
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
954
|
+
end
|
955
|
+
|
956
|
+
ns.add_function "bool_eqv" do |func|
|
957
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
958
|
+
func.add_parameter "Gecode::BoolVar", "b0"
|
959
|
+
func.add_parameter "Gecode::BoolVar", "b1"
|
960
|
+
func.add_parameter "Gecode::BoolVar", "b2"
|
961
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
962
|
+
end
|
963
|
+
|
964
|
+
ns.add_function "bool_eqv" do |func|
|
965
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
966
|
+
func.add_parameter "Gecode::BoolVar", "b0"
|
967
|
+
func.add_parameter "Gecode::BoolVar", "b1"
|
968
|
+
func.add_parameter "bool", "b2"
|
969
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
970
|
+
end
|
971
|
+
|
972
|
+
ns.add_function "bool_xor" do |func|
|
973
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
974
|
+
func.add_parameter "Gecode::BoolVar", "b0"
|
975
|
+
func.add_parameter "Gecode::BoolVar", "b1"
|
976
|
+
func.add_parameter "Gecode::BoolVar", "b2"
|
977
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
978
|
+
end
|
979
|
+
|
980
|
+
ns.add_function "bool_xor" do |func|
|
981
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
982
|
+
func.add_parameter "Gecode::BoolVar", "b0"
|
983
|
+
func.add_parameter "Gecode::BoolVar", "b1"
|
984
|
+
func.add_parameter "bool", "b2"
|
985
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
986
|
+
end
|
987
|
+
|
988
|
+
#
|
989
|
+
|
990
|
+
ns.add_function "branch" do |func|
|
991
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
992
|
+
func.add_parameter "Gecode::MIntVarArray *", "iva" do |param|
|
993
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
994
|
+
end
|
995
|
+
func.add_parameter "Gecode::BvarSel", "vars"
|
996
|
+
func.add_parameter "Gecode::BvalSel", "vals"
|
997
|
+
end
|
998
|
+
|
999
|
+
ns.add_function "branch" do |func|
|
1000
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
1001
|
+
func.add_parameter "Gecode::MBoolVarArray *", "iva" do |param|
|
1002
|
+
param.custom_conversion = "*ruby2Gecode_MBoolVarArrayPtr(argv[1], 2)->ptr()"
|
1003
|
+
end
|
1004
|
+
func.add_parameter "Gecode::BvarSel", "vars"
|
1005
|
+
func.add_parameter "Gecode::BvalSel", "vals"
|
1006
|
+
end
|
1007
|
+
|
1008
|
+
ns.add_function "branch" do |func|
|
1009
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
1010
|
+
func.add_parameter "Gecode::MSetVarArray *", "sva" do |param|
|
1011
|
+
param.custom_conversion = "*ruby2Gecode_MSetVarArrayPtr(argv[1], 2)->ptr()"
|
1012
|
+
end
|
1013
|
+
func.add_parameter "Gecode::SetBvarSel", "vars"
|
1014
|
+
func.add_parameter "Gecode::SetBvalSel", "vals"
|
1015
|
+
end
|
1016
|
+
|
1017
|
+
ns.add_function "assign" do |func|
|
1018
|
+
func.add_parameter "Gecode::MSpace *", "home"
|
1019
|
+
func.add_parameter "Gecode::MIntVarArray *", "iva" do |param|
|
1020
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(iva, 1)->ptr()"
|
1021
|
+
end
|
1022
|
+
func.add_parameter "Gecode::AvalSel", "vals"
|
1023
|
+
end
|
1024
|
+
|
1025
|
+
ns.add_function "channel" do |func|
|
1026
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1027
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1028
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1029
|
+
end
|
1030
|
+
func.add_parameter "Gecode::MIntVarArray *", "y" do |param|
|
1031
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1032
|
+
end
|
1033
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
ns.add_function "count" do |func|
|
1037
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1038
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1039
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1040
|
+
end
|
1041
|
+
|
1042
|
+
func.add_parameter "int", "y"
|
1043
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1044
|
+
func.add_parameter "int", "m"
|
1045
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1046
|
+
end
|
1047
|
+
|
1048
|
+
ns.add_function "count" do |func|
|
1049
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1050
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1051
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1052
|
+
end
|
1053
|
+
|
1054
|
+
func.add_parameter "Gecode::IntVar", "y"
|
1055
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1056
|
+
func.add_parameter "int", "m"
|
1057
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1058
|
+
end
|
1059
|
+
|
1060
|
+
ns.add_function "count" do |func|
|
1061
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1062
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1063
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1064
|
+
end
|
1065
|
+
|
1066
|
+
func.add_parameter "int", "y"
|
1067
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1068
|
+
func.add_parameter "Gecode::IntVar", "m"
|
1069
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1070
|
+
end
|
1071
|
+
|
1072
|
+
ns.add_function "count" do |func|
|
1073
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1074
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1075
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1076
|
+
end
|
1077
|
+
|
1078
|
+
func.add_parameter "Gecode::IntVar", "y"
|
1079
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1080
|
+
func.add_parameter "Gecode::IntVar", "m"
|
1081
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1082
|
+
end
|
1083
|
+
|
1084
|
+
|
1085
|
+
ns.add_function "cumulatives", "void" do |method|
|
1086
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
1087
|
+
method.add_parameter "Gecode::IntArgs&", "machine" do |param|
|
1088
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1089
|
+
end
|
1090
|
+
method.add_parameter "Gecode::MIntVarArray", "start" do |param|
|
1091
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1092
|
+
end
|
1093
|
+
method.add_parameter "Gecode::MIntVarArray", "duration" do |param|
|
1094
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[3], 4)->ptr()"
|
1095
|
+
end
|
1096
|
+
method.add_parameter "Gecode::MIntVarArray", "end" do |param|
|
1097
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[4], 5)->ptr()"
|
1098
|
+
end
|
1099
|
+
method.add_parameter "Gecode::MIntVarArray", "height" do |param|
|
1100
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[5], 6)->ptr()"
|
1101
|
+
end
|
1102
|
+
method.add_parameter "Gecode::IntArgs&", "limit"
|
1103
|
+
method.add_parameter "bool", "at_most"
|
1104
|
+
method.add_parameter "Gecode::IntConLevel", "icl", true
|
1105
|
+
end
|
1106
|
+
|
1107
|
+
ns.add_function "cumulatives", "void" do |method|
|
1108
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
1109
|
+
method.add_parameter "Gecode::IntArgs&", "machine" do |param|
|
1110
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1111
|
+
end
|
1112
|
+
method.add_parameter "Gecode::MIntVarArray", "start" do |param|
|
1113
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1114
|
+
end
|
1115
|
+
method.add_parameter "Gecode::IntArgs&", "duration"
|
1116
|
+
method.add_parameter "Gecode::MIntVarArray", "end" do |param|
|
1117
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[4], 5)->ptr()"
|
1118
|
+
end
|
1119
|
+
method.add_parameter "Gecode::MIntVarArray", "height" do |param|
|
1120
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[5], 6)->ptr()"
|
1121
|
+
end
|
1122
|
+
method.add_parameter "Gecode::IntArgs&", "limit"
|
1123
|
+
method.add_parameter "bool", "at_most"
|
1124
|
+
method.add_parameter "Gecode::IntConLevel", "icl", true
|
1125
|
+
end
|
1126
|
+
|
1127
|
+
ns.add_function "cumulatives", "void" do |method|
|
1128
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
1129
|
+
method.add_parameter "Gecode::IntArgs&", "machine"
|
1130
|
+
method.add_parameter "Gecode::MIntVarArray", "start" do |param|
|
1131
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1132
|
+
end
|
1133
|
+
method.add_parameter "Gecode::IntArgs&", "duration"
|
1134
|
+
method.add_parameter "Gecode::MIntVarArray", "end" do |param|
|
1135
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[4], 5)->ptr()"
|
1136
|
+
end
|
1137
|
+
method.add_parameter "Gecode::MIntVarArray", "height" do |param|
|
1138
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[5], 6)->ptr()"
|
1139
|
+
end
|
1140
|
+
method.add_parameter "Gecode::IntArgs&", "limit"
|
1141
|
+
method.add_parameter "bool", "at_most"
|
1142
|
+
method.add_parameter "Gecode::IntConLevel", "icl", true
|
1143
|
+
end
|
1144
|
+
|
1145
|
+
ns.add_function "cumulatives", "void" do |method|
|
1146
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
1147
|
+
method.add_parameter "Gecode::IntArgs&", "machine" do |param|
|
1148
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1149
|
+
end
|
1150
|
+
method.add_parameter "Gecode::MIntVarArray", "start" do |param|
|
1151
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1152
|
+
end
|
1153
|
+
method.add_parameter "Gecode::MIntVarArray", "duration" do |param|
|
1154
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[3], 4)->ptr()"
|
1155
|
+
end
|
1156
|
+
method.add_parameter "Gecode::MIntVarArray", "end" do |param|
|
1157
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[4], 5)->ptr()"
|
1158
|
+
end
|
1159
|
+
method.add_parameter "Gecode::IntArgs&", "height"
|
1160
|
+
method.add_parameter "Gecode::IntArgs&", "limit"
|
1161
|
+
method.add_parameter "bool", "at_most"
|
1162
|
+
method.add_parameter "Gecode::IntConLevel", "icl", true
|
1163
|
+
end
|
1164
|
+
|
1165
|
+
ns.add_function "cumulatives", "void" do |method|
|
1166
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
1167
|
+
method.add_parameter "Gecode::IntArgs&", "machine"
|
1168
|
+
method.add_parameter "Gecode::MIntVarArray", "start" do |param|
|
1169
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1170
|
+
end
|
1171
|
+
method.add_parameter "Gecode::MIntVarArray", "duration" do |param|
|
1172
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[3], 4)->ptr()"
|
1173
|
+
end
|
1174
|
+
method.add_parameter "Gecode::MIntVarArray", "end" do |param|
|
1175
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[4], 5)->ptr()"
|
1176
|
+
end
|
1177
|
+
method.add_parameter "Gecode::IntArgs&", "height"
|
1178
|
+
method.add_parameter "Gecode::IntArgs&", "limit"
|
1179
|
+
method.add_parameter "bool", "at_most"
|
1180
|
+
method.add_parameter "Gecode::IntConLevel", "icl"
|
1181
|
+
end
|
1182
|
+
|
1183
|
+
ns.add_function "cumulatives", "void" do |method|
|
1184
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
1185
|
+
method.add_parameter "Gecode::IntArgs&", "machine" do |param|
|
1186
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1187
|
+
end
|
1188
|
+
method.add_parameter "Gecode::MIntVarArray", "start" do |param|
|
1189
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1190
|
+
end
|
1191
|
+
method.add_parameter "Gecode::IntArgs&", "duration"
|
1192
|
+
method.add_parameter "Gecode::MIntVarArray", "end" do |param|
|
1193
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[4], 5)->ptr()"
|
1194
|
+
end
|
1195
|
+
method.add_parameter "Gecode::IntArgs&", "height"
|
1196
|
+
method.add_parameter "Gecode::IntArgs&", "limit"
|
1197
|
+
method.add_parameter "bool", "at_most"
|
1198
|
+
method.add_parameter "Gecode::IntConLevel", "icl"
|
1199
|
+
end
|
1200
|
+
|
1201
|
+
ns.add_function "cumulatives", "void" do |method|
|
1202
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
1203
|
+
method.add_parameter "Gecode::IntArgs&", "machine"
|
1204
|
+
method.add_parameter "Gecode::MIntVarArray", "start" do |param|
|
1205
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1206
|
+
end
|
1207
|
+
method.add_parameter "Gecode::IntArgs&", "duration"
|
1208
|
+
method.add_parameter "Gecode::MIntVarArray", "end" do |param|
|
1209
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[4], 5)->ptr()"
|
1210
|
+
end
|
1211
|
+
method.add_parameter "Gecode::IntArgs&", "height"
|
1212
|
+
method.add_parameter "Gecode::IntArgs&", "limit"
|
1213
|
+
method.add_parameter "bool", "at_most"
|
1214
|
+
method.add_parameter "Gecode::IntConLevel", "icl", true
|
1215
|
+
end
|
1216
|
+
|
1217
|
+
ns.add_function "distinct" do |func|
|
1218
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1219
|
+
func.add_parameter "Gecode::MIntVarArray *", "iva" do |param|
|
1220
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1221
|
+
end
|
1222
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1223
|
+
end
|
1224
|
+
|
1225
|
+
ns.add_function "distinct" do |func|
|
1226
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1227
|
+
func.add_parameter "Gecode::IntArgs", "x"
|
1228
|
+
func.add_parameter "Gecode::MIntVarArray *", "iva" do |param|
|
1229
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1230
|
+
end
|
1231
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1232
|
+
end
|
1233
|
+
|
1234
|
+
|
1235
|
+
ns.add_function "dom" do |func|
|
1236
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1237
|
+
func.add_parameter "Gecode::IntVar", "x"
|
1238
|
+
func.add_parameter "int", "l"
|
1239
|
+
func.add_parameter "int", "m"
|
1240
|
+
func.add_parameter "Gecode::IntConLevel", "icl"
|
1241
|
+
end
|
1242
|
+
|
1243
|
+
ns.add_function "dom" do |func|
|
1244
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1245
|
+
func.add_parameter "Gecode::MIntVarArray *", "iva" do |param|
|
1246
|
+
param.custom_conversion = "*reinterpret_cast<Gecode::IntVarArgs *>(ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr())"
|
1247
|
+
end
|
1248
|
+
func.add_parameter "int", "l"
|
1249
|
+
func.add_parameter "int", "m"
|
1250
|
+
func.add_parameter "Gecode::IntConLevel", "icl"
|
1251
|
+
end
|
1252
|
+
|
1253
|
+
ns.add_function "dom" do |func|
|
1254
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1255
|
+
func.add_parameter "Gecode::IntVar", "x"
|
1256
|
+
func.add_parameter "Gecode::IntSet", "s"
|
1257
|
+
func.add_parameter "Gecode::IntConLevel", "icl"
|
1258
|
+
end
|
1259
|
+
|
1260
|
+
ns.add_function "dom" do |func|
|
1261
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1262
|
+
func.add_parameter "Gecode::MIntVarArray *", "iva" do |param|
|
1263
|
+
param.custom_conversion = "*reinterpret_cast<Gecode::IntVarArgs *>(ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr())"
|
1264
|
+
end
|
1265
|
+
func.add_parameter "Gecode::IntSet", "s"
|
1266
|
+
func.add_parameter "Gecode::IntConLevel", "icl"
|
1267
|
+
end
|
1268
|
+
|
1269
|
+
ns.add_function "dom" do |func|
|
1270
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1271
|
+
func.add_parameter "Gecode::IntVar", "x"
|
1272
|
+
func.add_parameter "int", "l"
|
1273
|
+
func.add_parameter "int", "m"
|
1274
|
+
func.add_parameter "Gecode::BoolVar", "b"
|
1275
|
+
func.add_parameter "Gecode::IntConLevel", "icl"
|
1276
|
+
end
|
1277
|
+
|
1278
|
+
ns.add_function "dom" do |func|
|
1279
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1280
|
+
func.add_parameter "Gecode::IntVar", "x"
|
1281
|
+
func.add_parameter "Gecode::IntSet", "s"
|
1282
|
+
func.add_parameter "Gecode::BoolVar", "b"
|
1283
|
+
func.add_parameter "Gecode::IntConLevel", "icl"
|
1284
|
+
end
|
1285
|
+
|
1286
|
+
ns.add_function "element", "void" do |func|
|
1287
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1288
|
+
func.add_parameter "Gecode::IntArgs&", "x"
|
1289
|
+
func.add_parameter "Gecode::IntVar", "y0"
|
1290
|
+
func.add_parameter "Gecode::IntVar", "y1"
|
1291
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1292
|
+
end
|
1293
|
+
|
1294
|
+
ns.add_function "element", "void" do |func|
|
1295
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1296
|
+
func.add_parameter "Gecode::MIntVarArray *", "iva" do |param|
|
1297
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1298
|
+
end
|
1299
|
+
func.add_parameter "Gecode::IntVar", "y0"
|
1300
|
+
func.add_parameter "Gecode::IntVar", "y1"
|
1301
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1302
|
+
end
|
1303
|
+
|
1304
|
+
ns.add_function "gcc", "void" do |func|
|
1305
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1306
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1307
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1308
|
+
end
|
1309
|
+
func.add_parameter "Gecode::IntArgs", "c"
|
1310
|
+
func.add_parameter "int", "m"
|
1311
|
+
func.add_parameter "int", "unspec_low"
|
1312
|
+
func.add_parameter "int", "unspec_up"
|
1313
|
+
func.add_parameter "int", "min"
|
1314
|
+
func.add_parameter "int", "max"
|
1315
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1316
|
+
end
|
1317
|
+
|
1318
|
+
ns.add_function "gcc", "void" do |func|
|
1319
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1320
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1321
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1322
|
+
end
|
1323
|
+
func.add_parameter "Gecode::IntArgs", "c"
|
1324
|
+
func.add_parameter "int", "m"
|
1325
|
+
func.add_parameter "int", "unspec"
|
1326
|
+
func.add_parameter "int", "min"
|
1327
|
+
func.add_parameter "int", "max"
|
1328
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1329
|
+
end
|
1330
|
+
|
1331
|
+
ns.add_function "gcc", "void" do |func|
|
1332
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1333
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1334
|
+
param.custom_conversion = "*reinterpret_cast<Gecode::IntVarArgs *>(ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr())"
|
1335
|
+
end
|
1336
|
+
func.add_parameter "int", "lb"
|
1337
|
+
func.add_parameter "int", "ub"
|
1338
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1339
|
+
end
|
1340
|
+
|
1341
|
+
ns.add_function "gcc", "void" do |func|
|
1342
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1343
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1344
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1345
|
+
end
|
1346
|
+
func.add_parameter "int", "ub"
|
1347
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1348
|
+
end
|
1349
|
+
|
1350
|
+
ns.add_function "gcc", "void" do |func|
|
1351
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1352
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1353
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1354
|
+
end
|
1355
|
+
func.add_parameter "Gecode::MIntVarArray *", "c" do |param|
|
1356
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1357
|
+
end
|
1358
|
+
func.add_parameter "int", "min"
|
1359
|
+
func.add_parameter "int", "max"
|
1360
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1361
|
+
end
|
1362
|
+
|
1363
|
+
ns.add_function "gcc", "void" do |func|
|
1364
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1365
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1366
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1367
|
+
end
|
1368
|
+
func.add_parameter "Gecode::IntArgs", "v"
|
1369
|
+
func.add_parameter "Gecode::MIntVarArray *", "c" do |param|
|
1370
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[3], 4)->ptr()"
|
1371
|
+
end
|
1372
|
+
func.add_parameter "int", "m"
|
1373
|
+
func.add_parameter "int", "unspec"
|
1374
|
+
func.add_parameter "bool", "all"
|
1375
|
+
func.add_parameter "int", "min"
|
1376
|
+
func.add_parameter "int", "max"
|
1377
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1378
|
+
end
|
1379
|
+
|
1380
|
+
ns.add_function "linear", "void" do |func|
|
1381
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1382
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1383
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1384
|
+
end
|
1385
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1386
|
+
func.add_parameter "int", "c"
|
1387
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1388
|
+
end
|
1389
|
+
ns.add_function "linear", "void" do |func|
|
1390
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1391
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1392
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1393
|
+
end
|
1394
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1395
|
+
func.add_parameter "int", "c"
|
1396
|
+
func.add_parameter "Gecode::BoolVar", "b"
|
1397
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1398
|
+
end
|
1399
|
+
|
1400
|
+
ns.add_function "linear", "void" do |func|
|
1401
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1402
|
+
func.add_parameter "Gecode::IntArgs", "a"
|
1403
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1404
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1405
|
+
end
|
1406
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1407
|
+
func.add_parameter "int", "c"
|
1408
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1409
|
+
end
|
1410
|
+
|
1411
|
+
ns.add_function "linear", "void" do |func|
|
1412
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1413
|
+
func.add_parameter "Gecode::IntArgs", "a"
|
1414
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1415
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1416
|
+
end
|
1417
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1418
|
+
func.add_parameter "int", "c"
|
1419
|
+
func.add_parameter "Gecode::BoolVar", "b"
|
1420
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1421
|
+
end
|
1422
|
+
|
1423
|
+
ns.add_function "linear", "void" do |func|
|
1424
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1425
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1426
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1427
|
+
end
|
1428
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1429
|
+
func.add_parameter "Gecode::IntVar", "c"
|
1430
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1431
|
+
end
|
1432
|
+
|
1433
|
+
ns.add_function "linear", "void" do |func|
|
1434
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1435
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1436
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1437
|
+
end
|
1438
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1439
|
+
func.add_parameter "Gecode::IntVar", "c"
|
1440
|
+
func.add_parameter "Gecode::BoolVar", "b"
|
1441
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1442
|
+
end
|
1443
|
+
|
1444
|
+
|
1445
|
+
ns.add_function "linear", "void" do |func|
|
1446
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1447
|
+
func.add_parameter "Gecode::IntArgs", "a"
|
1448
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1449
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1450
|
+
end
|
1451
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1452
|
+
func.add_parameter "Gecode::IntVar", "y"
|
1453
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1454
|
+
end
|
1455
|
+
|
1456
|
+
ns.add_function "linear", "void" do |func|
|
1457
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1458
|
+
func.add_parameter "Gecode::IntArgs", "a"
|
1459
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1460
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1461
|
+
end
|
1462
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1463
|
+
func.add_parameter "Gecode::IntVar", "y"
|
1464
|
+
func.add_parameter "Gecode::BoolVar", "b"
|
1465
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1466
|
+
end
|
1467
|
+
|
1468
|
+
ns.add_function "linear", "void" do |func|
|
1469
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1470
|
+
func.add_parameter "Gecode::MBoolVarArray *", "x" do |param|
|
1471
|
+
param.custom_conversion = "*ruby2Gecode_MBoolVarArrayPtr(argv[1], 2)->ptr()"
|
1472
|
+
end
|
1473
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1474
|
+
func.add_parameter "int", "y"
|
1475
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1476
|
+
end
|
1477
|
+
|
1478
|
+
ns.add_function "linear", "void" do |func|
|
1479
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1480
|
+
func.add_parameter "Gecode::MBoolVarArray *", "x" do |param|
|
1481
|
+
param.custom_conversion = "*ruby2Gecode_MBoolVarArrayPtr(argv[1], 2)->ptr()"
|
1482
|
+
end
|
1483
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1484
|
+
func.add_parameter "Gecode::IntVar", "y"
|
1485
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1486
|
+
end
|
1487
|
+
|
1488
|
+
# ns.add_function "regular", "void" do |func|
|
1489
|
+
# func.add_parameter "Gecode::MSpace*", "home"
|
1490
|
+
# func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1491
|
+
# param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1492
|
+
# end
|
1493
|
+
# func.add_parameter "Gecode::DFA", "dfa" # TODO: add class DFA
|
1494
|
+
# func.add_parameter "Gecode::IntConLevel", "icl", true
|
1495
|
+
# end
|
1496
|
+
|
1497
|
+
ns.add_function "bab", "Gecode::MSpace*" do |func|
|
1498
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1499
|
+
func.add_parameter "int", "c_d"
|
1500
|
+
func.add_parameter "int", "a_d"
|
1501
|
+
func.add_parameter "Gecode::Search::MStop *", "st"
|
1502
|
+
end
|
1503
|
+
|
1504
|
+
ns.add_function "rel" do |func|
|
1505
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1506
|
+
func.add_parameter "Gecode::IntVar", "x0"
|
1507
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1508
|
+
func.add_parameter "int", "c"
|
1509
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1510
|
+
end
|
1511
|
+
|
1512
|
+
ns.add_function "rel" do |func|
|
1513
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1514
|
+
func.add_parameter "Gecode::IntVar", "x0"
|
1515
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1516
|
+
func.add_parameter "Gecode::IntVar", "x1"
|
1517
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1518
|
+
end
|
1519
|
+
|
1520
|
+
ns.add_function "rel" do |func|
|
1521
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1522
|
+
func.add_parameter "Gecode::IntVar", "x0"
|
1523
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1524
|
+
func.add_parameter "Gecode::IntVar", "x1"
|
1525
|
+
func.add_parameter "Gecode::BoolVar", "b"
|
1526
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1527
|
+
end
|
1528
|
+
|
1529
|
+
ns.add_function "rel" do |func|
|
1530
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1531
|
+
func.add_parameter "Gecode::IntVar", "x0"
|
1532
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1533
|
+
func.add_parameter "int", "c"
|
1534
|
+
func.add_parameter "Gecode::BoolVar", "b"
|
1535
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1536
|
+
end
|
1537
|
+
|
1538
|
+
ns.add_function "rel" do |func|
|
1539
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1540
|
+
func.add_parameter "Gecode::MBoolVarArray *", "x" do |param|
|
1541
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1542
|
+
end
|
1543
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1544
|
+
func.add_parameter "Gecode::MIntVarArray *", "y" do |param|
|
1545
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[3], 4)->ptr()"
|
1546
|
+
end
|
1547
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1548
|
+
end
|
1549
|
+
|
1550
|
+
ns.add_function "eq", "void" do |func|
|
1551
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1552
|
+
func.add_parameter "Gecode::IntVar", "x1"
|
1553
|
+
func.add_parameter "Gecode::IntVar", "x2"
|
1554
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1555
|
+
end
|
1556
|
+
|
1557
|
+
ns.add_function "eq", "void" do |func|
|
1558
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1559
|
+
func.add_parameter "Gecode::IntVar", "x"
|
1560
|
+
func.add_parameter "int", "n"
|
1561
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1562
|
+
end
|
1563
|
+
|
1564
|
+
ns.add_function "eq", "void" do |method|
|
1565
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
1566
|
+
method.add_parameter "Gecode::IntVar", "x0"
|
1567
|
+
method.add_parameter "Gecode::IntVar", "x1"
|
1568
|
+
method.add_parameter "Gecode::BoolVar", "b"
|
1569
|
+
method.add_parameter "Gecode::IntConLevel", "icl", true
|
1570
|
+
end
|
1571
|
+
|
1572
|
+
ns.add_function "eq", "void" do |method|
|
1573
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
1574
|
+
method.add_parameter "Gecode::IntVar", "x"
|
1575
|
+
method.add_parameter "int", "n"
|
1576
|
+
method.add_parameter "Gecode::BoolVar", "b"
|
1577
|
+
method.add_parameter "Gecode::IntConLevel", "icl", true
|
1578
|
+
end
|
1579
|
+
|
1580
|
+
ns.add_function "eq", "void" do |method|
|
1581
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
1582
|
+
method.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1583
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1584
|
+
end
|
1585
|
+
method.add_parameter "Gecode::IntConLevel", "icl", true
|
1586
|
+
end
|
1587
|
+
|
1588
|
+
ns.add_function "sortedness", "void" do |method|
|
1589
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
1590
|
+
method.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1591
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1592
|
+
end
|
1593
|
+
method.add_parameter "Gecode::MIntVarArray *", "y" do |param|
|
1594
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1595
|
+
end
|
1596
|
+
method.add_parameter "Gecode::IntConLevel", "icl", true
|
1597
|
+
end
|
1598
|
+
ns.add_function "sortedness", "void" do |method|
|
1599
|
+
method.add_parameter "Gecode::MSpace*", "home"
|
1600
|
+
method.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1601
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1602
|
+
end
|
1603
|
+
method.add_parameter "Gecode::MIntVarArray *", "y" do |param|
|
1604
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
1605
|
+
end
|
1606
|
+
method.add_parameter "Gecode::MIntVarArray *", "z" do |param|
|
1607
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[3], 4)->ptr()"
|
1608
|
+
end
|
1609
|
+
method.add_parameter "Gecode::IntConLevel", "icl", true
|
1610
|
+
end
|
1611
|
+
|
1612
|
+
ns.add_function "post", "Gecode::BoolVar" do |func|
|
1613
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1614
|
+
func.add_parameter "Gecode::MiniModel::BoolExpr", "e"
|
1615
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1616
|
+
end
|
1617
|
+
|
1618
|
+
ns.add_function "post", "Gecode::BoolVar" do |func|
|
1619
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1620
|
+
func.add_parameter "Gecode::BoolVar", "e"
|
1621
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1622
|
+
end
|
1623
|
+
|
1624
|
+
ns.add_function "post" do |func|
|
1625
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1626
|
+
func.add_parameter "Gecode::MiniModel::BoolRel", "r"
|
1627
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1628
|
+
end
|
1629
|
+
|
1630
|
+
ns.add_function "post", "Gecode::IntVar" do |func|
|
1631
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1632
|
+
func.add_parameter "Gecode::IntVar", "e"
|
1633
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1634
|
+
end
|
1635
|
+
|
1636
|
+
ns.add_function "post", "Gecode::IntVar" do |func|
|
1637
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1638
|
+
func.add_parameter "int", "n"
|
1639
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1640
|
+
end
|
1641
|
+
|
1642
|
+
ns.add_function "post", "Gecode::IntVar" do |func|
|
1643
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1644
|
+
func.add_parameter "Gecode::MiniModel::LinExpr", "e"
|
1645
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1646
|
+
end
|
1647
|
+
|
1648
|
+
ns.add_function "post" do |func|
|
1649
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1650
|
+
func.add_parameter "Gecode::MiniModel::LinRel", "e"
|
1651
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1652
|
+
end
|
1653
|
+
|
1654
|
+
ns.add_function "post" do |func|
|
1655
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1656
|
+
func.add_parameter "bool", "r"
|
1657
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1658
|
+
end
|
1659
|
+
|
1660
|
+
ns.add_function "producer_consumer" do |func|
|
1661
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1662
|
+
func.add_parameter "Gecode::MIntVarArray *", "produce_date" do |param|
|
1663
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1664
|
+
end
|
1665
|
+
func.add_parameter "Gecode::IntArgs", "produce_amount"
|
1666
|
+
func.add_parameter "Gecode::MIntVarArray *", "consume_date" do |param|
|
1667
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[3], 4)->ptr()"
|
1668
|
+
end
|
1669
|
+
func.add_parameter "Gecode::IntArgs", "consume_amount"
|
1670
|
+
func.add_parameter "int", "initial"
|
1671
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1672
|
+
end
|
1673
|
+
|
1674
|
+
ns.add_function "cumulative" do |func|
|
1675
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1676
|
+
func.add_parameter "Gecode::MIntVarArray *", "start" do |param|
|
1677
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1678
|
+
end
|
1679
|
+
func.add_parameter "Gecode::MIntVarArray *", "duration" do |param|
|
1680
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1681
|
+
end
|
1682
|
+
func.add_parameter "Gecode::MIntVarArray *", "height" do |param|
|
1683
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1684
|
+
end
|
1685
|
+
func.add_parameter "int", "limit"
|
1686
|
+
func.add_parameter "bool", "at_most", true
|
1687
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1688
|
+
end
|
1689
|
+
|
1690
|
+
ns.add_function "cumulative" do |func|
|
1691
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1692
|
+
func.add_parameter "Gecode::MIntVarArray *", "start" do |param|
|
1693
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1694
|
+
end
|
1695
|
+
func.add_parameter "Gecode::IntArgs", "duration"
|
1696
|
+
func.add_parameter "Gecode::MIntVarArray *", "height" do |param|
|
1697
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1698
|
+
end
|
1699
|
+
func.add_parameter "int", "limit"
|
1700
|
+
func.add_parameter "bool", "at_most", true
|
1701
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1702
|
+
end
|
1703
|
+
|
1704
|
+
ns.add_function "cumulative" do |func|
|
1705
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1706
|
+
func.add_parameter "Gecode::MIntVarArray *", "start" do |param|
|
1707
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1708
|
+
end
|
1709
|
+
func.add_parameter "Gecode::MIntVarArray *", "duration" do |param|
|
1710
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1711
|
+
end
|
1712
|
+
func.add_parameter "Gecode::IntArgs", "height"
|
1713
|
+
func.add_parameter "int", "limit"
|
1714
|
+
func.add_parameter "bool", "at_most", true
|
1715
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1716
|
+
end
|
1717
|
+
|
1718
|
+
ns.add_function "cumulative" do |func|
|
1719
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1720
|
+
func.add_parameter "Gecode::MIntVarArray *", "start" do |param|
|
1721
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1722
|
+
end
|
1723
|
+
func.add_parameter "Gecode::IntArgs", "duration"
|
1724
|
+
func.add_parameter "Gecode::IntArgs", "height"
|
1725
|
+
func.add_parameter "int", "limit"
|
1726
|
+
func.add_parameter "bool", "at_most", true
|
1727
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1728
|
+
end
|
1729
|
+
|
1730
|
+
ns.add_function "serialized" do |func|
|
1731
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1732
|
+
func.add_parameter "Gecode::MIntVarArray *", "start" do |param|
|
1733
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1734
|
+
end
|
1735
|
+
func.add_parameter "Gecode::MIntVarArray *", "duration" do |param|
|
1736
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1737
|
+
end
|
1738
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1739
|
+
end
|
1740
|
+
|
1741
|
+
ns.add_function "serialized" do |func|
|
1742
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1743
|
+
func.add_parameter "Gecode::MIntVarArray *", "start" do |param|
|
1744
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1745
|
+
end
|
1746
|
+
func.add_parameter "Gecode::IntArgs", "duration"
|
1747
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1748
|
+
end
|
1749
|
+
|
1750
|
+
ns.add_function "atmost" do |func|
|
1751
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1752
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1753
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1754
|
+
end
|
1755
|
+
func.add_parameter "int", "n"
|
1756
|
+
func.add_parameter "int", "m"
|
1757
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1758
|
+
end
|
1759
|
+
|
1760
|
+
ns.add_function "atmost" do |func|
|
1761
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1762
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1763
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1764
|
+
end
|
1765
|
+
func.add_parameter "Gecode::IntVar", "n"
|
1766
|
+
func.add_parameter "int", "m"
|
1767
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1768
|
+
end
|
1769
|
+
|
1770
|
+
ns.add_function "atmost" do |func|
|
1771
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1772
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1773
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1774
|
+
end
|
1775
|
+
func.add_parameter "int", "n"
|
1776
|
+
func.add_parameter "Gecode::IntVar", "m"
|
1777
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1778
|
+
end
|
1779
|
+
|
1780
|
+
ns.add_function "atmost" do |func|
|
1781
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1782
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1783
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1784
|
+
end
|
1785
|
+
func.add_parameter "Gecode::IntVar", "n"
|
1786
|
+
func.add_parameter "Gecode::IntVar", "m"
|
1787
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1788
|
+
end
|
1789
|
+
|
1790
|
+
ns.add_function "atleast" do |func|
|
1791
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1792
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1793
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1794
|
+
end
|
1795
|
+
func.add_parameter "int", "n"
|
1796
|
+
func.add_parameter "int", "m"
|
1797
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1798
|
+
end
|
1799
|
+
|
1800
|
+
ns.add_function "atleast" do |func|
|
1801
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1802
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1803
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1804
|
+
end
|
1805
|
+
func.add_parameter "Gecode::IntVar", "n"
|
1806
|
+
func.add_parameter "int", "m"
|
1807
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1808
|
+
end
|
1809
|
+
|
1810
|
+
ns.add_function "atleast" do |func|
|
1811
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1812
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1813
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1814
|
+
end
|
1815
|
+
func.add_parameter "int", "n"
|
1816
|
+
func.add_parameter "Gecode::IntVar", "m"
|
1817
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1818
|
+
end
|
1819
|
+
|
1820
|
+
ns.add_function "atleast" do |func|
|
1821
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1822
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1823
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1824
|
+
end
|
1825
|
+
func.add_parameter "Gecode::IntVar", "n"
|
1826
|
+
func.add_parameter "Gecode::IntVar", "m"
|
1827
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1828
|
+
end
|
1829
|
+
|
1830
|
+
ns.add_function "exactly" do |func|
|
1831
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1832
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1833
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1834
|
+
end
|
1835
|
+
func.add_parameter "int", "n"
|
1836
|
+
func.add_parameter "int", "m"
|
1837
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1838
|
+
end
|
1839
|
+
|
1840
|
+
ns.add_function "exactly" do |func|
|
1841
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1842
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1843
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1844
|
+
end
|
1845
|
+
func.add_parameter "Gecode::IntVar", "n"
|
1846
|
+
func.add_parameter "int", "m"
|
1847
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1848
|
+
end
|
1849
|
+
|
1850
|
+
ns.add_function "exactly" do |func|
|
1851
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1852
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1853
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1854
|
+
end
|
1855
|
+
func.add_parameter "int", "n"
|
1856
|
+
func.add_parameter "Gecode::IntVar", "m"
|
1857
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1858
|
+
end
|
1859
|
+
|
1860
|
+
ns.add_function "exactly" do |func|
|
1861
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1862
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1863
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1864
|
+
end
|
1865
|
+
func.add_parameter "Gecode::IntVar", "n"
|
1866
|
+
func.add_parameter "Gecode::IntVar", "m"
|
1867
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1868
|
+
end
|
1869
|
+
|
1870
|
+
ns.add_function "lex" do |func|
|
1871
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1872
|
+
func.add_parameter "Gecode::MIntVarArray *", "x" do |param|
|
1873
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
1874
|
+
end
|
1875
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1876
|
+
func.add_parameter "Gecode::MIntVarArray *", "y" do |param|
|
1877
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[3], 4)->ptr()"
|
1878
|
+
end
|
1879
|
+
func.add_parameter "Gecode::IntConLevel", "icl", true
|
1880
|
+
end
|
1881
|
+
|
1882
|
+
ns.add_function "cardinality" do |func|
|
1883
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1884
|
+
func.add_parameter "Gecode::SetVar", "x"
|
1885
|
+
func.add_parameter "int", "i"
|
1886
|
+
func.add_parameter "int", "j"
|
1887
|
+
end
|
1888
|
+
|
1889
|
+
ns.add_function "cardinality" do |func|
|
1890
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1891
|
+
func.add_parameter "Gecode::SetVar", "s"
|
1892
|
+
func.add_parameter "Gecode::IntVar", "x"
|
1893
|
+
end
|
1894
|
+
|
1895
|
+
ns.add_function "convex" do |func|
|
1896
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1897
|
+
func.add_parameter "Gecode::SetVar", "s"
|
1898
|
+
end
|
1899
|
+
|
1900
|
+
ns.add_function "convexHull" do |func|
|
1901
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1902
|
+
func.add_parameter "Gecode::SetVar", "x"
|
1903
|
+
func.add_parameter "Gecode::SetVar", "y"
|
1904
|
+
end
|
1905
|
+
|
1906
|
+
ns.add_function "atmostOne" do |func|
|
1907
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1908
|
+
func.add_parameter "Gecode::MSetVarArray", "x" do |param|
|
1909
|
+
param.custom_conversion = "*ruby2Gecode_MSetVarArrayPtr(x, 2)->ptr()"
|
1910
|
+
end
|
1911
|
+
func.add_parameter "int", "c"
|
1912
|
+
end
|
1913
|
+
|
1914
|
+
ns.add_function "distinct" do |func|
|
1915
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1916
|
+
func.add_parameter "Gecode::MSetVarArray", "x" do |param|
|
1917
|
+
param.custom_conversion = "*ruby2Gecode_MSetVarArrayPtr(argv[1], 2)->ptr()"
|
1918
|
+
end
|
1919
|
+
func.add_parameter "int", "c"
|
1920
|
+
end
|
1921
|
+
|
1922
|
+
ns.add_function "dom" do |func|
|
1923
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1924
|
+
func.add_parameter "Gecode::SetVar", "x"
|
1925
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
1926
|
+
func.add_parameter "int", "i"
|
1927
|
+
end
|
1928
|
+
|
1929
|
+
ns.add_function "dom" do |func|
|
1930
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1931
|
+
func.add_parameter "Gecode::SetVar", "x"
|
1932
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
1933
|
+
func.add_parameter "int", "i"
|
1934
|
+
func.add_parameter "int", "j"
|
1935
|
+
end
|
1936
|
+
|
1937
|
+
|
1938
|
+
ns.add_function "dom" do |func|
|
1939
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1940
|
+
func.add_parameter "Gecode::SetVar", "x"
|
1941
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
1942
|
+
func.add_parameter "Gecode::IntSet", "s"
|
1943
|
+
end
|
1944
|
+
|
1945
|
+
ns.add_function "dom" do |func|
|
1946
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1947
|
+
func.add_parameter "Gecode::SetVar", "x"
|
1948
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
1949
|
+
func.add_parameter "int", "i"
|
1950
|
+
func.add_parameter "Gecode::BoolVar", "b"
|
1951
|
+
end
|
1952
|
+
|
1953
|
+
ns.add_function "dom" do |func|
|
1954
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1955
|
+
func.add_parameter "Gecode::SetVar", "x"
|
1956
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
1957
|
+
func.add_parameter "int", "i"
|
1958
|
+
func.add_parameter "int", "j"
|
1959
|
+
func.add_parameter "Gecode::BoolVar", "b"
|
1960
|
+
end
|
1961
|
+
|
1962
|
+
ns.add_function "dom" do |func|
|
1963
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1964
|
+
func.add_parameter "Gecode::SetVar", "x"
|
1965
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
1966
|
+
func.add_parameter "Gecode::IntSet", "s"
|
1967
|
+
func.add_parameter "Gecode::BoolVar", "b"
|
1968
|
+
end
|
1969
|
+
|
1970
|
+
ns.add_function "rel" do |func|
|
1971
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1972
|
+
func.add_parameter "Gecode::SetVar", "s"
|
1973
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1974
|
+
func.add_parameter "Gecode::IntVar", "x"
|
1975
|
+
end
|
1976
|
+
|
1977
|
+
ns.add_function "rel" do |func|
|
1978
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1979
|
+
func.add_parameter "Gecode::IntVar", "x"
|
1980
|
+
func.add_parameter "Gecode::IntRelType", "r"
|
1981
|
+
func.add_parameter "Gecode::SetVar", "s"
|
1982
|
+
end
|
1983
|
+
|
1984
|
+
ns.add_function "min" do |func|
|
1985
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1986
|
+
func.add_parameter "Gecode::SetVar", "s"
|
1987
|
+
func.add_parameter "Gecode::IntVar", "x"
|
1988
|
+
end
|
1989
|
+
|
1990
|
+
ns.add_function "max" do |func|
|
1991
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1992
|
+
func.add_parameter "Gecode::SetVar", "s"
|
1993
|
+
func.add_parameter "Gecode::IntVar", "x"
|
1994
|
+
end
|
1995
|
+
|
1996
|
+
ns.add_function "match" do |func|
|
1997
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
1998
|
+
func.add_parameter "Gecode::SetVar", "s"
|
1999
|
+
func.add_parameter "Gecode::MIntVarArray", "x" do |param|
|
2000
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(x, 3)->ptr()"
|
2001
|
+
end
|
2002
|
+
end
|
2003
|
+
|
2004
|
+
ns.add_function "channel" do |func|
|
2005
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2006
|
+
func.add_parameter "Gecode::MIntVarArray", "x" do |param|
|
2007
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[1], 2)->ptr()"
|
2008
|
+
end
|
2009
|
+
func.add_parameter "Gecode::MSetVarArray", "y" do |param|
|
2010
|
+
param.custom_conversion = "*ruby2Gecode_MSetVarArrayPtr(argv[2], 3)->ptr()"
|
2011
|
+
end
|
2012
|
+
end
|
2013
|
+
|
2014
|
+
ns.add_function "weights" do |func|
|
2015
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2016
|
+
func.add_parameter "Gecode::IntArgs", "elements"
|
2017
|
+
func.add_parameter "Gecode::IntArgs", "weights"
|
2018
|
+
func.add_parameter "Gecode::SetVar", "x"
|
2019
|
+
func.add_parameter "Gecode::IntVar", "y"
|
2020
|
+
end
|
2021
|
+
|
2022
|
+
ns.add_function "rel" do |func|
|
2023
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2024
|
+
func.add_parameter "Gecode::IntSet", "x"
|
2025
|
+
func.add_parameter "Gecode::SetOpType", "op"
|
2026
|
+
func.add_parameter "Gecode::SetVar", "y"
|
2027
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
2028
|
+
func.add_parameter "Gecode::SetVar", "z"
|
2029
|
+
end
|
2030
|
+
|
2031
|
+
ns.add_function "rel" do |func|
|
2032
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2033
|
+
func.add_parameter "Gecode::SetVar", "x"
|
2034
|
+
func.add_parameter "Gecode::SetOpType", "op"
|
2035
|
+
func.add_parameter "Gecode::IntSet", "y"
|
2036
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
2037
|
+
func.add_parameter "Gecode::SetVar", "z"
|
2038
|
+
end
|
2039
|
+
|
2040
|
+
ns.add_function "rel" do |func|
|
2041
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2042
|
+
func.add_parameter "Gecode::SetVar", "x"
|
2043
|
+
func.add_parameter "Gecode::SetOpType", "op"
|
2044
|
+
func.add_parameter "Gecode::SetVar", "y"
|
2045
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
2046
|
+
func.add_parameter "Gecode::IntSet", "z"
|
2047
|
+
end
|
2048
|
+
|
2049
|
+
ns.add_function "rel" do |func|
|
2050
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2051
|
+
func.add_parameter "Gecode::IntSet", "x"
|
2052
|
+
func.add_parameter "Gecode::SetOpType", "op"
|
2053
|
+
func.add_parameter "Gecode::IntSet", "y"
|
2054
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
2055
|
+
func.add_parameter "Gecode::SetVar", "z"
|
2056
|
+
end
|
2057
|
+
|
2058
|
+
ns.add_function "rel" do |func|
|
2059
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2060
|
+
func.add_parameter "Gecode::IntSet", "x"
|
2061
|
+
func.add_parameter "Gecode::SetOpType", "op"
|
2062
|
+
func.add_parameter "Gecode::SetVar", "y"
|
2063
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
2064
|
+
func.add_parameter "Gecode::IntSet", "z"
|
2065
|
+
end
|
2066
|
+
|
2067
|
+
ns.add_function "rel" do |func|
|
2068
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2069
|
+
func.add_parameter "Gecode::SetVar", "x"
|
2070
|
+
func.add_parameter "Gecode::SetOpType", "op"
|
2071
|
+
func.add_parameter "Gecode::IntSet", "y"
|
2072
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
2073
|
+
func.add_parameter "Gecode::IntSet", "z"
|
2074
|
+
end
|
2075
|
+
|
2076
|
+
ns.add_function "rel" do |func|
|
2077
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2078
|
+
func.add_parameter "Gecode::SetVar", "x"
|
2079
|
+
func.add_parameter "Gecode::SetOpType", "op"
|
2080
|
+
func.add_parameter "Gecode::SetVar", "y"
|
2081
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
2082
|
+
func.add_parameter "Gecode::SetVar", "z"
|
2083
|
+
end
|
2084
|
+
|
2085
|
+
|
2086
|
+
ns.add_function "rel" do |func|
|
2087
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2088
|
+
func.add_parameter "Gecode::SetOpType", "op"
|
2089
|
+
func.add_parameter "Gecode::MSetVarArray", "x" do |param|
|
2090
|
+
param.custom_conversion = "*ruby2Gecode_MSetVarArrayPtr(argv[2], 3)->ptr()"
|
2091
|
+
end
|
2092
|
+
func.add_parameter "Gecode::SetVar", "y"
|
2093
|
+
end
|
2094
|
+
|
2095
|
+
ns.add_function "rel" do |func|
|
2096
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2097
|
+
func.add_parameter "Gecode::SetOpType", "op"
|
2098
|
+
func.add_parameter "Gecode::MIntVarArray", "x" do |param|
|
2099
|
+
param.custom_conversion = "*ruby2Gecode_MIntVarArrayPtr(argv[2], 3)->ptr()"
|
2100
|
+
end
|
2101
|
+
func.add_parameter "Gecode::SetVar", "y"
|
2102
|
+
end
|
2103
|
+
|
2104
|
+
ns.add_function "rel" do |func|
|
2105
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2106
|
+
func.add_parameter "Gecode::SetVar", "x"
|
2107
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
2108
|
+
func.add_parameter "Gecode::SetVar", "y"
|
2109
|
+
end
|
2110
|
+
|
2111
|
+
ns.add_function "rel" do |func|
|
2112
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2113
|
+
func.add_parameter "Gecode::SetVar", "x"
|
2114
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
2115
|
+
func.add_parameter "Gecode::IntVar", "y"
|
2116
|
+
end
|
2117
|
+
|
2118
|
+
ns.add_function "rel" do |func|
|
2119
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2120
|
+
func.add_parameter "Gecode::IntVar", "x"
|
2121
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
2122
|
+
func.add_parameter "Gecode::SetVar", "y"
|
2123
|
+
end
|
2124
|
+
|
2125
|
+
ns.add_function "rel" do |func|
|
2126
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2127
|
+
func.add_parameter "Gecode::SetVar", "x"
|
2128
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
2129
|
+
func.add_parameter "Gecode::SetVar", "y"
|
2130
|
+
func.add_parameter "Gecode::BoolVar", "b"
|
2131
|
+
end
|
2132
|
+
|
2133
|
+
ns.add_function "rel" do |func|
|
2134
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2135
|
+
func.add_parameter "Gecode::SetVar", "x"
|
2136
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
2137
|
+
func.add_parameter "Gecode::IntVar", "y"
|
2138
|
+
func.add_parameter "Gecode::BoolVar", "b"
|
2139
|
+
end
|
2140
|
+
|
2141
|
+
ns.add_function "rel" do |func|
|
2142
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2143
|
+
func.add_parameter "Gecode::IntVar", "x"
|
2144
|
+
func.add_parameter "Gecode::SetRelType", "r"
|
2145
|
+
func.add_parameter "Gecode::SetVar", "y"
|
2146
|
+
func.add_parameter "Gecode::BoolVar", "b"
|
2147
|
+
end
|
2148
|
+
|
2149
|
+
ns.add_function "selectUnion" do |func|
|
2150
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2151
|
+
func.add_parameter "Gecode::MSetVarArray", "x" do |param|
|
2152
|
+
param.custom_conversion = "*ruby2Gecode_MSetVarArrayPtr(x, 2)->ptr()"
|
2153
|
+
end
|
2154
|
+
func.add_parameter "Gecode::SetVar", "y"
|
2155
|
+
func.add_parameter "Gecode::SetVar", "z"
|
2156
|
+
end
|
2157
|
+
|
2158
|
+
ns.add_function "selectInter" do |func|
|
2159
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2160
|
+
func.add_parameter "Gecode::MSetVarArray", "x" do |param|
|
2161
|
+
param.custom_conversion = "*ruby2Gecode_MSetVarArrayPtr(x, 2)->ptr()"
|
2162
|
+
end
|
2163
|
+
func.add_parameter "Gecode::SetVar", "y"
|
2164
|
+
func.add_parameter "Gecode::SetVar", "z"
|
2165
|
+
end
|
2166
|
+
|
2167
|
+
ns.add_function "selectInterIn" do |func|
|
2168
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2169
|
+
func.add_parameter "Gecode::MSetVarArray", "x" do |param|
|
2170
|
+
param.custom_conversion = "*ruby2Gecode_MSetVarArrayPtr(x, 2)->ptr()"
|
2171
|
+
end
|
2172
|
+
func.add_parameter "Gecode::SetVar", "y"
|
2173
|
+
func.add_parameter "Gecode::SetVar", "z"
|
2174
|
+
func.add_parameter "Gecode::IntSet", "universe"
|
2175
|
+
end
|
2176
|
+
|
2177
|
+
ns.add_function "selectSet" do |func|
|
2178
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2179
|
+
func.add_parameter "Gecode::MSetVarArray", "x" do |param|
|
2180
|
+
param.custom_conversion = "*ruby2Gecode_MSetVarArrayPtr(x, 2)->ptr()"
|
2181
|
+
end
|
2182
|
+
func.add_parameter "Gecode::IntVar", "y"
|
2183
|
+
func.add_parameter "Gecode::SetVar", "z"
|
2184
|
+
end
|
2185
|
+
|
2186
|
+
ns.add_function "selectDisjoint" do |func|
|
2187
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2188
|
+
func.add_parameter "Gecode::MSetVarArray", "x" do |param|
|
2189
|
+
param.custom_conversion = "*ruby2Gecode_MSetVarArrayPtr(x, 2)->ptr()"
|
2190
|
+
end
|
2191
|
+
func.add_parameter "Gecode::SetVar", "y"
|
2192
|
+
end
|
2193
|
+
|
2194
|
+
ns.add_function "sequence" do |func|
|
2195
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2196
|
+
func.add_parameter "Gecode::MSetVarArray", "x" do |param|
|
2197
|
+
param.custom_conversion = "*ruby2Gecode_MSetVarArrayPtr(x, 2)->ptr()"
|
2198
|
+
end
|
2199
|
+
end
|
2200
|
+
|
2201
|
+
ns.add_function "sequentialUnion" do |func|
|
2202
|
+
func.add_parameter "Gecode::MSpace*", "home"
|
2203
|
+
func.add_parameter "Gecode::MSetVarArray", "y" do |param|
|
2204
|
+
param.custom_conversion = "*ruby2Gecode_MSetVarArrayPtr(y, 2)->ptr()"
|
2205
|
+
end
|
2206
|
+
func.add_parameter "Gecode::SetVar", "x"
|
2207
|
+
end
|
2208
|
+
end
|
2209
|
+
end
|