For usage questions, please contact us via the JuliaOpt mailing list. If you're running into bugs or have feature requests, please use the Github Issue Tracker.
Convex.jl and JuMP are both modelling languages for mathematical programming embedded in Julia, and both interface with solvers via the MathProgBase interface, so many of the same solvers are available in both. Convex.jl converts problems to a standard conic form. This approach requires (and certifies) that the problem is convex and DCP compliant, and guarantees global optimality of the resulting solution. JuMP allows nonlinear programming through an interface that learns about functions via their derivatives. This approach is more flexible (for example, you can optimize non-convex functions), but can't guarantee global optimality if your function is not convex, or warn you if you've entered a non-convex formulation.
For linear programming, the difference is more stylistic. JuMP's syntax is scalar-based and similar to AMPL and GAMS
making it easy and fast to create constraints by indexing and summation (like sum{x[i], i=1:numLocation}
).
Convex.jl allows (and prioritizes) linear algebraic and functional constructions (like max(x,y) < A*z
);
indexing and summation are also supported in Convex.jl, but are somewhat slower than in JuMP.
JuMP also lets you efficiently solve a sequence of problems when new constraints are added
or when coefficients are modified,
whereas Convex.jl parses the problem again whenever the solve! method is called.
See the freely available book Convex Optimization by Boyd and Vandenberghe for general background on convex optimization. For help understanding the rules of Disciplined Convex Programming, we recommend this DCP tutorial website.
Indeed! You might use CVXPY in Python, or CVX in Matlab.
For a detailed discussion of how Convex.jl works, see our paper.
If you use Convex.jl for published work, we encourage you to cite the software using the following BibTeX citation:
@article{convexjl, title = {Convex Optimization in {J}ulia}, author ={Udell, Madeleine and Mohan, Karanveer and Zeng, David and Hong, Jenny and Diamond, Steven and Boyd, Stephen}, year = {2014}, journal = {SC14 Workshop on High Performance Technical Computing in Dynamic Languages}, archivePrefix = "arXiv", eprint = {1410.4821}, primaryClass = "math-oc", }