We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b97319 commit 8274836Copy full SHA for 8274836
1 file changed
ext/ManoptJuMPExt.jl
@@ -328,7 +328,7 @@ function MOI.optimize!(model::Optimizer)
328
end for i in eachindex(model.variable_primal_start)
329
]
330
objective = model.objective
331
- if model.sense == MOI.FEASIBILITY_SENSE
+ if isnothing(objective) || model.sense == MOI.FEASIBILITY_SENSE
332
eval_f_cb(_, _) = 0.0
333
function eval_grad_f_cb(M, X)
334
x = JuMP.vectorize(X, _shape(model.manifold))
0 commit comments