Hello Profesor Ray, Thank you so much. It worked, Everything is fine now.
Many thanks, Nadeem <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon> Virus-free. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> On Wed, Jun 2, 2021 at 9:00 AM Ray Daniel Zimmerman <r...@cornell.edu> wrote: > > Hi Nadeem, > > Based on the mskoptimset error, it appears to be an issue with MOSEK. Did > you also recently install or update MOSEK? > > My guess would be that it is related to the Optimization Toolbox > replacement functions (in this case probably linprog() or quadprog()) > that are included with MOSEK. Inside the > <MOSEK_INSTALL_PATH>/mosek/9.2/toolbox/r2015a directory that you add to > your MATLAB path to install the MATLAB interface for MOSEK, there are a > number of additional M-files that override some of MATLAB’s Optimization > Toolbox functions. I suspect they are not all 100% compatible with the > Optimization Toolbox and when MATPOWER tries to test the Optimization > Toolbox it is running into an error. > > When I install MOSEK, I always move these files out of my MATLAB path so > that I can still use the original Optimization Toolbox calls if I want. > I’ll call MOSEK explicitly if I want MOSEK. So, on my Mac, I do the > following to move those files into a new sub-directory called > ot-replacements where they won’t be seen by MATLAB … > > cd /usr/local/mosek/9.2/toolbox/r2015a > mkdir ot-replacements > mv intlinprog.m linprog.m lsqlin.m lsqnonneg.m quadprog.m > ot-replacements > > I suspect if you do the equivalent on Windows to remove those files, then > restart MATLAB, things should work fine. If you still encounter the error, > please try running … > > t_qps_master > > … directly from the command-line so I can see where the error is happening. > > Ray > > > > On Jun 1, 2021, at 10:54 AM, nadeem khan <nkme...@gmail.com> wrote: > > Hi all, > > I was using matpower6.1 for quite a while, now I was trying to update it > and install matpower7.1 version, but I am unable to install it and it gives > me the following error, ( please see attached files, error screenshot, > mpver output, and paths output). I have removed the previous version also > and tried to install matpower7.1 from scratch but it is still giving me > error. Any suggestion and help will be much appreciated. > > Many thanks, > Nadeem > > <error.png><mpver.png><paths.png> > > >