Text this: Optimal Behavior Control of an Initial-Boundary Problem Solution Modelling Rotation of a Solid Body with the Flexible Rod