How to control input cureent DC/DC converter?

Hi,

in the buck-boost I have PI controller of output voltage which is constant(20v). Input voltage(15-25). But also I would like to have an input current limit(for example50A). How can I implement this limit, where should I put saturation block? Do you have any ideads? I would be grateful for all answers.

Regards,

Wojciech

Maybe you want to take a look at the demo model Buck Converter with Peak Current Control which is shipped with PLECS.

Kind regards,

Oliver Schwartz