38 namespace Gecode {
namespace MiniModel {
40 template<IntRelType irt>
44 template<IntRelType irt>
49 template<IntRelType irt>
56 rel(*
this, cost(), irt, best->
cost().val());
59 #ifdef GECODE_HAS_FLOAT_VARS
61 template<FloatRelType frt>
65 template<FloatRelType frt>
71 template<FloatRelType frt>
78 rel(*
this, cost(), frt, best->
cost().val());
virtual void constrain(const Space &best)
Member function constraining according to cost.
Baseclass for integer-based cost-based optimization.
FloatOptimizeSpace(void)
Default constructor.
Exception: dynamic cast failed
virtual void constrain(const Space &best)
Member function constraining according to cost.
Baseclass for float-based cost-based optimization.
virtual FloatVar cost(void) const =0
Return variable with current cost.
void rel(Home home, FloatVar x0, FloatRelType frt, FloatVal n)
Propagates .
IntOptimizeSpace(void)
Default constructor.
virtual IntVar cost(void) const =0
Return variable with current cost.
Gecode toplevel namespace