I have prepared microgrid model in Modelica. Prepared Python TCP Server. and wrote code to do optimization calculation in python to be done in Gurobi.
Problem is I am not able to force gurobi to calculate variables from Modelica, instead I need to define new varibles values in python.
I want gurobi to take varibles from modelica simulation result to do optimization.
System is working in two parts. (1) Modelica and Python Server and (2) Python and Gurobi. Both are working with different varibales values.
How can I call values if variables from Modelica to gurobi calculation.?
Thank you.