Dear prof. Johan,
Instead of finding optimal energy flow, I am supplying some variables to find an energy flow solution. In other words, I want to solve n nonlinear equations by fixing some variables, then we obtain n equations in n variables. However, using MATLAB takes a long time, especially, this problem is solved several times using the reinforcement learning approach.
example:
solve f(x=x0 , y) = 0 --> using 'fsolve' with trust-region-dogleg algorithm, or Newton method ('levenberg-marquardt'). I have derived the Jacobian Matrix.
My question is
can we use YALMIP to solve nonlinear equations? Or it is meaningless. As you know nonlinear equations may have more than one solution, so it is preferred (not necessary) to find the solution with higher voltages and gas pressures.
For example: optimize(f(x=x0, y) == 0, cost(x=x0, y)) ---> using knitro or fmincons
Another question:
The problem can be approximated as differential-algebraic equations and DC power flow, so linear equations are driven. Can we use a linear solver? The problem should have a unique solution for "A*x0 + B*y + C*s == 0", where s are auxiliary variables, y are the n main variables, the number of linear equations m >> n.
Many thanks for your feedback. I am appreciating your leading efforts.