Generated on Thu Mar 22 10:39:59 2012 for Gecode by doxygen 1.6.3

Gecode::MiniModel::OptimizeSpace< irt > Class Template Reference

Baseclass for cost-based optimization. More...

#include <minimodel.hh>

List of all members.

Public Member Functions

 OptimizeSpace (void)
 Default constructor.
 OptimizeSpace (bool share, OptimizeSpace &s)
 Constructor for cloning.
virtual void constrain (const Space &best)
 Member function constraining according to cost.
virtual IntVar cost (void) const =0
 Return variable with current cost.

Detailed Description

template<IntRelType irt>
class Gecode::MiniModel::OptimizeSpace< irt >

Baseclass for cost-based optimization.

Definition at line 1841 of file minimodel.hh.


Constructor & Destructor Documentation

template<IntRelType irt>
Gecode::MiniModel::OptimizeSpace< irt >::OptimizeSpace ( void   )  [inline]

Default constructor.

Definition at line 42 of file optimize.hpp.

template<IntRelType irt>
Gecode::MiniModel::OptimizeSpace< irt >::OptimizeSpace ( bool  share,
OptimizeSpace< irt > &  s 
) [inline]

Constructor for cloning.

Definition at line 46 of file optimize.hpp.


Member Function Documentation

template<IntRelType irt>
void Gecode::MiniModel::OptimizeSpace< irt >::constrain ( const Space best  )  [inline, virtual]

Member function constraining according to cost.

Reimplemented from Gecode::Space.

Definition at line 51 of file optimize.hpp.

template<IntRelType irt>
virtual IntVar Gecode::MiniModel::OptimizeSpace< irt >::cost ( void   )  const [pure virtual]

Return variable with current cost.


The documentation for this class was generated from the following files: