Currently import cofi takes longer time than expected. The main cause should be:
In cofi/__init__.py:
from .base_problem import BaseProblem
In cofi/base_problem.py:
from .solvers import solvers_table
In cofi/solvers/__init__.py:
from .<solver_name> import <Solver>
Importing the solvers take time, as they load the underline packages and examine required/optional parameters on the fly.
We now want to optimise this by avoiding direct import of solvers from base_problem.py.
Side note: the reason why we import solvers from base_problem.py is that then we can suggest solvers based on information supplied. We need a workaround.
Currently
import cofi
takes longer time than expected. The main cause should be:In
cofi/__init__.py
:In
cofi/base_problem.py
:In
cofi/solvers/__init__.py
:Importing the solvers take time, as they load the underline packages and examine required/optional parameters on the fly.
We now want to optimise this by avoiding direct import of solvers from
base_problem.py
.Side note: the reason why we import solvers from
base_problem.py
is that then we can suggest solvers based on information supplied. We need a workaround.