Skip to content
Snippets Groups Projects
Commit c249194a authored by Zizhe Wang's avatar Zizhe Wang
Browse files

refactor dynamic import of algorithms

parent 6d587371
No related branches found
No related tags found
No related merge requests found
# (c) Zizhe Wang # Copyright (c) 2024 - Zizhe Wang
# https://zizhe.wang # https://zizhe.wang
############################################ #############################
# # # #
# INITIALIZATION LIBRARIES ANAD ALGORITHMS # # INITIALIZATION ALGORITHMS #
# # # #
############################################ #############################
import importlib import importlib
import pkgutil import pkgutil
from pymoo.algorithms import moo from pymoo.algorithms import moo
from pymoo.config import Config
Config.warnings['not_compiled'] = False
def initialize_algorithm(algorithm_name, pop_size=None): def initialize_algorithm(algorithm_name, pop_size=None):
# Dynamically import all modules in pymoo.algorithms.moo # Dynamically import all modules in pymoo.algorithms.moo
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment