Optimizer.h File Reference

#include "Input.h"
#include "Params.h"
#include "util/Exception.h"
#include <vector>
#include <iostream>
#include <cmath>

Include dependency graph for Optimizer.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Bin
 A Bin is a collection of items/files (a "volume"). More...
class  BinSet
 A set of bins. More...
class  Optimizer
 Base class for the search algorithms. More...

Defines

#define ROUND(x)   (x < 0 ? std::ceil( (x) - 0.5 ) : std::floor( (x) + 0.5 ))
 Round a given float number.

Functions

static bool AlmostEqual (double u, double v)
 Compare two double considering the not exact float point representation.
std::ostream & operator<< (std::ostream &s, const Optimizer &optimizer)

Variables

const Params::Size_t EPSILON = 0.000001


Define Documentation

#define ROUND (  )     (x < 0 ? std::ceil( (x) - 0.5 ) : std::floor( (x) + 0.5 ))

Round a given float number.

Referenced by Optimizer::Optimizer().


Function Documentation

static bool AlmostEqual ( double  u,
double  v 
) [static]

Compare two double considering the not exact float point representation.

References EPSILON.

Referenced by Bin::operator==(), and Individual::operator==().

std::ostream& operator<< ( std::ostream &  s,
const Optimizer optimizer 
) [inline]

References Optimizer::Write().


Variable Documentation

const Params::Size_t EPSILON = 0.000001