Skip to content

Commit ab8bdc3

Browse files
committed
Fixing bug in one conversion method from optim.Problem to problem.OptimizationProblem
1 parent 31a40a6 commit ab8bdc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

problem/optimization_problem.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ func From(inputModel optim.Model) (*OptimizationProblem, error) {
264264

265265
err = newOptimProblem.SetObjective(
266266
objectiveExpr,
267-
ObjSense(inputModel.Obj.Sense),
267+
ToObjSense(inputModel.Obj.Sense),
268268
)
269269
if err != nil {
270270
return nil, err

0 commit comments

Comments
 (0)