Research of Advanced Control Algorithm in Primary Loop Control System