I suspect you may have some modified MATPOWER files in your MATLAB path or else some files from different versions of MATPOWER or something. I suggest trying the following:
- Delete MATPOWER - Remove all MATPOWER related paths from your MATLAB path. - Reinstall MATPOWER 7.1 from scratch, as described here<https://matpower.org/about/get-started/>. If that doesn’t work, please send me (off-list is fine) the output of the following commands ... mpver path … and we will get it figured out. Ray On Mar 11, 2021, at 9:38 PM, [email protected]<mailto:[email protected]> wrote: Hi Prof.Ray and other dears I have a question when installling matpower 7.1. to MATLAB R2020a. After running 'install_matpower.m', and modifying the MATLAB path, I receive the following error after running 'test_matpower.m'. t_test_fcns.............ok t_have_feature..........ok t_mplinsolve............ok (6 of 66 skipped) t_mips..................ok t_mips_pardiso..........ok (60 of 60 skipped) t_qps_mips..............ok t_have_fcn..............ok t_nested_struct_copy....ok t_nleqs_master..........ok (30 of 150 skipped) t_qps_master..............ok (252 of 432 skipped) t_miqps_master..........ok (178 of 288 skipped) t_nlps_master...........ok (108 of 540 skipped) t_opt_model.............Error using opt_model/add_lin_constraint (line 81) @opt_model/add_lin_constraint: sizes of A, l and u must match. Error in t_opt_model (line 402) om.add_lin_constraint('mylin', {i, j}, A, l, u, vs); Error in t_run_tests (line 61) feval( test_names{k}, ~verbose ); Error in test_matpower (line 173) all_ok = t_run_tests( tests, verbose ); Could you please help me to fix the error? Best regards --------------------------------------------------------------------- Yue Yu School of Electrical Engineering, Southeast University Nanjing, Jiangsu, China ---------------------------------------------------------------------
