brocksam / pycollo

General-purpose optimal control, trajectory optimisation and parameter optimisation using direct collocation
https://brocksam.github.io/pycollo/
MIT License
8 stars 3 forks source link

Derivative of sym.pi not known #14

Closed Peter4137 closed 4 years ago

Peter4137 commented 4 years ago

Having sym.pi as a symbol in an expression gives an error:

return max(tiers) + 1
ValueError: max() arg is an empty sequence

as the derivative of sym.pi is not a known symbolic derivative when creating the expression graph.

brocksam commented 4 years ago

Fixed in #15