how can I solve this problem?

11 次查看(过去 30 天)
Mugabe Robert
Mugabe Robert 2018-12-27
移动Walter Roberson 2025-5-18
>> test_matpower
Undefined function or variable 'test_matpower'.

回答(3 个)

madhan ravi
madhan ravi 2018-12-27
编辑:madhan ravi 2018-12-27
There is no such in-built function as test_matpower. So probably you would have to define such a function or search in file exchange.

Chaman Dewangan
Chaman Dewangan 2020-4-22
移动:Walter Roberson 2025-5-18
Did you mean:
>> install_matpower
-------------------------------------------------------------------
MATPOWER Installation Options:
1. Do NOT modify the MATLAB path
(just generate the required ADDPATH commands)
2. DO modify the MATLAB path, but only temporarily
(you will have to do it again next time you run MATLAB)
3. DO modify the MATLAB path, and SAVE the updated path
(so you will not have to do it again next time you run MATLAB)
Please enter your selection [1, 2, 3] (default = 1) : 3
-------------------------------------------------------------------
Your MATLAB path will be updated using the following command:
addpath( ...
'C:\STUDY\SUCCESS\MATPOWER\matpower7.0\matpower7.0\lib', ...
'C:\STUDY\SUCCESS\MATPOWER\matpower7.0\matpower7.0\lib\t', ...
'C:\STUDY\SUCCESS\MATPOWER\matpower7.0\matpower7.0\data', ...
'C:\STUDY\SUCCESS\MATPOWER\matpower7.0\matpower7.0\mips\lib', ...
'C:\STUDY\SUCCESS\MATPOWER\matpower7.0\matpower7.0\mips\lib\t', ...
'C:\STUDY\SUCCESS\MATPOWER\matpower7.0\matpower7.0\most\lib', ...
'C:\STUDY\SUCCESS\MATPOWER\matpower7.0\matpower7.0\most\lib\t', ...
'C:\STUDY\SUCCESS\MATPOWER\matpower7.0\matpower7.0\mptest\lib', ...
'C:\STUDY\SUCCESS\MATPOWER\matpower7.0\matpower7.0\mptest\lib\t', ...
'C:\STUDY\SUCCESS\MATPOWER\matpower7.0\matpower7.0\extras\maxloadlim', ...
'C:\STUDY\SUCCESS\MATPOWER\matpower7.0\matpower7.0\extras\maxloadlim\tests', ...
'C:\STUDY\SUCCESS\MATPOWER\matpower7.0\matpower7.0\extras\maxloadlim\examples', ...
'C:\STUDY\SUCCESS\MATPOWER\matpower7.0\matpower7.0\extras\misc', ...
'C:\STUDY\SUCCESS\MATPOWER\matpower7.0\matpower7.0\extras\reduction', ...
'C:\STUDY\SUCCESS\MATPOWER\matpower7.0\matpower7.0\extras\sdp_pf', ...
'C:\STUDY\SUCCESS\MATPOWER\matpower7.0\matpower7.0\extras\se', ...
'C:\STUDY\SUCCESS\MATPOWER\matpower7.0\matpower7.0\extras\smartmarket', ...
'C:\STUDY\SUCCESS\MATPOWER\matpower7.0\matpower7.0\extras\state_estimator', ...
'C:\STUDY\SUCCESS\MATPOWER\matpower7.0\matpower7.0\extras\syngrid\lib', ...
'C:\STUDY\SUCCESS\MATPOWER\matpower7.0\matpower7.0\extras\syngrid\lib\t', ...
'-end' );
Hit any key to continue ...
Your MATLAB path has been updated.
-------------------------------------------------------------------
Your updated MATLAB path has been saved using SAVEPATH.
-------------------------------------------------------------------
Now that you have added the required directories to your MATLAB path
MATPOWER is installed and ready to use.
You may want to begin by typing: mpver
to see the list of installed MATPOWER related software versions.
Or to run the MATPOWER test suite to ensure everything is
working correctly, type: test_matpower
Would you like to run the MATPOWER tests now? [Y or N] (default = N) : Y
t_test_fcns.............ok
t_nested_struct_copy....ok
t_have_fcn..............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 (6 of 44 skipped)
t_mips..................ok
t_mips_pardiso..........ok (60 of 60 skipped)
t_qps_matpower..........ok (252 of 360 skipped)
t_miqps_matpower........ok (226 of 240 skipped)
t_pf....................ok
t_pf_radial.............ok
t_cpf...................ok
t_islands...............ok
t_opf_model.............ok
t_opf_model_legacy......ok
t_opf_default...........ok
t_opf_fmincon...........ok (62 of 864 skipped)
t_opf_mips..............ok (278 of 1296 skipped)
t_opf_dc_mips...........ok
t_opf_dc_mips_sc........ok
t_opf_dc_ot.............ok
t_opf_userfcns..........ok
t_opf_softlims..........ok
t_runopf_w_res..........ok
t_dcline................ok
t_get_losses............ok
t_load2disp.............ok
t_makePTDF..............ok
t_makeLODF..............ok
t_printpf...............ok
t_vdep_load.............ok
t_total_load............ok
t_scale_load............ok
t_apply_changes.........ok
t_psse..................ok
t_off2case..............ok
t_auction_mips..........ok
t_runmarket.............ok
All tests successful (9142 passed, 884 skipped of 10026)
Elapsed time 91.89 seconds.
>>

Enes
Enes 2025-5-18
you must set path from matlab

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by