Dear Ahmed, > If I may ask, how or at which point of the code shall I use the if statement > which you proposed?
You can only do this with parameters and constant terms in the constraints, and it only makes sense for the result of calculations that may have accuracy issues. The only calculated value here is cos(k*o), where when the (reduced) angle is either pi/2 or -pi/2, due to rounding it is very unlikely that cos() will return zero. Since we know these values should really be zero so we can set them directly and avoid scaling problems. Best Regards, Chris Matrakidis PS. You are not subscribed to the list and your messages have to be forwarded manually. _______________________________________________ Bug-glpk mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-glpk
