Generated on Thu Apr 11 13:59:49 2019 for Gecode by doxygen 1.6.3

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

Class for minimizing float cost. More...

#include <minimodel.hh>

List of all members.

Public Member Functions

 FloatMinimizeSpace (FloatNum s=0.0)
 Constructor with step s.
 FloatMinimizeSpace (FloatMinimizeSpace &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 minimizing 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 2446 of file minimodel.hh.


Constructor & Destructor Documentation

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

Constructor with step s.

Definition at line 71 of file optimize.hpp.

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

Constructor for cloning.

Definition at line 75 of file optimize.hpp.


Member Function Documentation

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

Member function constraining according to cost.

Reimplemented from Gecode::Space.

Definition at line 87 of file optimize.cpp.

virtual FloatVar Gecode::FloatMinimizeSpace::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 2449 of file minimodel.hh.


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