error in testing matpower

25 views (last 30 days)
f4r3in
f4r3in on 12 Mar 2020
Commented: 佳鑫 on 29 Jul 2024
hi everyone, I want to install matpower 6.0 in my matlab 2019b but after I install it same as instruction I get errors in testing it.
when I write test_matpower in command window I recieve these errors.
please help me to install it successfully.
>> test_matpower
t_test_fcns.............ok
t_nested_struct_copy....ok
t_feval_w_path..........ok
t_mpoption..............ok
t_loadcase..............Error using save
Unable to write file t_mat9_opf.mat:
permission denied.
Error in t_loadcase (line 40)
eval(['save ' matfile '.mat baseMVA bus
gen branch areas gencost']);
Error in t_run_tests (line 58)
feval( test_names{k}, ~verbose );
Error in test_matpower (line 128)
t_run_tests( tests, verbose );

Answers (1)

f4r3in
f4r3in on 12 Mar 2020
I solve that problem by Running my Matlab as an administrator. (Run as Administrator Matlab)
but now I get new errors!
so please help me with these new errors!
>> test_matpower
t_test_fcns.................ok
t_nested_struct_copy........ok
t_feval_w_path..............ok
t_mpoption..................ok
t_loadcase..................ok
t_ext2int2ext...............ok
t_jacobian..................ok
t_hessian...................ok
t_margcost..................ok
t_totcost...................ok
t_modcost...................ok
t_hasPQcap..................ok
t_mplinsolve................ok (2 of 4 skipped)
t_mips......................ok
t_qps_matpower..............Error using mskoptimset (line 67)
Expected argument 2 to be a string parameter
name or an options structure
created with mskoptimset.
Error in linprog (line 138)
options =
mskoptimset(defaultopt,options);
Error in qps_ot (line 267)
linprog(c, Ai, bi, Ae, be, xmin,
xmax, x0, ot_opt);
Error in qps_matpower (line 258)
qps_ot(H, c, A, l, u, xmin, xmax,
x0, opt);
Error in t_qps_matpower (line 85)
[x, f, s, out, lam] = qps_matpower([],
c, A, l, u, xmin, [], [], opt);
Error in t_run_tests (line 58)
feval( test_names{k}, ~verbose );
Error in test_matpower (line 128)
t_run_tests( tests, verbose );
how can I solve it.
here are pictures of my errors :
  2 Comments
MohammadReza Jabbari (Jabari)
Hi. I have a same problem . Did you find any solution ?
佳鑫
佳鑫 on 29 Jul 2024
Hi. I have a same problem . Did you find any solution ?

Sign in to comment.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!