Need help with modelling . Topic : Mobile energy storage in distribution.

Hello i am trying to model a 15-bus distribution network with mobile storage units . It’s a minlp problem . In s1 scenario we have normal operation and in s2 scenario an outage occurs. There are some outages which give me good results but some other don’t. I need help to improve my code. I can explain anything you may not understand in my code.
Emergency and Normal operation.gms (9.61 KB)

I doubt that you will find help this way. Your chances to get help will be much better if you follow the forum rules.

Fred