Why the @objective value is negative?

Because you haven’t fixed the iszero issue: Condition in @objective - #5 by odow

Look at your objective function use objective_function(premex). It won’t be what you think it is.

1 Like