Generated on Fri Mar 20 15:56:49 2015 for Gecode by doxygen 1.6.3

Gecode::FloatMaximizeSpace Class Reference
[Support for cost-based optimization]

Class for maximizing float cost. More...

#include <minimodel.hh>

List of all members.

Public Member Functions

 FloatMaximizeSpace (FloatNum s=0.0)
 Constructor with step s.
 FloatMaximizeSpace (bool share, FloatMaximizeSpace &s)
 Constructor for cloning.
virtual void constrain (const Space &best)
 Member function constraining according to cost.
virtual FloatVar cost (void) const =0
 Return variable with current cost.

Protected Attributes

FloatNum step
 Step by which a next solution has to have lower cost.

Detailed Description

Class for maximizing float cost.

The class supports using a step value step that will make sure that better solutions must be better by at least the value of step.

Definition at line 2286 of file minimodel.hh.


Constructor & Destructor Documentation

Gecode::FloatMaximizeSpace::FloatMaximizeSpace ( FloatNum  s = 0.0  )  [inline]

Constructor with step s.

Definition at line 69 of file optimize.hpp.

Gecode::FloatMaximizeSpace::FloatMaximizeSpace ( bool  share,
FloatMaximizeSpace s 
) [inline]

Constructor for cloning.

Definition at line 73 of file optimize.hpp.


Member Function Documentation

void Gecode::FloatMaximizeSpace::constrain ( const Space best  )  [virtual]

Member function constraining according to cost.

Reimplemented from Gecode::Space.

Definition at line 75 of file optimize.cpp.

virtual FloatVar Gecode::FloatMaximizeSpace::cost ( void   )  const [pure virtual]

Return variable with current cost.


Member Data Documentation

Step by which a next solution has to have lower cost.

Definition at line 2289 of file minimodel.hh.


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