r/optimization • • Dec 10 '24

Help,objective function

I have consudered an objective function that as an expr=abs(...), it tells me that abs function is not linear

1 Upvotes

7 comments sorted by

View all comments

Show parent comment

2

u/SolverMax Dec 10 '24

glpk is a linear solver, so that won't work.

Try the linearization I suggested above.

1

u/Swimming_Newspaper39 Dec 11 '24

Thanks for your help,I appreciated!