opt_factory module¶
A factory to execute optimization algorithms from their name.
- class gemseo.algos.opt.opt_factory.OptimizersFactory[source]¶
Bases:
DriverFactory
Optimization libraries factory, see DriverFactory.
Test and import optimization library if it is available.
- create(name)¶
Create a driver library from an algorithm name or a library name.
- execute(problem, algo_name, **options)¶
Execute a problem with an algorithm.
- Parameters:
problem (OptimizationProblem) – The problem to execute.
algo_name (str) – The name of the algorithm.
**options (Any) – The options of the algorithm.
- Returns:
The optimization result.
- Return type:
- is_available(name)¶
Check the availability of a library name or algorithm name.