{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaOpt/Convex.jl/issues/86","labels_url":"https://api.github.com/repos/JuliaOpt/Convex.jl/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/JuliaOpt/Convex.jl/issues/86/comments","events_url":"https://api.github.com/repos/JuliaOpt/Convex.jl/issues/86/events","html_url":"https://github.com/JuliaOpt/Convex.jl/issues/86","id":88250627,"number":86,"title":"Variable vectors in matrix_frac","user":{"login":"jean997","id":11408688,"avatar_url":"https://avatars.githubusercontent.com/u/11408688?v=3","gravatar_id":"","url":"https://api.github.com/users/jean997","html_url":"https://github.com/jean997","followers_url":"https://api.github.com/users/jean997/followers","following_url":"https://api.github.com/users/jean997/following{/other_user}","gists_url":"https://api.github.com/users/jean997/gists{/gist_id}","starred_url":"https://api.github.com/users/jean997/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jean997/subscriptions","organizations_url":"https://api.github.com/users/jean997/orgs","repos_url":"https://api.github.com/users/jean997/repos","events_url":"https://api.github.com/users/jean997/events{/privacy}","received_events_url":"https://api.github.com/users/jean997/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-14T21:21:06Z","updated_at":"2015-06-15T02:35:06Z","closed_at":"2015-06-14T23:04:57Z","body":"Hi,\r\nI would like to do something like\r\n\r\nn = 100;\r\ny = randn(n, 1); \r\nb = Variable(n);\r\ns = Variable(n);\r\nS = diagm(s);\r\nproblem = minimize(matrix_frac(y-b, S))\r\n\r\nwhich gives me an error\r\n`matrix_frac` has no method matching matrix_frac(::AdditionAtom, ::DiagMatrixAtom)\r\n\r\nI think the issue is that y-b is an AbstractExpression rather than a constant because\r\nproblem = minimize(matrix_frac(y, S))\r\nis fine. \r\n\r\nThe original problem works fine in cvx in matlab.\r\nAny solutions or workarounds would be greatly appreciated!"},"comment":{"url":"https://api.github.com/repos/JuliaOpt/Convex.jl/issues/comments/111904564","html_url":"https://github.com/JuliaOpt/Convex.jl/issues/86#issuecomment-111904564","issue_url":"https://api.github.com/repos/JuliaOpt/Convex.jl/issues/86","id":111904564,"user":{"login":"jean997","id":11408688,"avatar_url":"https://avatars.githubusercontent.com/u/11408688?v=3","gravatar_id":"","url":"https://api.github.com/users/jean997","html_url":"https://github.com/jean997","followers_url":"https://api.github.com/users/jean997/followers","following_url":"https://api.github.com/users/jean997/following{/other_user}","gists_url":"https://api.github.com/users/jean997/gists{/gist_id}","starred_url":"https://api.github.com/users/jean997/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jean997/subscriptions","organizations_url":"https://api.github.com/users/jean997/orgs","repos_url":"https://api.github.com/users/jean997/repos","events_url":"https://api.github.com/users/jean997/events{/privacy}","received_events_url":"https://api.github.com/users/jean997/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T02:35:06Z","updated_at":"2015-06-15T02:35:06Z","body":"Thanks so much! I've got it working."}}