Thank you for the reply @odow! I got it to work by removing the first input to the function since it’s already declared by default. I just used cbget_mipsol_sol(cb_data, cb_where)a long with Model(Gurobi.Optimizer).
While trying direct_model, I did come across an issue that I thought I’d bring up: It seems that direct_model() cannot handle RotatedSecondOrderCone() constraints; I kept getting the following error:
Constraints of type MathOptInterface.VectorAffineFunction{Float64}-in-MathOptInterface.RotatedSecondOrderCone are not supported by the solver.
error(::String) at error.jl:33
moi_add_constraint(::Gurobi.Optimizer, ::MathOptInterface.VectorAffineFunction{Float64}, ::MathOptInterface.RotatedSecondOrderCone) at constraints.jl:388
add_constraint(::Model, ::VectorConstraint{GenericAffExpr{Float64,VariableRef},MathOptInterface.RotatedSecondOrderCone,VectorShape}, ::String) at constraints.jl:402
Thought I’d bring it up. Thanks again!!