| 82 | } |
| 83 | |
| 84 | OptimizationAlgorithm* OptimizationAlgorithmFactory::construct(const std::string& name, OptimizationAlgorithmProperty& solverProperty) const |
| 85 | { |
| 86 | CreatorList::const_iterator foundIt = findSolver(name); |
| 87 | if (foundIt != _creator.end()) { |
| 88 | solverProperty = (*foundIt)->property(); |
| 89 | return (*foundIt)->construct(); |
| 90 | } |
| 91 | cerr << "SOLVER FACTORY WARNING: Unable to create solver " << name << endl; |
| 92 | return 0; |
| 93 | } |
| 94 | |
| 95 | void OptimizationAlgorithmFactory::destroy() |
| 96 | { |
nothing calls this directly
no outgoing calls
no test coverage detected