Run time error in execution of MAIN_Unbalanced_OPF_RUN.py

104 views
Skip to first unread message

Arpit Kumar

unread,
Feb 3, 2021, 5:49:20 AM2/3/21
to Open-DSOPF
Dear Sir,
I installed the opendss and and ANACONDA. Also checked the Test_OpenDSS.py and Test_Pyomo.py given in tutorial section. I am facing run time error when executting the MAIN_Unbalanced_OPF_RUN.py  file. (Please find the attached file for yoyr reference)

Kindly suggest.
Screenshot (91).png

valentin...@gmail.com

unread,
Feb 3, 2021, 5:55:54 AM2/3/21
to Open-DSOPF
Dear Kumara,

If you check on the error message "attempting to use an unavailable solver", that states that you do not have Knitro installed (Knitro requires a license).

In the tutorial folder, there is a pdf that explains how to use IPOPT (you need to select it as the solver in MAIN_Unbalanced_OPF_RUN.py). 

IPOPT is open source but as I mentioned in the pdf, it is not the best solver for every problem. You may want to get a more powerful one such as Knitro (depending on what you want to solve). I think that Knitro has a trial period of a month if you want to give it a try.

Best regards,
Valentin


Ingrid Munné Collado

unread,
May 30, 2021, 1:17:53 PM5/30/21
to Open-DSOPF
Hello Kumara, Valentin,

Just in case it might help someone. Even if you download knitro you need to install the license, but also download AMPL and install the licence in the AMPL folder, and create state variables on windows. Otherwise pyomo can't find the license for it.


BR,

íngrid
El dia dimecres, 3 de febrer de 2021 a les 11:55:54 UTC+1, valentin...@gmail.com va escriure:

valentin...@gmail.com

unread,
Jun 1, 2021, 5:37:51 AM6/1/21
to Open-DSOPF
Hi all,

Yes, you need to install Knitro first (follow their instructions). In my particular case, I did not need to create state variables on Windows. Python identified it directly.

Best regards

Reply all
Reply to author
Forward
0 new messages