Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DCCP-Compatible Solvers #74

Open
aleolivero opened this issue Jan 28, 2022 · 5 comments
Open

DCCP-Compatible Solvers #74

aleolivero opened this issue Jan 28, 2022 · 5 comments

Comments

@aleolivero
Copy link

I'm new to optimization and above all, with DCP y DCCP,
I want to consult, what solvers are compatible with the DCCP rules, are all compatibles?

For example, I'am working in a problem where only Gurobi can find the solution, all other solvers fail at some point

And, the only contrains that made the problem DCCP is

Affine <= Convex

The rest of the problem is linear

With DCCP, some solver is more efficient than others? There a list with compatible solvers?

and the last question a solver Couenne can work with cvxpy and DCCP?

sorry if any question is dumb

@xinyueshen
Copy link
Member

Hi @aleolivero thank you for your interest in DCCP. For your problem, most of the solvers compatible with CVXPY should be compatible with DCCP, but it may depend on the convex function in the constraint Affine <= Convex. Numerical solver failures can happen, and some solvers may be more efficient than others depending on the specific problem, so the suggestion is that you try different solvers such as ECOS, SCS, OSQP, MOSEK, Gurobi, and see which one works the best numerically. Also, since the other part of your problem is linear, you may try setting the parameter tau to a larger value such as 1 by

problem.solve(method='dccp', tau=1)

It might give you a better performance numerically.

I think solver Couenne is independent of cvxpy and DCCP.

@aleolivero
Copy link
Author

Hi! @xinyueshen, thanks for your answer and your time.
If the information is useful, the only convex function in the constraint Affine <= Convex is cp.pos()
On the other hand, i'm trying the parameter tau = 1 but i dont have results with some solvers (Mosek, ECOS), i'm still trying with anothers!.

@stephenpboyd
Copy link

stephenpboyd commented Jan 31, 2022 via email

@aleolivero
Copy link
Author

Hi @stephenpboyd ! thanks for your time and your help!,
For now, the problem has one constrain with that form, the rest of the constrains have the form affine==affine... I will try to apply the constrains as you have explained!
Again thanks so much for your time

@stephenpboyd
Copy link

stephenpboyd commented Jan 31, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants