Help!How to remove old versions of Mosek?

Hi there,
I want to use the latest version of the Mosek solver in CVX, but the current version is 9.1.9.
1

I have already installed the latest version of Mosek.
2

How can I use the latest version of Mosek?

You don’t have to remove anything. If you added the new Mosek with addpath and later run cvx_setup then you will see it, for example:

5 solvers initialized (* = default):
    Mosek     9.1.9      {cvx}/mosek/a64
    Mosek_2   9.1.9      /home/miuser/tools/mosek/10.1/toolbox/r2017a
    Mosek_3   9.1.9      /home/miuser/tools/mosek/10.1/toolbox/r2017a
 *  SDPT3     4.0        {cvx}/sdpt3
    SeDuMi    1.3.4      {cvx}/sedumi

Note that CVX will still write 9.1.9 but you don’t have to worry about that, that is a bug. You should just look if cvx_setup shows the correct paths and then choose that solver.

Thanks a lot! This is really helpful for me, a novice who has just learned CVX. I have updated the latest Mosek, and I would like to ask what is the difference between Mosek_ 2 and Mosek_3?

I never figured that out. Some quirk in the way CVX detects things.

got it, thanks a lot!