After exploration and investigation, it is regrettable that MATLAB currently cannot effectively pass the handle of the optimization objective function to the Optuna framework, especially for complex objective functions that may involve passing extra parameter data. However, for passing ordinary general data, most built-in types can be smoothly exchanged between MATLAB and Python.
I believe that in the future, MATHWORKS will enhance considerations in this area!
- Statistics and Machine Learning Toolbox™
- Global Optimization Toolbox™