[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-glpk] expression following = has invalid type
From: |
Chris Matrakidis |
Subject: |
Re: [Bug-glpk] expression following = has invalid type |
Date: |
Sun, 11 Jun 2017 18:24:35 +0300 |
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.