Generated on Thu Apr 11 13:59:49 2019 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 (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 2471 of file minimodel.hh.


Constructor & Destructor Documentation

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

Constructor with step s.

Definition at line 80 of file optimize.hpp.

Gecode::FloatMaximizeSpace::FloatMaximizeSpace ( FloatMaximizeSpace s  )  [inline]

Constructor for cloning.

Definition at line 84 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 97 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 2474 of file minimodel.hh.


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