Describe the bug
Module import order causes MltplDsptchFld error.
To Reproduce
By having an optimization problem defined, if import packages as follows:
import optimize4
import meshgen
the following error is thrown:
Error 'MltplDsptchFld': Multiple dispatch could not find an implementation that matches these arguments
Whereas if you have
import meshgen
import optimize4
no error is thrown.
Expected behavior
No error, regardless of import order.
Additional context
I suspect this is because meshgen itself is solving an optimization problem and it's making use of the old optimize module.