本人要用matpower做作业
在matlab7.0里面添加了matpower的路径,用test_matpower
出现了很多报错,
>> test_matpower
t_loadcase..........ok
t_ext2int2ext.......ok
t_jacobian..........ok
t_hessian...........ok
t_totcost...........ok
t_modcost...........ok
t_hasPQcap..........ok
t_mips..............ok
t_qps_matpower......ok (180 of 288 skipped)
t_pf................ok
t_opf_fmincon.......??? Error using ==> qr
Too many output arguments.
Error in ==> optim\private\qpsub>eqnsolv at 823
[Qa,Ra,Ea]=qr(A(eqix,:));
Error in ==> optim\private\qpsub at 178
[Q,R,A,B,X,Z,how,ACTSET,ACTIND,ACTCNT,aix,eqix,neqcstr,ncstr, ...
Error in ==> optim\private\nlconst at 684
[SD,lambda,exitflagqp,outputqp,howqp,ACTIND] ...
Error in ==> fmincon at 498
[X,FVAL,lambda,EXITFLAG,OUTPUT,GRAD,HESSIAN]=...
Error in ==> fmincopf_solver at 172
[x, f, info, Output, Lambda] = ...
Error in ==> opf_execute at 141
[results, success, raw] = feval(solver, om, mpopt);
Error in ==> opf at 225
[results, success, raw] = opf_execute(om, mpopt);
Error in ==> runopf at 96
[r, success] = opf(casedata, mpopt);
Error in ==> t_opf_fmincon at 82
[baseMVA, bus, gen, gencost, branch, f, success, et] = runopf(casefile, mpopt);
Error in ==> t_run_tests at 79
feval( test_names{k}, ~verbose );
Error in ==> test_matpower at 135
t_run_tests( tests, verbose );
跪求大神指点怎么解决?在线等
在matlab7.0里面添加了matpower的路径,用test_matpower
出现了很多报错,
>> test_matpower
t_loadcase..........ok
t_ext2int2ext.......ok
t_jacobian..........ok
t_hessian...........ok
t_totcost...........ok
t_modcost...........ok
t_hasPQcap..........ok
t_mips..............ok
t_qps_matpower......ok (180 of 288 skipped)
t_pf................ok
t_opf_fmincon.......??? Error using ==> qr
Too many output arguments.
Error in ==> optim\private\qpsub>eqnsolv at 823
[Qa,Ra,Ea]=qr(A(eqix,:));
Error in ==> optim\private\qpsub at 178
[Q,R,A,B,X,Z,how,ACTSET,ACTIND,ACTCNT,aix,eqix,neqcstr,ncstr, ...
Error in ==> optim\private\nlconst at 684
[SD,lambda,exitflagqp,outputqp,howqp,ACTIND] ...
Error in ==> fmincon at 498
[X,FVAL,lambda,EXITFLAG,OUTPUT,GRAD,HESSIAN]=...
Error in ==> fmincopf_solver at 172
[x, f, info, Output, Lambda] = ...
Error in ==> opf_execute at 141
[results, success, raw] = feval(solver, om, mpopt);
Error in ==> opf at 225
[results, success, raw] = opf_execute(om, mpopt);
Error in ==> runopf at 96
[r, success] = opf(casedata, mpopt);
Error in ==> t_opf_fmincon at 82
[baseMVA, bus, gen, gencost, branch, f, success, et] = runopf(casefile, mpopt);
Error in ==> t_run_tests at 79
feval( test_names{k}, ~verbose );
Error in ==> test_matpower at 135
t_run_tests( tests, verbose );
跪求大神指点怎么解决?在线等