I have downloaded CVX 3 beta for using SCS solver because the solvers mosek, sedumi, and sdpt3 do not give me the correct answer. They actually solve my problem but when I check some of the constraints, I see they are violated. I have read in one of the topics here that SCS may be a better option for avoiding this violation. However, I do not know how I can include this solver to the solver list. When I write the command cvx_solver, the table only includes the three aforementioned solvers and SCS is not there. I would appreciate your help.
You need to have SCS running under MATLAB. Then reinstall CVX 3.0beta, and it should be added to the CVX solver list.
if you provide full reproducible code, show all solver/CVX output, and show what the amounts of the constraints violations are, readers might be able to provide advice on solving your actual problem. You have to expect violations at solver feasibility tolerance level, for instance 1e-8.
Thank you very much for your prompt reply Mark.
You are completely right about providing the reproducible code. However, it is not a single CVX code. It is a function whose output is the optimized value of the CVX code and its inputs are taken from another functions.
I also have read in some of your comments in other topics that CVXQUAD is a better option for solving logarithmic problems because it does not use the unreliable successive approximation method. I have installed CVXQUAD and modified my codes based on the functions defined in it. However, when running the code, I still see the message “Successive approximation method to be employed.” and the results from mosek, sdpt3, and sedumi are so much different. Is there anything I need to do to ensure successive approximation is not used for solving the problem?
Actually I am trying different ways to get a reliable output for my problem, but no success so far.
Mark, I found out that I cannot use SCS because my MATLAB version is 2014a and a weired compilation error comes up when I try to run the make_scs command.
I just want to use some method other than successive approximation to get a more accurate and reliable result for my problem. I am trying to use CVXQUAD but it still uses successive approximation. I followed your instructions in this topic to see how I can ensure Pade Approximant is used and not successive approximation. I replaced “log(cvx_expression)” with “-rel_entr(1,cvx_expresion)” but I get the following error :
What you should do is at least show all the solver/CVX output. It would be good to show your code.
Do NOT use CVX3.0beta with CVXQUAD (as mentioned in my post you linked). Use CVX2.1. If you still have difficulties, try running this (it is not using the successive approximation method, despite the WARNING).
Models involving “rel_entr” or other functions in the log, exp, and entropy
family are solved using an experimental successive approximation method.
This method is slower and less reliable than the method CVX employs for
other models. Please see the section of the user’s guide entitled
The successive approximation method
for more details about the approach, and for instructions on how to
suppress this warning message in the future.
Using Pade approximation for exponential
cone with parameters m=3, k=3
1 <= x <= 2
Calling SDPT3 4.0: 21 variables, 8 equality constraints
For improved efficiency, SDPT3 is solving the dual problem.
num. of constraints = 8
dim. of sdp var = 12, num. of sdp blk = 6
dim. of linear var = 3
SDPT3: Infeasible path-following algorithms
version predcorr gam expon scale_data
HKM 1 0.000 1 0
it pstep dstep pinfeas dinfeas gap prim-obj dual-obj cputime