I am using python as a interface for Dlg SILENT PowerFactory. I have to do some simulations on power system network (grid) using python. But in my algorithm at some point I want to use simplex algorithm with mixed integer linear programming (Matlab function :-intlinprog) which is only available in Matlab. I have already installed the matlab.engine and i can access the .m scripts.

Now i need a small example how can I pass my variable values or array data to matlab ? and then after using the intlinprog function of matlab with this values, how can I get back the results in python?

any suggestions would be appreciated

Thank you in advance :)

Similar questions and discussions