Skip to content

Commit ae7365c

Browse files
committed
Fix
1 parent 352b4d4 commit ae7365c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/objective.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ end
277277

278278
function set_objective_function(model::GenericModel, func::AbstractJuMPScalar)
279279
check_belongs_to_model(func, model)
280-
set_objective_function(model, moi_function(func))
280+
set_objective_function(model, moi_function(func, model))
281281
return
282282
end
283283

@@ -296,7 +296,7 @@ function set_objective_function(
296296
for f in func
297297
check_belongs_to_model(f, model)
298298
end
299-
set_objective_function(model, moi_function(func))
299+
set_objective_function(model, moi_function(func, model))
300300
return
301301
end
302302

0 commit comments

Comments
 (0)