{"license_url":"/docs/Convex/Sr0e5/0.14.5/_packagesource/LICENSE.md","doctype":"missing","homepage":"https://jump.dev/Convex.jl/stable/","readme":"
Convex.jl is a Julia package for Disciplined Convex Programming. Convex.jl can solve linear programs, mixed-integer linear programs, and DCP-compliant convex programs using a variety of solvers, including Mosek, Gurobi, ECOS, SCS, and GLPK, through MathOptInterface. It also supports optimization with complex variables and coefficients.
\nInstallation: julia> Pkg.add(\"Convex\")
To run this example, first install Convex and at least one solver, such as SCS:
\nusing Pkg\nPkg.add(\"Convex\")\nPkg.add(\"SCS\")\n
\nNow let's solve a least-squares problem with inequality constraints.
\n# Let us first make the Convex.jl module available\nusing Convex, SCS\n\n# Generate random problem data\nm = 4; n = 5\nA = randn(m, n); b = randn(m, 1)\n\n# Create a (column vector) variable of size n x 1.\nx = Variable(n)\n\n# The problem is to minimize ||Ax - b||^2 subject to x >= 0\n# This can be done by: minimize(objective, constraints)\nproblem = minimize(sumsquares(A * x - b), [x >= 0])\n\n# Solve the problem by calling solve!\nsolve!(problem, SCS.Optimizer)\n\n# Check the status of the problem\nproblem.status # :Optimal, :Infeasible, :Unbounded etc.\n\n# Get the optimal value\nproblem.optval\n
\nA number of examples can be found here.\nThe basic usage notebook\ngives a simple tutorial on problems that can be solved using Convex.jl. All examples can be downloaded as\na zip file from here.
\nIf you use Convex.jl for published work, we encourage you to cite the software using the following BibTeX citation:
\n@article{convexjl,\n title = {Convex Optimization in {J}ulia},\n author = {Udell, Madeleine and Mohan, Karanveer and Zeng, David and Hong, Jenny and Diamond, Steven and Boyd, Stephen},\n year = {2014},\n journal = {SC14 Workshop on High Performance Technical Computing in Dynamic Languages},\n archivePrefix = \"arXiv\",\n eprint = {1410.4821},\n primaryClass = \"math-oc\",\n}\n
\n\n\n\n","name":"Convex.jl","using_failed":false,"release_date":"Mar 2021","owner":"jump-dev","slug":"Sr0e5","documenter_errored":"missing","version":"0.14.5","description":"A Julia package for disciplined convex programming","deps":[{"direct":true,"name":"AbstractTrees","uuid":"1520ce14-60c1-5f80-bbc7-55ef81b5835c","versions":["0.2-0.3"],"slug":"tEX7J"},{"direct":false,"name":"Artifacts","uuid":"56f22d72-fd6d-98f1-02f0-08ddc0907c33","versions":["*"],"slug":"BCPcO"},{"direct":false,"name":"Base64","uuid":"2a0f44e3-6c83-55bd-87e4-b1978d98bd5f","versions":["*"],"slug":"D7K0n"},{"direct":true,"name":"BenchmarkTools","uuid":"6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf","versions":["0.4-0.6"],"slug":"ZXPQo"},{"direct":false,"name":"BenchmarkTools","uuid":"6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf","versions":["0.4-0.5"],"slug":"ZXPQo"},{"direct":false,"name":"BinaryProvider","uuid":"b99e7846-7c00-51b0-8f62-c81ae34c0232","versions":["0.0.0 - 0.5","0.5"],"slug":"ek6VZ"},{"direct":false,"name":"Bzip2_jll","uuid":"6e34b625-4abd-537c-b88f-471c36dfa7a0","versions":["1.0.6-1"],"slug":"biC9V"},{"direct":false,"name":"CodecBzip2","uuid":"523fee87-0ab8-5b00-afb7-3ecf72e48cfd","versions":["0.6-0.7"],"slug":"5pIlR"},{"direct":false,"name":"CodecZlib","uuid":"944b1d66-785c-5afd-91f1-9de20f533193","versions":["0.6-0.7"],"slug":"1TI30"},{"direct":false,"name":"Compat","uuid":"34da2185-b29b-5c13-b0c7-acf172513d20","versions":["0.50-2"],"slug":"GSFWK"},{"direct":false,"name":"Dates","uuid":"ade2ca70-3891-5945-98fb-dc099432e06a","versions":["*"],"slug":"p8See"},{"direct":false,"name":"DelimitedFiles","uuid":"8bb1440f-4735-579b-a4ab-409b98df4dab","versions":["*"],"slug":"dlKZm"},{"direct":false,"name":"Distributed","uuid":"8ba89e20-285c-5b6f-9357-94700520ee1b","versions":["*"],"slug":"Pq94q"},{"direct":false,"name":"HTTP","uuid":"cd3eb016-35fb-5094-929b-558a96fad6f3","versions":["0.8-0.9"],"slug":"zXWya"},{"direct":false,"name":"IniFile","uuid":"83e8ac13-25f8-5344-8a64-a9f2b223428f","versions":["0.5"],"slug":"wFzqC"},{"direct":false,"name":"InteractiveUtils","uuid":"b77e0a4c-d291-57a0-90e8-8db25a27a240","versions":["*"],"slug":"0TrXF"},{"direct":false,"name":"JLLWrappers","uuid":"692b3bcd-3c85-4b1f-b108-f13ce0eb3210","versions":["1.1.0-1"],"slug":"7Zgw7"},{"direct":false,"name":"JSON","uuid":"682c06a0-de6a-54ab-a142-c8b1cf79cde6","versions":["0.18-0.21","0.21"],"slug":"uf6oy"},{"direct":false,"name":"JSONSchema","uuid":"7d188eb4-7ad8-530c-ae41-71a32a6d4692","versions":["0.3"],"slug":"7Y9QQ"},{"direct":false,"name":"LibGit2","uuid":"76f85450-5226-5b5a-8eaa-529ad045b433","versions":["*"],"slug":"xrYJZ"},{"direct":false,"name":"Libdl","uuid":"8f399da3-3557-5675-b5ff-fb832c97cbdb","versions":["*"],"slug":"KmLuP"},{"direct":true,"name":"LinearAlgebra","uuid":"37e2e46d-f89d-539d-b4ee-838fcccc9c8e","versions":["*"],"slug":"4oZNn"},{"direct":false,"name":"LinearAlgebra","uuid":"37e2e46d-f89d-539d-b4ee-838fcccc9c8e","versions":["*"],"slug":"4oZNn"},{"direct":false,"name":"Logging","uuid":"56ddb016-857b-54e1-b83d-db4d58db5568","versions":["*"],"slug":"PWFjL"},{"direct":false,"name":"Markdown","uuid":"d6f4376e-aef5-505a-96c1-9c027394607a","versions":["*"],"slug":"AREjX"},{"direct":true,"name":"MathOptInterface","uuid":"b8f27783-ece8-5eb3-8dc8-9495eed66fee","versions":["0.9"],"slug":"tyub8"},{"direct":false,"name":"MbedTLS","uuid":"739be429-bea8-5141-9913-cc70e7f3736d","versions":["0.6.8-0.7"],"slug":"bf9T0"},{"direct":false,"name":"Mmap","uuid":"a63ad114-7e13-5084-954f-fe012c677804","versions":["*"],"slug":"GDYy0"},{"direct":false,"name":"MutableArithmetics","uuid":"d8a4904e-b15c-11e9-3269-09a3773c0cb0","versions":["0.2"],"slug":"EoEec"},{"direct":false,"name":"OrderedCollections","uuid":"bac558e1-5e72-5ebc-8fee-abe8a469f55d","versions":["1"],"slug":"LtT3J"},{"direct":true,"name":"OrderedCollections","uuid":"bac558e1-5e72-5ebc-8fee-abe8a469f55d","versions":["1"],"slug":"LtT3J"},{"direct":false,"name":"Pkg","uuid":"44cfe95a-1eb2-52ea-b672-e2afdf69b78f","versions":["*"],"slug":"tUTdb"},{"direct":false,"name":"Printf","uuid":"de0858da-6303-5e67-8744-51eddeeeb8d7","versions":["*"],"slug":"3FQLY"},{"direct":false,"name":"REPL","uuid":"3fa0cd96-eef1-5676-8a61-b3b8758bbffb","versions":["*"],"slug":"u0gqU"},{"direct":false,"name":"Random","uuid":"9a3f8284-a2c9-5f02-9a11-845980a1fd5c","versions":["*"],"slug":"uGrYd"},{"direct":false,"name":"SHA","uuid":"ea8e919c-243c-51af-8825-aaa63cd721ce","versions":["*"],"slug":"Ffs0l"},{"direct":false,"name":"Serialization","uuid":"9e88b42a-f829-5b0c-bbe9-9e923198166b","versions":["*"],"slug":"zGad9"},{"direct":false,"name":"SharedArrays","uuid":"1a1011a3-84de-559e-8e89-a11a2f7dc383","versions":["*"],"slug":"g12Jt"},{"direct":false,"name":"Sockets","uuid":"6462fe0b-24de-5631-8697-dd941f90decc","versions":["*"],"slug":"QLXIl"},{"direct":false,"name":"SparseArrays","uuid":"2f01184e-e22b-5df5-ae63-d93ebab69eaf","versions":["*"],"slug":"P9ieR"},{"direct":true,"name":"SparseArrays","uuid":"2f01184e-e22b-5df5-ae63-d93ebab69eaf","versions":["*"],"slug":"P9ieR"},{"direct":false,"name":"Statistics","uuid":"10745b16-79ce-11e8-11f9-7d13ad32a3b2","versions":["*"],"slug":"ERcPL"},{"direct":false,"name":"Test","uuid":"8dfed614-e22c-5e08-85e1-65c5234f0b40","versions":["*"],"slug":"JfdTE"},{"direct":true,"name":"Test","uuid":"8dfed614-e22c-5e08-85e1-65c5234f0b40","versions":["*"],"slug":"JfdTE"},{"direct":false,"name":"TranscodingStreams","uuid":"3bb67fe8-82b1-5028-8e26-92a6c54297fa","versions":["0.9"],"slug":"eJQ7D"},{"direct":false,"name":"UUIDs","uuid":"cf7118a7-6976-5b1a-9a39-7adc72f591a4","versions":["*"],"slug":"SIw1t"},{"direct":false,"name":"Unicode","uuid":"4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5","versions":["*"],"slug":"E4Hzs"},{"direct":false,"name":"ZipFile","uuid":"a5390f91-8eb1-5f08-bee0-b1d1ffed6cea","versions":["0.8-0.9"],"slug":"cOum2"},{"direct":false,"name":"Zlib_jll","uuid":"83775a58-1f1d-513f-b197-d71354ab007a","versions":["*","1.2.11-1"],"slug":"xjq3Q"},{"direct":true,"name":"julia","uuid":"1222c4b2-2114-5bfd-aeef-88e4692bbb3e","versions":["1"],"slug":"THl1k"},{"direct":false,"name":"julia","uuid":"1222c4b2-2114-5bfd-aeef-88e4692bbb3e","versions":["0.6-1","0.7","1","1.0-1.5","1.3.0-1"],"slug":"THl1k"}],"stargazers_count":421,"pkgeval":{"duration":482.049,"julia":{"major":1,"prerelease":["DEV-712abb09c8"],"build":[],"patch":0,"minor":7},"name":"Convex","status":"ok","reason":null,"version":{"major":0,"prerelease":[],"build":[],"patch":5,"minor":14}},"reversedeps":[{"direct":false,"name":"OhMyQSIM","uuid":"19761982-0bba-11ea-3d5f-93c17441e836","slug":"TAfgH","version":["0.1.0","0.1.1"]},{"direct":false,"name":"PicoQuant","uuid":"2db47837-5a65-4a20-8d0f-8ec2491baa53","slug":"9hVSp","version":["0.1.0","0.1.1","0.1.2","0.1.3","0.1.4"]},{"direct":false,"name":"QuantExQASM","uuid":"630b6936-434f-11ea-2df3-976e72da0e99","slug":"LKuAo","version":["0.1.1"]},{"direct":true,"name":"QuantumInformation","uuid":"3c0b384b-479c-5684-b2ef-9d7a46dd931e","slug":"HNZtO","version":["0.4.8"]}],"success":false,"contributors":[{"name":"madeleineudell","contributions":316,"type":"User","url":"https://github.com/madeleineudell"},{"name":"Ayush-iitkgp","contributions":277,"type":"User","url":"https://github.com/Ayush-iitkgp"},{"name":"karanveerm","contributions":204,"type":"User","url":"https://github.com/karanveerm"},{"name":"ericphanson","contributions":173,"type":"User","url":"https://github.com/ericphanson"},{"name":"davidlizeng","contributions":83,"type":"User","url":"https://github.com/davidlizeng"},{"name":"ararslan","contributions":34,"type":"User","url":"https://github.com/ararslan"},{"name":"mlubin","contributions":33,"type":"User","url":"https://github.com/mlubin"},{"name":"jennyhong","contributions":26,"type":"User","url":"https://github.com/jennyhong"},{"name":"IainNZ","contributions":15,"type":"User","url":"https://github.com/IainNZ"},{"name":"jduchi","contributions":4,"type":"User","url":"https://github.com/jduchi"},{"name":"PaulSoderlind","contributions":4,"type":"User","url":"https://github.com/PaulSoderlind"},{"name":"hsnamkoong","contributions":4,"type":"User","url":"https://github.com/hsnamkoong"},{"name":"mfalt","contributions":4,"type":"User","url":"https://github.com/mfalt"},{"name":"peterwittek","contributions":3,"type":"User","url":"https://github.com/peterwittek"},{"name":"vernwalrahul","contributions":3,"type":"User","url":"https://github.com/vernwalrahul"},{"name":"riccardomurri","contributions":3,"type":"User","url":"https://github.com/riccardomurri"},{"name":"blakejohnson","contributions":2,"type":"User","url":"https://github.com/blakejohnson"},{"name":"dstahlke","contributions":2,"type":"User","url":"https://github.com/dstahlke"},{"name":"daviddelaat","contributions":2,"type":"User","url":"https://github.com/daviddelaat"},{"name":"ranocha","contributions":2,"type":"User","url":"https://github.com/ranocha"},{"name":"dressel","contributions":2,"type":"User","url":"https://github.com/dressel"},{"name":"nan2ge1","contributions":2,"type":"User","url":"https://github.com/nan2ge1"},{"name":"rofinn","contributions":2,"type":"User","url":"https://github.com/rofinn"},{"name":"tkelman","contributions":2,"type":"User","url":"https://github.com/tkelman"},{"name":"github-actions[bot]","contributions":2,"type":"Bot","url":"https://github.com/apps/github-actions"},{"name":"seanemoon","contributions":1,"type":"User","url":"https://github.com/seanemoon"},{"name":"ahwillia","contributions":1,"type":"User","url":"https://github.com/ahwillia"},{"name":"chkwon","contributions":1,"type":"User","url":"https://github.com/chkwon"},{"name":"omus","contributions":1,"type":"User","url":"https://github.com/omus"},{"name":"emreyamangil","contributions":1,"type":"User","url":"https://github.com/emreyamangil"},{"name":"iamed2","contributions":1,"type":"User","url":"https://github.com/iamed2"},{"name":"jw3126","contributions":1,"type":"User","url":"https://github.com/jw3126"},{"name":"kofron","contributions":1,"type":"User","url":"https://github.com/kofron"},{"name":"jayvn","contributions":1,"type":"User","url":"https://github.com/jayvn"},{"name":"joerenes","contributions":1,"type":"User","url":"https://github.com/joerenes"},{"name":"JuliaTagBot","contributions":1,"type":"User","url":"https://github.com/JuliaTagBot"},{"name":"snitramodranoel","contributions":1,"type":"User","url":"https://github.com/snitramodranoel"},{"name":"odow","contributions":1,"type":"User","url":"https://github.com/odow"},{"name":"pkofod","contributions":1,"type":"User","url":"https://github.com/pkofod"},{"name":"stared","contributions":1,"type":"User","url":"https://github.com/stared"},{"name":"aspicer","contributions":1,"type":"User","url":"https://github.com/aspicer"},{"name":"tummykung","contributions":1,"type":"User","url":"https://github.com/tummykung"},{"name":"ViralBShah","contributions":1,"type":"User","url":"https://github.com/ViralBShah"},{"name":"yvesx","contributions":1,"type":"User","url":"https://github.com/yvesx"},{"name":"zlatanvasovic","contributions":1,"type":"User","url":"https://github.com/zlatanvasovic"},{"name":"femtocleaner[bot]","contributions":1,"type":"Bot","url":"https://github.com/apps/femtocleaner"},{"name":"matbesancon","contributions":1,"type":"User","url":"https://github.com/matbesancon"},{"name":"nkottary","contributions":1,"type":"User","url":"https://github.com/nkottary"},{"name":"tomerarnon","contributions":1,"type":"User","url":"https://github.com/tomerarnon"}],"url":"https://github.com/jump-dev/Convex.jl.git","uuid":"f65535da-76fb-5f13-bab9-19810c17039a","tags":["julia","convex-optimization","solver"],"license":"BSD-2-Clause","installable":"missing"}Convex.jl was previously called CVX.jl.
\n