Methods of the guaranteed control theory in a dynamic portfolio selection problem