baseline.cc
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include "examples/support.hh"
00023
00030 class Baseline : public Example {
00031 protected:
00033 IntVarArray x;
00034 public:
00036 Baseline(const Options& opt)
00037 : x(this,1,0,1) {
00038 branch(this, x, BVAR_NONE, BVAL_MIN);
00039 }
00040
00042 Baseline(bool share, Baseline& s) : Example(share,s) {
00043 x.update(this, share, s.x);
00044 }
00045
00047 virtual Space*
00048 copy(bool share) {
00049 return new Baseline(share,*this);
00050 }
00051
00053 virtual void
00054 print(void) {}
00055 };
00056
00060 int
00061 main(int argc, char** argv) {
00062 Options opt("Baseline");
00063 opt.iterations = 2000;
00064 opt.solutions = 0;
00065 opt.parse(argc,argv);
00066 Example::run<Baseline,DFS>(opt);
00067 return 0;
00068 }
00069
00070
00071