branch.hh
Go to the documentation of this file.
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Christian Schulte <schulte@gecode.org>
*
* Copyright:
* Christian Schulte, 2017
*
* This file is part of Gecode, the generic constraint
* development environment:
* http://www.gecode.org
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*/
#ifndef __GECODE_FLATZINC_BRANCH_HH__
#define __GECODE_FLATZINC_BRANCH_HH__
#include <gecode/int.hh>
#include <gecode/int/branch.hh>
#include <gecode/flatzinc.hh>
namespace Gecode { namespace FlatZinc {
class IntBoolVarBranch : public VarBranch<IntVar> {
public:
enum Select {
SEL_AFC_MAX,
SEL_ACTION_MAX,
SEL_CHB_MAX,
SEL_AFC_SIZE_MAX,
SEL_ACTION_SIZE_MAX,
SEL_CHB_SIZE_MAX
};
protected:
Select s;
IntAFC iafc;
BoolAFC bafc;
IntAction iaction;
BoolAction baction;
IntCHB ichb;
BoolCHB bchb;
public:
IntBoolVarBranch(Select s, double d);
IntBoolVarBranch(Select s, IntAFC i, BoolAFC b);
IntBoolVarBranch(Select s, IntAction i, BoolAction b);
IntBoolVarBranch(Select s, IntCHB i, BoolCHB b);
Select select(void) const;
IntAFC intafc(void) const;
BoolAFC boolafc(void) const;
IntAction intaction(void) const;
BoolAction boolaction(void) const;
IntCHB intchb(void) const;
BoolCHB boolchb(void) const;
void expand(Home home, const IntVarArgs& x, const BoolVarArgs& y);
};
IntBoolVarBranch INTBOOL_VAR_AFC_MAX(double d=1.0);
IntBoolVarBranch INTBOOL_VAR_AFC_MAX(IntAFC ia, BoolAFC ba);
IntBoolVarBranch INTBOOL_VAR_ACTION_MAX(double d=1.0);
IntBoolVarBranch INTBOOL_VAR_ACTION_MAX(IntAction ia, BoolAction ba);
IntBoolVarBranch INTBOOL_VAR_CHB_MAX(double d=1.0);
IntBoolVarBranch INTBOOL_VAR_CHB_MAX(IntCHB ic, BoolCHB bc);
IntBoolVarBranch INTBOOL_VAR_AFC_SIZE_MAX(double d=1.0);
IntBoolVarBranch INTBOOL_VAR_AFC_SIZE_MAX(IntAFC ia, BoolAFC ba);
IntBoolVarBranch INTBOOL_VAR_ACTION_SIZE_MAX(double d=1.0);
IntBoolVarBranch INTBOOL_VAR_ACTION_SIZE_MAX(IntAction ia, BoolAction ba);
IntBoolVarBranch INTBOOL_VAR_CHB_SIZE_MAX(double d=1.0);
IntBoolVarBranch INTBOOL_VAR_CHB_SIZE_MAX(IntCHB ic, BoolCHB bc);
class MeritMaxAFC {
protected:
IntAFC iafc;
BoolAFC bafc;
public:
MeritMaxAFC(Space& home, const IntBoolVarBranch& ibvb);
MeritMaxAFC(Space& home, MeritMaxAFC& m);
double operator()(Int::IntView x, int i) const;
double operator()(Int::BoolView x, int i) const;
void dispose(void);
};
class MeritMaxAFCSize {
protected:
IntAFC iafc;
BoolAFC bafc;
public:
MeritMaxAFCSize(Space& home, const IntBoolVarBranch& ibvb);
MeritMaxAFCSize(Space& home, MeritMaxAFCSize& m);
double operator()(Int::IntView x, int i) const;
double operator()(Int::BoolView x, int i) const;
void dispose(void);
};
class MeritMaxAction {
protected:
IntAction iaction;
BoolAction baction;
public:
MeritMaxAction(Space& home, const IntBoolVarBranch& ibvb);
MeritMaxAction(Space& home, MeritMaxAction& m);
double operator()(Int::IntView x, int i) const;
double operator()(Int::BoolView x, int i) const;
void dispose(void);
};
class MeritMaxActionSize {
protected:
IntAction iaction;
BoolAction baction;
public:
MeritMaxActionSize(Space& home, const IntBoolVarBranch& ibvb);
MeritMaxActionSize(Space& home, MeritMaxActionSize& m);
double operator()(Int::IntView x, int i) const;
double operator()(Int::BoolView x, int i) const;
void dispose(void);
};
class MeritMaxCHB {
protected:
IntCHB ichb;
BoolCHB bchb;
public:
MeritMaxCHB(Space& home, const IntBoolVarBranch& ibvb);
MeritMaxCHB(Space& home, MeritMaxCHB& m);
double operator()(Int::IntView x, int i) const;
double operator()(Int::BoolView x, int i) const;
void dispose(void);
};
class MeritMaxCHBSize {
protected:
IntCHB ichb;
BoolCHB bchb;
public:
MeritMaxCHBSize(Space& home, const IntBoolVarBranch& ibvb);
MeritMaxCHBSize(Space& home, MeritMaxCHBSize& m);
double operator()(Int::IntView x, int i) const;
double operator()(Int::BoolView x, int i) const;
void dispose(void);
};
class GECODE_VTABLE_EXPORT PosIntChoice : public Choice {
private:
int _pos;
int _val;
public:
PosIntChoice(const Brancher& b, unsigned int a, int p, int n);
int pos(void) const;
int val(void) const;
virtual void archive(Archive& e) const;
};
class IntBoolBrancherBase : public Brancher {
protected:
ViewArray<Int::IntView> x;
ViewArray<Int::BoolView> y;
mutable int start;
ValSelCommitBase<Int::IntView,int>* xvsc;
ValSelCommitBase<Int::BoolView,int>* yvsc;
IntBoolBrancherBase(Space& home, IntBoolBrancherBase& b);
IntBoolBrancherBase(Home home,
ViewArray<Int::IntView> x, ViewArray<Int::BoolView> y,
ValSelCommitBase<Int::IntView,int>* xvsc,
ValSelCommitBase<Int::BoolView,int>* yvsc);
public:
virtual bool status(const Space& home) const;
virtual const Choice* choice(Space& home) = 0;
virtual const Choice* choice(const Space& home, Archive& e);
virtual ExecStatus commit(Space& home, const Choice& c, unsigned int b);
virtual NGL* ngl(Space& home, const Choice& c, unsigned int b) const;
virtual void print(const Space& home, const Choice& c, unsigned int b,
std::ostream& o) const;
virtual size_t dispose(Space& home);
};
template<class Merit>
class IntBoolBrancher : public IntBoolBrancherBase {
protected:
Merit merit;
IntBoolBrancher(Space& home, IntBoolBrancher& b);
IntBoolBrancher(Home home,
ViewArray<Int::IntView> x, ViewArray<Int::BoolView> y,
Merit& m,
ValSelCommitBase<Int::IntView,int>* xvsc,
ValSelCommitBase<Int::BoolView,int>* yvsc);
public:
virtual const Choice* choice(Space& home);
virtual Actor* copy(Space& home);
static void post(Home home,
ViewArray<Int::IntView> x, ViewArray<Int::BoolView> y,
Merit& m,
ValSelCommitBase<Int::IntView,int>* xvsc,
ValSelCommitBase<Int::BoolView,int>* yvsc);
virtual size_t dispose(Space& home);
};
BoolValBranch i2b(const IntValBranch& ivb);
GECODE_FLATZINC_EXPORT void
branch(Home home, const IntVarArgs& x, const BoolVarArgs& y,
IntBoolVarBranch vars, IntValBranch vals);
}}
#include <gecode/flatzinc/branch.hpp>
#endif
// STATISTICS: flatzinc-branch
Gecode::Actor
Base-class for both propagators and branchers.
Definition core.hpp:628
Gecode::Archive
Archive representation
Definition archive.hpp:42
Gecode::BoolAFC
Recording AFC information for Boolean variables.
Definition int.hh:4316
Gecode::BoolAction
Recording actions for Boolean variables.
Definition int.hh:4407
Gecode::BoolCHB
Recording CHB for Boolean variables.
Definition int.hh:4502
Gecode::BoolValBranch
Which values to select for branching first.
Definition int.hh:4889
Gecode::BoolVarArgs
Passing Boolean variables.
Definition int.hh:712
Gecode::Merit
Gecode::Brancher
Base-class for branchers.
Definition core.hpp:1442
Gecode::Brancher::Space
friend class Space
Definition core.hpp:1444
Gecode::Brancher::Brancher
Brancher(Home home)
Constructor for creation.
Definition core.hpp:3605
Gecode::Brancher::Choice
friend class Choice
Definition core.hpp:1445
Gecode::Choice::Choice
Choice(const Brancher &b, const unsigned int a)
Initialize for particular brancher b and alternatives a.
Definition core.hpp:3766
Gecode::FlatZinc::IntBoolBrancherBase::y
ViewArray< Int::BoolView > y
Boolean views to branch on.
Definition branch.hh:269
Gecode::FlatZinc::IntBoolBrancherBase::x
ViewArray< Int::IntView > x
Integer views to branch on.
Definition branch.hh:267
Gecode::FlatZinc::IntBoolBrancherBase::IntBoolBrancherBase
IntBoolBrancherBase(Space &home, IntBoolBrancherBase &b)
Constructor for cloning b.
Definition branch.hpp:316
Gecode::FlatZinc::IntBoolBrancherBase::status
virtual bool status(const Space &home) const
Check status of brancher, return true if alternatives left.
Definition branch.cpp:48
Gecode::FlatZinc::IntBoolBrancherBase::yvsc
ValSelCommitBase< Int::BoolView, int > * yvsc
Boolean value selection and commit object.
Definition branch.hh:275
Gecode::FlatZinc::IntBoolBrancherBase::print
virtual void print(const Space &home, const Choice &c, unsigned int b, std::ostream &o) const
Print branch for choice c and alternative b.
Definition branch.cpp:96
Gecode::FlatZinc::IntBoolBrancherBase::ngl
virtual NGL * ngl(Space &home, const Choice &c, unsigned int b) const
Create no-good literal for choice c and alternative b.
Definition branch.cpp:82
Gecode::FlatZinc::IntBoolBrancherBase::commit
virtual ExecStatus commit(Space &home, const Choice &c, unsigned int b)
Perform commit for choice c and alternative b.
Definition branch.cpp:66
Gecode::FlatZinc::IntBoolBrancherBase::xvsc
ValSelCommitBase< Int::IntView, int > * xvsc
Integer value selection and commit object.
Definition branch.hh:273
Gecode::FlatZinc::IntBoolBrancherBase::choice
virtual const Choice * choice(Space &home)=0
Return choice.
Gecode::FlatZinc::IntBoolBrancherBase::dispose
virtual size_t dispose(Space &home)
Delete brancher and return its size.
Definition branch.hpp:324
Gecode::FlatZinc::IntBoolBrancherBase::start
int start
Unassigned views start here (might be in x or y).
Definition branch.hh:271
Gecode::FlatZinc::IntBoolBrancher::choice
virtual const Choice * choice(Space &home)
Return choice.
Definition branch.hpp:371
Gecode::FlatZinc::IntBoolBrancher::copy
virtual Actor * copy(Space &home)
Perform cloning.
Definition branch.hpp:365
Gecode::FlatZinc::IntBoolBrancher::dispose
virtual size_t dispose(Space &home)
Delete brancher and return its size.
Definition branch.hpp:413
Gecode::FlatZinc::IntBoolBrancher::merit
Merit merit
Selection by maximal merit.
Definition branch.hh:306
Gecode::FlatZinc::IntBoolBrancher::IntBoolBrancher
IntBoolBrancher(Space &home, IntBoolBrancher &b)
Constructor for cloning b.
Gecode::FlatZinc::IntBoolBrancher::post
static void post(Home home, ViewArray< Int::IntView > x, ViewArray< Int::BoolView > y, Merit &m, ValSelCommitBase< Int::IntView, int > *xvsc, ValSelCommitBase< Int::BoolView, int > *yvsc)
Post brancher.
Definition branch.hpp:347
Gecode::FlatZinc::IntBoolVarBranch
Which integer or Boolean variable to select for branching.
Definition branch.hh:44
Gecode::FlatZinc::IntBoolVarBranch::boolchb
BoolCHB boolchb(void) const
Return Boolean AFC.
Definition branch.hpp:80
Gecode::FlatZinc::IntBoolVarBranch::iafc
IntAFC iafc
Integer AFC.
Definition branch.hh:59
Gecode::FlatZinc::IntBoolVarBranch::intchb
IntCHB intchb(void) const
Return integer CHB.
Definition branch.hpp:76
Gecode::FlatZinc::IntBoolVarBranch::bchb
BoolCHB bchb
Boolean CHB.
Definition branch.hh:69
Gecode::FlatZinc::IntBoolVarBranch::expand
void expand(Home home, const IntVarArgs &x, const BoolVarArgs &y)
Expand AFC, action, and CHB.
Definition branch.hpp:84
Gecode::FlatZinc::IntBoolVarBranch::s
Select s
Which variable to select.
Definition branch.hh:57
Gecode::FlatZinc::IntBoolVarBranch::IntBoolVarBranch
IntBoolVarBranch(Select s, double d)
Initialize with selection strategy s and decay factor d.
Definition branch.hpp:37
Gecode::FlatZinc::IntBoolVarBranch::bafc
BoolAFC bafc
Boolean AFC.
Definition branch.hh:61
Gecode::FlatZinc::IntBoolVarBranch::intaction
IntAction intaction(void) const
Return integer action.
Definition branch.hpp:67
Gecode::FlatZinc::IntBoolVarBranch::intafc
IntAFC intafc(void) const
Return integer AFC.
Definition branch.hpp:58
Gecode::FlatZinc::IntBoolVarBranch::boolafc
BoolAFC boolafc(void) const
Return Boolean AFC.
Definition branch.hpp:62
Gecode::FlatZinc::IntBoolVarBranch::boolaction
BoolAction boolaction(void) const
Return Boolean action.
Definition branch.hpp:71
Gecode::FlatZinc::IntBoolVarBranch::select
Select select(void) const
Return selection strategy.
Definition branch.hpp:53
Gecode::FlatZinc::IntBoolVarBranch::ichb
IntCHB ichb
Integer CHB.
Definition branch.hh:67
Gecode::FlatZinc::IntBoolVarBranch::baction
BoolAction baction
Boolean action.
Definition branch.hh:65
Gecode::FlatZinc::IntBoolVarBranch::iaction
IntAction iaction
Integer action.
Definition branch.hh:63
Gecode::FlatZinc::IntBoolVarBranch::Select
Select
Which variable selection.
Definition branch.hh:47
Gecode::FlatZinc::IntBoolVarBranch::SEL_ACTION_SIZE_MAX
@ SEL_ACTION_SIZE_MAX
With largest action divided by domain size.
Definition branch.hh:52
Gecode::FlatZinc::IntBoolVarBranch::SEL_CHB_SIZE_MAX
@ SEL_CHB_SIZE_MAX
With largest CHB Q-score divided by domain size.
Definition branch.hh:53
Gecode::FlatZinc::IntBoolVarBranch::SEL_ACTION_MAX
@ SEL_ACTION_MAX
With highest action.
Definition branch.hh:49
Gecode::FlatZinc::IntBoolVarBranch::SEL_AFC_MAX
@ SEL_AFC_MAX
With largest accumulated failure count.
Definition branch.hh:48
Gecode::FlatZinc::IntBoolVarBranch::SEL_CHB_MAX
@ SEL_CHB_MAX
With highest CHB Q-score.
Definition branch.hh:50
Gecode::FlatZinc::IntBoolVarBranch::SEL_AFC_SIZE_MAX
@ SEL_AFC_SIZE_MAX
With largest accumulated failure count divided by domain size.
Definition branch.hh:51
Gecode::FlatZinc::MeritMaxAFCSize::iafc
IntAFC iafc
Integer AFC information.
Definition branch.hh:149
Gecode::FlatZinc::MeritMaxAFCSize::operator()
double operator()(Int::IntView x, int i) const
Return merit.
Definition branch.hpp:192
Gecode::FlatZinc::MeritMaxAFCSize::bafc
BoolAFC bafc
Boolean AFC information.
Definition branch.hh:151
Gecode::FlatZinc::MeritMaxAFCSize::MeritMaxAFCSize
MeritMaxAFCSize(Space &home, const IntBoolVarBranch &ibvb)
Constructor for initialization.
Definition branch.hpp:186
Gecode::FlatZinc::MeritMaxAFCSize::dispose
void dispose(void)
Dispose.
Definition branch.hpp:200
Gecode::FlatZinc::MeritMaxAFC::MeritMaxAFC
MeritMaxAFC(Space &home, const IntBoolVarBranch &ibvb)
Constructor for initialization.
Definition branch.hpp:165
Gecode::FlatZinc::MeritMaxAFC::dispose
void dispose(void)
Dispose.
Definition branch.hpp:179
Gecode::FlatZinc::MeritMaxAFC::operator()
double operator()(Int::IntView x, int i) const
Return merit.
Definition branch.hpp:171
Gecode::FlatZinc::MeritMaxAFC::bafc
BoolAFC bafc
Boolean AFC information.
Definition branch.hh:131
Gecode::FlatZinc::MeritMaxAFC::iafc
IntAFC iafc
Integer AFC information.
Definition branch.hh:129
Gecode::FlatZinc::MeritMaxActionSize::dispose
void dispose(void)
Dispose.
Definition branch.hpp:242
Gecode::FlatZinc::MeritMaxActionSize::operator()
double operator()(Int::IntView x, int i) const
Return merit.
Definition branch.hpp:234
Gecode::FlatZinc::MeritMaxActionSize::baction
BoolAction baction
Boolean Action information.
Definition branch.hh:191
Gecode::FlatZinc::MeritMaxActionSize::MeritMaxActionSize
MeritMaxActionSize(Space &home, const IntBoolVarBranch &ibvb)
Constructor for initialization.
Definition branch.hpp:228
Gecode::FlatZinc::MeritMaxActionSize::iaction
IntAction iaction
Integer Action information.
Definition branch.hh:189
Gecode::FlatZinc::MeritMaxAction::dispose
void dispose(void)
Dispose.
Definition branch.hpp:221
Gecode::FlatZinc::MeritMaxAction::operator()
double operator()(Int::IntView x, int i) const
Return merit.
Definition branch.hpp:213
Gecode::FlatZinc::MeritMaxAction::baction
BoolAction baction
Boolean Action information.
Definition branch.hh:171
Gecode::FlatZinc::MeritMaxAction::MeritMaxAction
MeritMaxAction(Space &home, const IntBoolVarBranch &ibvb)
Constructor for initialization.
Definition branch.hpp:207
Gecode::FlatZinc::MeritMaxAction::iaction
IntAction iaction
Integer Action information.
Definition branch.hh:169
Gecode::FlatZinc::MeritMaxCHBSize::bchb
BoolCHB bchb
Boolean CHB information.
Definition branch.hh:231
Gecode::FlatZinc::MeritMaxCHBSize::dispose
void dispose(void)
Dispose.
Definition branch.hpp:284
Gecode::FlatZinc::MeritMaxCHBSize::ichb
IntCHB ichb
Integer CHB information.
Definition branch.hh:229
Gecode::FlatZinc::MeritMaxCHBSize::MeritMaxCHBSize
MeritMaxCHBSize(Space &home, const IntBoolVarBranch &ibvb)
Constructor for initialization.
Definition branch.hpp:270
Gecode::FlatZinc::MeritMaxCHBSize::operator()
double operator()(Int::IntView x, int i) const
Return merit.
Definition branch.hpp:276
Gecode::FlatZinc::MeritMaxCHB::operator()
double operator()(Int::IntView x, int i) const
Return merit.
Definition branch.hpp:255
Gecode::FlatZinc::MeritMaxCHB::dispose
void dispose(void)
Dispose.
Definition branch.hpp:263
Gecode::FlatZinc::MeritMaxCHB::MeritMaxCHB
MeritMaxCHB(Space &home, const IntBoolVarBranch &ibvb)
Constructor for initialization.
Definition branch.hpp:249
Gecode::FlatZinc::MeritMaxCHB::bchb
BoolCHB bchb
Boolean CHB information.
Definition branch.hh:211
Gecode::FlatZinc::MeritMaxCHB::ichb
IntCHB ichb
Integer CHB information.
Definition branch.hh:209
Gecode::FlatZinc::PosIntChoice::archive
virtual void archive(Archive &e) const
Archive into e.
Definition branch.cpp:40
Gecode::FlatZinc::PosIntChoice::pos
int pos(void) const
Return position of view to assign.
Definition branch.hpp:294
Gecode::FlatZinc::PosIntChoice::val
int val(void) const
Return value to assign to.
Definition branch.hpp:298
Gecode::FlatZinc::PosIntChoice::PosIntChoice
PosIntChoice(const Brancher &b, unsigned int a, int p, int n)
Initialize choice for brancher b, number of alternatives a, position p, and value n.
Definition branch.hpp:291
Gecode::Home
Home class for posting propagators
Definition core.hpp:856
Gecode::IntAFC
Recording AFC information for integer variables.
Definition int.hh:4276
Gecode::IntAction
Recording actions for integer variables.
Definition int.hh:4362
Gecode::IntCHB
Recording CHB for integer variables.
Definition int.hh:4458
Gecode::IntValBranch
Which values to select for branching first.
Definition int.hh:4854
Gecode::IntVarArgs
Passing integer variables.
Definition int.hh:656
Gecode::Int::BoolView
Boolean view for Boolean variables.
Definition view.hpp:1380
Gecode::Int::IntView
Integer view for integer variables.
Definition view.hpp:129
Gecode::NGL
No-good literal recorded during search.
Definition core.hpp:1340
Gecode::Space
Computation spaces.
Definition core.hpp:1742
Gecode::ValSelCommitBase
Base class for value selection and commit.
Definition val-sel-commit.hpp:44
Gecode::VarBranch< IntVar >::VarBranch
VarBranch(void)
Definition var.hpp:116
Gecode::ViewArray
View arrays.
Definition array.hpp:253
branch.hpp
flatzinc.hh
GECODE_FLATZINC_EXPORT
#define GECODE_FLATZINC_EXPORT
Definition flatzinc.hh:75
branch.hh
int.hh
Gecode::FlatZinc
Interpreter for the FlatZinc language.
Gecode::FlatZinc::INTBOOL_VAR_CHB_SIZE_MAX
IntBoolVarBranch INTBOOL_VAR_CHB_SIZE_MAX(double d=1.0)
Select variable with largest CHB Q-score divided by domain size.
Definition branch.hpp:154
Gecode::FlatZinc::INTBOOL_VAR_CHB_MAX
IntBoolVarBranch INTBOOL_VAR_CHB_MAX(double d=1.0)
Select variable with largest CHB Q-score.
Definition branch.hpp:130
Gecode::FlatZinc::INTBOOL_VAR_ACTION_MAX
IntBoolVarBranch INTBOOL_VAR_ACTION_MAX(double d=1.0)
Select variable with highest action.
Definition branch.hpp:122
Gecode::FlatZinc::i2b
BoolValBranch i2b(const IntValBranch &ivb)
Map respective integer value selection to Boolean value selection.
Definition branch.hpp:421
Gecode::FlatZinc::INTBOOL_VAR_AFC_SIZE_MAX
IntBoolVarBranch INTBOOL_VAR_AFC_SIZE_MAX(double d=1.0)
Select variable with largest accumulated failure count divided by domain size.
Definition branch.hpp:138
Gecode::FlatZinc::branch
void branch(Home home, const IntVarArgs &x, const BoolVarArgs &y, IntBoolVarBranch vars, IntValBranch vals)
Branch function for integer and Boolean variables.
Definition branch.cpp:120
Gecode::FlatZinc::INTBOOL_VAR_ACTION_SIZE_MAX
IntBoolVarBranch INTBOOL_VAR_ACTION_SIZE_MAX(double d=1.0)
Select variable with largest action divided by domain size.
Definition branch.hpp:146
Gecode::FlatZinc::INTBOOL_VAR_AFC_MAX
IntBoolVarBranch INTBOOL_VAR_AFC_MAX(double d=1.0)
Variable selection for both integer and Boolean variables.
Definition branch.hpp:114
Gecode
Gecode toplevel namespace
Gecode::ba
IntPropLevel ba(IntPropLevel ipl)
Extract basic or advanced from propagation level.
Definition ipl.hpp:43
Gecode::ExecStatus
ExecStatus
Definition core.hpp:472
GECODE_VTABLE_EXPORT
#define GECODE_VTABLE_EXPORT
Definition support.hh:72