I am using Mosek solver to solve the model below. I get the model showing but the solver is not able to display the results. Am guessing is an issue with the second order cone formulation. I will appreciate your guidance to get this working please.
using JuMP
using Mosek
using MosekTools
model= Model(Mosek.Optimizer)
Let parameter
m=15
NumVar=5
r=[0, 0, 0, 0, 0]
@variable(model, X>=0)
@variable(model, y>=0)
@variable(model, z>=0)
@variable(model, a[i=1:NumVar]>=0)
@variable(model, b[i=1:NumVar]>=0)
@variable(model, R>=0)
@objective(model, Min, X^2 + y^2-z )
#######Declare the constraints
for i in 1:NumVar
@constraint(model, -2Xa[i]-2*b[i]*y + z <=(R-r[i])^2-a[i]^2-b[i]^2)
end
@show model
print(model)
optimize!(model)
@show termination_status(model)
@show primal_status(model)
@show dual_status(model)
@show objective_value(model)
for i in 1:NumVar
println("r[$i] = ", value(r[i]))
end
@show value(X)
@show value(y)
@show value(R)