Skip to content

Commit 8274836

Browse files
committed
Fix
1 parent 3b97319 commit 8274836

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/ManoptJuMPExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ function MOI.optimize!(model::Optimizer)
328328
end for i in eachindex(model.variable_primal_start)
329329
]
330330
objective = model.objective
331-
if model.sense == MOI.FEASIBILITY_SENSE
331+
if isnothing(objective) || model.sense == MOI.FEASIBILITY_SENSE
332332
eval_f_cb(_, _) = 0.0
333333
function eval_grad_f_cb(M, X)
334334
x = JuMP.vectorize(X, _shape(model.manifold))

0 commit comments

Comments
 (0)