-
Notifications
You must be signed in to change notification settings - Fork 122
Closed
Description
I get error trying to solve:
using Convex;
using ECOS;
function CVXSolver( mK :: AbstractMatrix{T} ) where {T <: AbstractFloat}
numRows = size(mK, 1);
vX = Variable(numRows);
sConvProb = minimize( sum(-log(one(T) .+ mK' * vX)), [norm(vX) <= one(T)] );
solve!(sConvProb, ECOS.Optimizer; silent = true);
return vec(vX.value);
end
mK = randn(numRows, numCols);
mK = mK ./ reshape(norm.(eachcol(mK)), (1, numCols));
vX = CVXSolver(mK);
I get ERROR: MethodError: no method matching iterate(::Convex.MultiplyAtom).
Metadata
Metadata
Assignees
Labels
No labels