Use a PI controller to control DC link voltage. This PI controller will balance energy input to and output from DC link capacitor. Use a variable that will signify output energy from DC link capacitor such as motor speed if you control a pump or current fed by the inverter etc erc..