Hi Abudulla Ahmed,

The failures you are seeing are completely different from Jack's, so it’s best 
to start a new thread to avoid confusion. 

In your case, the cause of the test_most failure is clear from the error 
message. You have a promotional version of CPLEX installed that does not handle 
problems as large as the ones used by the MOST tests. I suggest you do the 
following before running the tests to tell MATPOWER that you don’t have a 
suitable version of CPLEX installed.

have_fcn('CPLEX', 0)

As for the t_qps_matpower failure when running test_matpower, that is more 
puzzling, since I am not able to reproduce the error using the same version of 
Matlab and Optimization Toolbox on my machines (Mac or Windows). Since you 
appear to have Gurobi installed, there’s likely no good reason for MATPOWER to 
need to use the Optimization Toolbox solvers, so disabling their use may be the 
best option if you can’t find another cause for the issue.

have_fcn('linprog', 0)
have_fcn('quadprog', 0)

— Ray



> On Nov 19, 2018, at 8:09 AM, abdulla ahmed <[email protected]> wrote:
> 
> hi
> this is the test of matpower
> 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..........Warning: LINPROG will ignore non-empty starting point 
> X0 
> > In linprog (line 114)
>   In qps_ot (line 266)
>   In qps_matpower (line 257)
>   In t_qps_matpower (line 85)
>   In t_run_tests (line 58)
>   In test_matpower (line 128) 
> Warning: LINPROG will ignore non-empty starting point X0 
> > In linprog (line 114)
>   In qps_ot (line 266)
>   In qps_matpower (line 257)
>   In t_qps_matpower (line 184)
>   In t_run_tests (line 58)
>   In test_matpower (line 128) 
> ok (180 of 360 skipped)
> t_miqps_matpower........Warning: LINPROG will ignore non-empty starting point 
> X0 
> > In linprog (line 114)
>   In miqps_ot (line 284)
>   In miqps_matpower (line 219)
>   In t_miqps_matpower (line 76)
>   In t_run_tests (line 58)
>   In test_matpower (line 128) 
> Warning: LINPROG will ignore non-empty starting point X0 
> > In linprog (line 114)
>   In miqps_ot (line 284)
>   In miqps_matpower (line 219)
>   In t_miqps_matpower (line 159)
>   In t_run_tests (line 58)
>   In test_matpower (line 128) 
> No appropriate method, property, or field 'MaxFeasiblePoints' for class 
> 'optim.options.Intlinprog'.
> 
> Error in intlinprog (line 155)
>     params.SolutionLimit = options.MaxFeasiblePoints;
> 
> Error in miqps_ot (line 280)
>         [x, f, eflag, output] = ...
> 
> Error in miqps_matpower (line 219)
>         [x, f, eflag, output, lambda] = ...
> 
> Error in t_miqps_matpower (line 171)
>         [x, f, s, out, lam] = miqps_matpower(p);
> 
> Error in t_run_tests (line 58)
>     feval( test_names{k}, ~verbose );
> 
> Error in test_matpower (line 128)
> t_run_tests( tests, verbose );
>  
> >> 
> 
> 
> 
> 
> this the test of MOST
> 
> 
> >> test_most
> t_most_3b_1_1_0........ok
> t_most_3b_3_1_0........ok
> t_most_30b_1_1_0.......ok
> t_most_30b_3_1_0.......ok
> t_most_fixed_res.......ok
> t_most_w_ds............Error using cplexqp (line 247)
> CPLEX Error  1016: Promotional version. Problem size limits exceeded.
> 
> 
> Error in qps_cplex (line 259)
>     [x, f, eflag, output, lam] = ...
> 
> Error in qps_matpower (line 230)
>         [x, f, eflag, output, lambda] = ...
> 
> Error in most (line 2076)
>     [mdo.QP.x, mdo.QP.f, mdo.QP.exitflag, mdo.QP.output, ...
> 
> Error in t_most_w_ds (line 227)
>     mdo = most(mdi, mpopt);
> 
> Error in t_run_tests (line 58)
>     feval( test_names{k}, ~verbose );
> 
> Error in test_most (line 47)
> t_run_tests( tests, verbose );
> 
> 
> THIS THE mpver
> 
> 
> >> mpver
> 
> MATPOWER               Version 6.0        16-Dec-2016
> MATLAB                 Version 8.5        09-Feb-2015   Release: (R2015a)  
> Optimization Toolbox   Version 7.2        09-Feb-2015   Release: (R2015a)  
> MIPS                   Version 1.2.2      16-Dec-2016
> MOST                   Version 1.0        16-Dec-2016
> SDP_PF                 -- not installed --
> YALMIP                 Version                       
> BPMPD_MEX              -- not installed --
> CLP                    -- not installed --
> CPLEX                  Version 12.8.0.0              
> GLPK                   -- not installed --
> Gurobi                 Version 8.1.0                 
> IPOPT                  -- not installed --
> KNITRO                 -- not installed --
> MINOPF                 -- not installed --
> MOSEK                  -- not installed --
> PARDISO                -- not installed --
> PDIPMOPF               -- not installed --
> SCPDIPMOPF             -- not installed --
> SDPT3                  -- not installed --
> SeDuMi                 -- not installed --
> TRALMOPF               -- not installed --
> Architecture:          PCWIN64
> 
>   MATPOWER 6.0 is distributed under the 3-clause BSD License.
>   Please see the LICENSE file for details.
> 
> On Mon, Nov 19, 2018 at 7:32 PM Jack Heron <[email protected] 
> <mailto:[email protected]>> wrote:
> 
> Hi,
> 
> I have an update. This time I let ’test_most’ run for almost 45 minutes, and 
> it finally came up with the following warnings and error message. Does anyone 
> know what this could be?
> 
> Any help would be much appreciated.
> 
> Thanks,
> 
> Jack
> 
> >> test_most
> t_most_3b_1_1_0........ok
> t_most_3b_3_1_0........ok
> t_most_30b_1_1_0.......ok
> t_most_30b_3_1_0.......ok
> t_most_fixed_res.......ok
> t_most_30b_1_1_0_uc....ok
> t_most_uc..............ok (156 of 260 skipped)
> t_most_suc.............ok (111 of 185 skipped)
> t_most_w_ds............> In mplinsolve (line 70)
>   In mips (line 467)
>   In qps_mips (line 180)
>   In qps_matpower (line 252)
>   In most (line 2029)
>   In t_most_w_ds (line 247)
>   In t_run_tests (line 61)
>   In test_most (line 57) 
> Warning: Matrix is close to singular or badly scaled. Results may be 
> inaccurate. RCOND =  1.450050e-16. 
> > In mplinsolve (line 70)
>   In mips (line 467)
>   In qps_mips (line 180)
>   In qps_matpower (line 252)
>   In most (line 2029)
>   In t_most_w_ds (line 247)
>   In t_run_tests (line 61)
>   In test_most (line 57) 
> Warning: Matrix is close to singular or badly scaled. Results may be 
> inaccurate. RCOND =  1.437052e-16. 
> > In mplinsolve (line 70)
>   In mips (line 467)
>   In qps_mips (line 180)
>   In qps_matpower (line 252)
>   In most (line 2029)
>   In t_most_w_ds (line 247)
>   In t_run_tests (line 61)
>   In test_most (line 57) 
> Warning: Matrix is close to singular or badly scaled. Results may be 
> inaccurate. RCOND =  1.169742e-19. 
> > In mplinsolve (line 70)
>   In mips (line 467)
>   In qps_mips (line 180)
>   In qps_matpower (line 252)
>   In most (line 2029)
>   In t_most_w_ds (line 247)
>   In t_run_tests (line 61)
>   In test_most (line 57) 
> Warning: Matrix is close to singular or badly scaled. Results may be 
> inaccurate. RCOND =  6.418324e-28. 
> Reference to non-existent field 'Z'.
> 
> Error in t_most_w_ds (line 252)
>     t_is(mdo.results.Z, s.Z, 4, t);
> 
> Error in t_run_tests (line 61)
>     feval( test_names{k}, ~verbose );
> 
> Error in test_most (line 57)
> all_ok = t_run_tests( tests, verbose );
> 
> 
> 
> > On 16 Nov 2018, at 16:43, Jack Heron <[email protected] 
> > <mailto:[email protected]>> wrote:
> > 
> > Hi,
> > 
> > I have just now installed matpower. When I run ‘test_matpower' everything 
> > is OK. However when I then run ‘test_most’, the operation gets stuck and 
> > seems to go on indefinitely - until I’m forced to terminate execution.
> > 
> > I’ve tried several times, fresh install, etc. But it always gets stuck at 
> > the same place (’t_most_w_ds’). I have the latest version of Gurobi 
> > installed, and an older Matlab Optimisation toolbox.
> > 
> > Can anyone help? 
> > 
> > This is the command window text I’m faced with:
> > 
> >>> test_most
> > t_most_3b_1_1_0........ok
> > t_most_3b_3_1_0........ok
> > t_most_30b_1_1_0.......ok
> > t_most_30b_3_1_0.......ok
> > t_most_fixed_res.......ok
> > t_most_30b_1_1_0_uc....ok
> > t_most_uc..............ok (156 of 260 skipped)
> > t_most_suc.............ok (111 of 185 skipped)
> > t_most_w_ds............Operation terminated by user during mplinsolve (line 
> > 70)
> > 
> > 
> > In mips (line 467)
> >   dxdlam = mplinsolve([M dg; dg' sparse(neq, neq)], [-N; -g], 
> > opt.linsolver, mplinsolve_opt);
> > 
> > In qps_mips (line 180)
> > [x, f, eflag, output, lambda] = mips(p);
> > 
> > In qps_matpower (line 252)
> >           qps_mips(H, c, A, l, u, xmin, xmax, x0, mips_opt);
> > 
> > In most (line 2029)
> >           mdo.QP.lambda ] = qps_matpower( mdi.QP.H, mdi.QP.C, ...
> > 
> > In t_most_w_ds (line 247)
> >   mdo = most(mdi, mpopt);
> > 
> > In t_run_tests (line 61)
> >   feval( test_names{k}, ~verbose );
> > 
> > In test_most (line 57)
> > all_ok = t_run_tests( tests, verbose );
> > 
> > 
> > ————
> > 
> > This is my output to ‘mpver’ :
> > 
> >>> mpver
> > 
> > MATPOWER               Version 7.0b1      31-Oct-2018
> > MATLAB                 Version 9.1        25-Aug-2016   Release: (R2016b)  
> > Optimization Toolbox   Version 7.5        25-Aug-2016   Release: (R2016b)  
> > MIPS                   Version 1.3        30-Oct-2018
> > MOST                   Version 1.0.1      30-Oct-2018
> > SDP_PF                 -- not installed --
> > YALMIP                 -- not installed --
> > BPMPD_MEX              -- not installed --
> > CLP                    -- not installed --
> > CPLEX                  -- not installed --
> > GLPK                   -- not installed --
> > Gurobi                 Version                       
> > IPOPT                  -- not installed --
> > KNITRO                 -- not installed --
> > MINOPF                 -- not installed --
> > MOSEK                  -- not installed --
> > PARDISO                -- not installed --
> > PDIPMOPF               -- not installed --
> > SCPDIPMOPF             -- not installed --
> > SDPT3                  -- not installed --
> > SeDuMi                 -- not installed --
> > TRALMOPF               -- not installed --
> > Architecture:          MACI64
> > 
> >  MATPOWER 7.0b1 is distributed under the 3-clause BSD License.
> >  Please see the LICENSE file for details.
> > 
> > ————
> > 
> > I’m running MacOS Mojave version 10.14
> > 
> > Thanks,
> > 
> > Jack
> 
> 
> 

Reply via email to