-
Notifications
You must be signed in to change notification settings - Fork 122
Closed
Description
the related version of my packages are as follows:
`(v1.0) pkg> status`
` Status `C:\Users\duyanran\.julia\environments\v1.0\Project.toml`
` [f65535da] Convex v0.14.8`
` [60bf3e95] GLPK v0.14.8`
` [2e9cd046] Gurobi v0.8.1`
` [6405355b] Mosek v1.1.3`
` [1ec41992] MosekTools v0.9.4`
` [2f354839] Pajarito v0.7.0`
` [c946c3f1] SCS v0.7.1`
i wrote a code to illustrate my problem:
`b = randn(20) # Sample measurement vector`
`tau= Convex.ComplexVariable()`
`t = Convex.ComplexVariable(20,20)`
`z = Convex.Variable(6, :Bin)`
`mod = minimize( sum(z) ) `
`mod.constraints += (sum(z) <= 1)`
`mod.constraints += (t[1,2] == 1+1im)`
`mod.constraints += [real(t) b ; b' tau] in :SDP`
`solve!(mod, micp_solver)`
`println(" selected features (z) = \n$(z.value)\n")`
`println(" selected features (z) = \n$(tau.value)\n")`
`println(" selected features (z) = \n$(t.value)\n")`
question is after i run my program is end up with this error:
`The provided `optimizer_constructor` is invalid. It must be callable with zero arguments. For example, "Ipopt.Optimizer" or "() -> ECOS.Optimizer()". It should not be an instantiated optimizer like "Ipopt.Optimizer()" or "ECOS.Optimizer()". (Note the difference in parentheses!)`
does that means that i can not use pajarito to construct a composite solver ? or how can i change my code?
i tried to degradation convex.jl with version 0.8.1
but here i got another problem, and i am trying to solve it by myself.
Metadata
Metadata
Assignees
Labels
No labels