I reinstalled matpower and TSPOPF and now am getting the errors: >> runopf(mpd,mpopt) Unrecognized field name "pdipm".
Error in opf_setup (line 349) if (strcmp(alg, 'PDIPM') && mpopt.pdipm.step_control) || strcmp(alg, 'TRALM') Error in opf (line 225) om = opf_setup(mpc, mpopt); Error in runopf (line 75) [r, success] = opf(casedata, mpopt); Which I don’t know how to interpret. Thanks, Ivy From: [email protected] <[email protected]> On Behalf Of Ray Daniel Zimmerman Sent: Tuesday, June 21, 2022 3:33 PM To: MATPOWER-L <[email protected]> Subject: [EXTERNAL] Re: TSPOPF PDIPM AC solver not a valid value That error message is very strange. Are you sure you are using straight, single-quotes around the string arguments to mpoption? Like this ... mpopt = mpoption('opf.ac.solver','PDIPM') If so, I’d try reinstalling MATPOWER and TSPOPF and trying again. Ray On Jun 21, 2022, at 4:22 PM, Rachael I. Seidel <[email protected]<mailto:[email protected]>> wrote: Hi All, I downloaded the TSPOPF package for MATPOWER about a week ago and I’ve been having trouble getting it to solve even example cases. I configure by doing “mpd = loadcase(case118)” , “mpopt = mpoption(‘opf.ac.solver’,’PDIPM’)”, and run with “runopf(mpd,mpopt)” which always gives me the error “tspopf_solver.m: ‘MP0OPT.OPF.AC.SOLVER’ is not a valid value for MPOPT.opf.ac.solver” (among others). The same method works for similar packages such as BPMPD. My suspicion is that there is some sort of issue with tspopf ‘s installation but I’m unsure what the issue could be. Here is the entire list of errors: >> runopf(mpd,mpopt) MATPOWER Version 7.1, 08-Oct-2020 -- AC Optimal Power Flow AC OPF formulation: polar voltages, power balance eqns Error using tspopf_solver (line 256) tspopf_solver.m: 'MP0OPT.OPF.AC.SOLVER' is not a valid value for MPOPT.opf.ac.solver Error in opf_execute (line 100) [results, success, raw] = tspopf_solver(om, mpopt); Error in opf (line 232) [results, success, raw] = opf_execute(om, mpopt); Error in runopf (line 75) [r, success] = opf(casedata, mpopt); Any advice would be appreciated. Thanks, Ivy Seidel
