/* * Main authors: * Christian Schulte * * Copyright: * Christian Schulte, 2006 * * Last modified: * $Date: 2006-08-04 16:06:52 +0200 (Fri, 04 Aug 2006) $ by $Author: schulte $ * $Revision: 3517 $ * * This file is part of Gecode, the generic constraint * development environment: * http://www.gecode.org * * See the file "LICENSE" for information on usage and * redistribution of this file, and for a * DISCLAIMER OF ALL WARRANTIES. * */ #include "examples/support.hh" static const int n = 15; static const int m = 90; static const int p[n] = {16,35,90,42,88,6,40,42,64,48,46,5,90,29,70}; /** * \brief %Example: Stress test for element constraint (involving integers) * * This stress test is an adaption of the benchmark for element posted * by Neng-Fa Zhou for B-Prolog, November, 2005. * * \ingroup Example * */ class StressElement : public Example { protected: /// Variables IntVarArray x; public: /// The actual problem StressElement(const Options& opt) : x(this,n,0,n-1) { IntVarArgs s(n); for (int i=0; i(opt); return 0; } // STATISTICS: example-any