NOMAD Source
Version 4.0.0 Beta
|
#include <CacheInterface.hpp>
Public Member Functions | |
CacheInterface (const Step *step) | |
Constructor. More... | |
size_t | findBestFeas (std::vector< EvalPoint > &evalPointList, const Point &fixedVariable=Point()) const |
Find best feasible(s) in cache. More... | |
size_t | findBestInf (std::vector< EvalPoint > &evalPointList, const Double &hMax=INF, const Point &fixedVariable=Point()) const |
Find best infeasible(s) in cache. More... | |
bool | smartInsert (const EvalPoint &evalPoint, const short maxNumberEval=1) |
Insert a full dimension point. More... | |
size_t | find (const Point x, EvalPoint &evalPoint) |
Find a full dimension point in cache. More... | |
Private Member Functions | |
void | init () |
Helper for constructor. More... | |
Static Private Member Functions | |
static void | convertPointListToSub (std::vector< EvalPoint > &evalPointList, const Point &fixedVariable) |
Helper for find functions. More... | |
Private Attributes | |
const Step * | _step |
Step that uses the Cache. More... | |
Used by algorithm and step classes. The CacheInterface takes care of converting points from subproblems to full dimension before adding them to the cache, and from full dimension to subproblems when retrieving them from the cache.
Definition at line 18 of file CacheInterface.hpp.
|
inlineexplicit |
Constructor.
step | The step using this CacheInterface |
Definition at line 29 of file CacheInterface.hpp.
|
staticprivate |
Helper for find functions.
Find a full dimension point in cache.
The full dimension point is reconstructed from step fixed variables information.
size_t CacheInterface::findBestFeas | ( | std::vector< EvalPoint > & | evalPointList, |
const Point & | fixedVariable = Point() |
||
) | const |
Find best feasible(s) in cache.
evalPointList | The returned evaluation points – OUT. |
fixedVariable | Definition of fixed variables – IN. |
size_t CacheInterface::findBestInf | ( | std::vector< EvalPoint > & | evalPointList, |
const Double & | hMax = INF , |
||
const Point & | fixedVariable = Point() |
||
) | const |
Find best infeasible(s) in cache.
evalPointList | The returned evaluation points – OUT. |
fixedVariable | Definition of fixed variables – IN. |
|
private |
Helper for constructor.
bool CacheInterface::smartInsert | ( | const EvalPoint & | evalPoint, |
const short | maxNumberEval = 1 |
||
) |
Insert a full dimension point.
The full dimension point is reconstructed from step fixed variables information.
|
private |
Step that uses the Cache.
Definition at line 22 of file CacheInterface.hpp.