Frequently Asked Questions

Author

Anqi Fu, Balasubramanian Narasimhan, Steven Diamond, Stephen Boyd

Where can I go for help?

Please open an issue on the CVXR GitHub Issues page. Include a minimal reproducible example whenever possible.

Since CVXR is an R port of CVXPY, the broader CVXPY community can also be a valuable resource:

Many modeling and DCP questions that arise in CVXR have direct analogs in CVXPY, so answers from these forums often translate directly.

My problem is not DCP compliant. How do I reformulate it?

It is impossible for us to analyze every individual problem and determine whether it can be reformulated as a DCP problem. We unfortunately cannot help with reformulating specific problems.

However, there are excellent resources for learning DCP:

  • The Boyd and Vandenberghe () book and its additional exercises are the definitive reference.
  • The DCP rules website provides an interactive tool for checking DCP compliance and understanding the composition rules.
  • The CVXPY DCP tutorial explains the rules with many examples — these apply equally to CVXR.
  • The examples on this site cover a wide range of problems and may contain patterns similar to yours.

I want to report a bug.

Please open an issue on the CVXR GitHub Issues page with a reproducible example.

References

Boyd, S., and L. Vandenberghe. 2004. Convex Optimization. Cambridge University Press.