[Python] Python pybamm and MATLAB/Simulink integration

Discussão em 'Python' iniciado por Stack, Abril 7, 2025.

  1. Stack

    Stack Membro Participativo

    I have a battery model written in python (py 3.11) with pybamm 24.11.2 and casadi solver 3.6.7. It is a function structure. I want to call this function, use this model in simulink in real time. I want to dynamically run the current dependent pybamm model. Websearch and other attempts did not work. How can I integrate simulink and pybamm? Any kind of help and suggestion woulb be valuable. Thank you

    First I tried to run python code in MATLAB. Imported my virtual env in to matlab, added casadi solver path for windows. Then error says "Cannot load shared library 'casadi_rootfinder_newton.dll'"

    And stop execution with error that "Unable to resolve the 'your python file' "

    Continue reading...

Compartilhe esta Página