main page
modules
namespaces
classes
files
Gecode home
Generated on Thu Apr 5 2018 19:44:19 for Gecode by
doxygen
1.8.13
gecode
search
lds.cpp
Go to the documentation of this file.
1
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
2
/*
3
* Main authors:
4
* Christian Schulte <schulte@gecode.org>
5
*
6
* Copyright:
7
* Christian Schulte, 2004, 2016
8
*
9
* Bugfixes provided by:
10
* Stefano Gualandi
11
*
12
* Last modified:
13
* $Date$ by $Author$
14
* $Revision$
15
*
16
* This file is part of Gecode, the generic constraint
17
* development environment:
18
* http://www.gecode.org
19
*
20
* Permission is hereby granted, free of charge, to any person obtaining
21
* a copy of this software and associated documentation files (the
22
* "Software"), to deal in the Software without restriction, including
23
* without limitation the rights to use, copy, modify, merge, publish,
24
* distribute, sublicense, and/or sell copies of the Software, and to
25
* permit persons to whom the Software is furnished to do so, subject to
26
* the following conditions:
27
*
28
* The above copyright notice and this permission notice shall be
29
* included in all copies or substantial portions of the Software.
30
*
31
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
32
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
33
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
34
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
35
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
36
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
37
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
38
*
39
*/
40
41
#include <
gecode/search.hh
>
42
#include <
gecode/search/support.hh
>
43
44
#include <
gecode/search/seq/lds.hh
>
45
46
namespace
Gecode
{
namespace
Search {
47
48
Engine*
49
ldsengine
(
Space
* s,
const
Options
& o) {
50
if
(o.
tracer
)
51
return
new
Seq::LDS<EdgeTraceRecorder>
(s,o);
52
else
53
return
new
Seq::LDS<NoTraceRecorder>
(s,o);
54
}
55
56
}}
57
58
// STATISTICS: search-other
support.hh
Gecode::Search::Options
Search engine options
Definition:
search.hh:748
Gecode::Search::ldsengine
Engine * ldsengine(Space *s, const Options &o)
Create lds engine.
Definition:
lds.cpp:49
search.hh
Gecode::Space
Computation spaces.
Definition:
core.hpp:1668
Gecode::Search::Options::tracer
SearchTracer * tracer
Tracer object for tracing search.
Definition:
search.hh:771
Gecode
Gecode toplevel namespace
lds.hh
Gecode::Search::Seq::LDS
Limited discrepancy search engine implementation.
Definition:
lds.hh:109