I actually got it figured out, I had matpower in my path twice (among other 
things).

Thanks for your help, It’s working great now.
Ivy Seidel

From: [email protected] 
<[email protected]> On Behalf Of Ray Daniel Zimmerman
Sent: Thursday, June 30, 2022 1:16 PM
To: MATPOWER-L <[email protected]>
Subject: Re: [EXTERNAL] TSPOPF PDIPM AC solver not a valid value

Sorry for the delay in responding …

When you type mpver, does it show PDIPM as being installed? If not, be sure to 
include the TSPOPF directory in your Matlab path.

    Ray



On Jun 22, 2022, at 10:25 AM, Rachael I. Seidel 
<[email protected]<mailto:[email protected]>> wrote:

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]<mailto:[email protected]>
 
<[email protected]<mailto:[email protected]>>
 On Behalf Of Ray Daniel Zimmerman
Sent: Tuesday, June 21, 2022 3:33 PM
To: MATPOWER-L <[email protected]<mailto:[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


Reply via email to