ALTRO: InexactError: trunc(UInt8, 279)

Hi,

I am using the ALTRO package to do trajectory optimization. I get the following InexactError sometimes when I run the code. Sometimes it works fine and there is no error code. Has anybody faced this issue before? What could be causing this error and how could I mitigate this? Thank you.

This looks like a bug. The UInt8 type can only represent integers from 0 to 255, and the error is telling you that the code tried to perform an operation where no exact transformation could be performed, I.e. 279 can’t be represented by this type.

1 Like