control-toolbox / CTBase.jl

Fundamentals of the control-toolbox ecosystem
MIT License
7 stars 2 forks source link

Add init unit tests #187

Open ocots opened 2 weeks ago

jbcaillau commented 1 week ago

@PierreMartinon can you please confirm that init in CTBase.jl is OK? (apart maybe from some doc stuff)

The case being, everything but doc should be ready to release OptimalControl 1.0 with latest CTxxxx.jl versions (extensions, mostly).

PierreMartinon commented 1 week ago

Well, all tests seem fine (current tests check the final value of the state/control at iteration 0). By the way you can use () or nothing for default init, both work.

Unit tests in CTBase are a better idea, we would just call the constructor and check the resulting init functions against the source data. Need to write some methods that compare a function to i) a constant ii) a function iii) a vector with its time grid.

ocots commented 2 days ago

Can we close?