4 #include "../Math/RNG.hpp"
5 #include "../Param/CacheParameters.hpp"
10 void NOMAD::CacheParameters::init()
16 #include "../Attribute/cacheAttributesDefinition.hpp"
19 catch ( NOMAD::Exception & e)
21 throw NOMAD::Exception(__FILE__,__LINE__,
"Failed registering an attribute");
28 void NOMAD::CacheParameters::checkAndComply( std::shared_ptr<NOMAD::RunParameters> runParams )
47 auto problemDir = runParams->getAttributeValue<
string>(
"PROBLEM_DIR",
false);
48 std::string cacheFileName = getAttributeValueProtected<std::string>(
"CACHE_FILE",
false);
49 if (!cacheFileName.empty())
52 setAttributeValue(
"CACHE_FILE", cacheFileName);
void completeFileName(std::string &filename, const std::string &problemDir, bool addSeed=false, int seed=0)