@PierreMartinon check this example in JuMP (single impulsion, reduction to standard control problem)
Add this in the tutorial.