driver_factory module¶
Abstract factory to create drivers.
- class gemseo.algos.driver_factory.DriverFactory(driver_lib_class, driver_package)[source]¶
Bases:
object
Base class for definition of optimization and/or DOE factory.
Automates the creation of library interfaces given a name of the algorithm.
Initializes the factory: scans the directories to search for subclasses of DriverLib.
Searches subclasses of driver_lib_class in “GEMSEO_PATH” and driver_package.
- execute(problem, algo_name, **options)[source]¶
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:
Examples using DriverFactory¶
Pareto front on Binh and Korn problem
Pareto front on Binh and Korn problem
Analytical test case # 2
Analytical test case # 3
Optimal LHS vs LHS