{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaOpt/Mosek.jl/issues/49","labels_url":"https://api.github.com/repos/JuliaOpt/Mosek.jl/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/JuliaOpt/Mosek.jl/issues/49/comments","events_url":"https://api.github.com/repos/JuliaOpt/Mosek.jl/issues/49/events","html_url":"https://github.com/JuliaOpt/Mosek.jl/issues/49","id":87177554,"number":49,"title":"Indexing error when mixing SDP and SOCP","user":{"login":"joehuchette","id":1373010,"avatar_url":"https://avatars.githubusercontent.com/u/1373010?v=3","gravatar_id":"","url":"https://api.github.com/users/joehuchette","html_url":"https://github.com/joehuchette","followers_url":"https://api.github.com/users/joehuchette/followers","following_url":"https://api.github.com/users/joehuchette/following{/other_user}","gists_url":"https://api.github.com/users/joehuchette/gists{/gist_id}","starred_url":"https://api.github.com/users/joehuchette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joehuchette/subscriptions","organizations_url":"https://api.github.com/users/joehuchette/orgs","repos_url":"https://api.github.com/users/joehuchette/repos","events_url":"https://api.github.com/users/joehuchette/events{/privacy}","received_events_url":"https://api.github.com/users/joehuchette/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-11T02:06:37Z","updated_at":"2015-06-11T05:36:41Z","closed_at":null,"body":"The following JuMP code produces an internal indexing error:\r\n```jl\r\nusing JuMP\r\n\r\nm = Model()\r\n\r\n@defVar(m, x[1:1,1:1], SDP)\r\n@defVar(m, y)\r\n@defVar(m, z >= 0)\r\n@defVar(m, t >= 0)\r\n@addConstraint(m, (y-1)^2 <= z^2)\r\n@addConstraint(m, (x[1,1]-1)^2 <= t^2)\r\n\r\nsolve(m)\r\n```\r\n```\r\nERROR: Mosek.MosekError(1204,\"The index value 7 occurring in argument '(asub+aptrb[1])[0]' is too large.\")\r\n in putarowslice at /Users/huchette/.julia/v0.4/Mosek/src/msk_functions.jl:2644\r\n in putarowslice at /Users/huchette/.julia/v0.4/Mosek/src/msk_functions.jl:2622\r\n in addquadconstr! at /Users/huchette/.julia/v0.4/Mosek/src/MosekLowLevelQCQO.jl:148\r\n in addQuadratics at /Users/huchette/.julia/v0.4/JuMP/src/solvers.jl:87\r\n in solveSDP at /Users/huchette/.julia/v0.4/JuMP/src/solvers.jl:622\r\n in solve at /Users/huchette/.julia/v0.4/JuMP/src/solvers.jl:27\r\n```"},"comment":{"url":"https://api.github.com/repos/JuliaOpt/Mosek.jl/issues/comments/111002483","html_url":"https://github.com/JuliaOpt/Mosek.jl/issues/49#issuecomment-111002483","issue_url":"https://api.github.com/repos/JuliaOpt/Mosek.jl/issues/49","id":111002483,"user":{"login":"mlubin","id":1733683,"avatar_url":"https://avatars.githubusercontent.com/u/1733683?v=3","gravatar_id":"","url":"https://api.github.com/users/mlubin","html_url":"https://github.com/mlubin","followers_url":"https://api.github.com/users/mlubin/followers","following_url":"https://api.github.com/users/mlubin/following{/other_user}","gists_url":"https://api.github.com/users/mlubin/gists{/gist_id}","starred_url":"https://api.github.com/users/mlubin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlubin/subscriptions","organizations_url":"https://api.github.com/users/mlubin/orgs","repos_url":"https://api.github.com/users/mlubin/repos","events_url":"https://api.github.com/users/mlubin/events{/privacy}","received_events_url":"https://api.github.com/users/mlubin/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T05:36:41Z","updated_at":"2015-06-11T05:36:41Z","body":"I don't think it was ever intended that you could mix ``loadconicproblem!`` and ``addquadconstr!``."}}