Text this: Optimization of Lagrange problem with higher-order differential inclusion and special boundary-value conditions