I'm looking into the design of the control circuit for the mosfet. If I know the output voltage and input voltage then I can find the duty cycle required. I found this schematic that uses feedback
Source
https://www.maximintegrated.com/en/app-notes/index.mvp/id/2031
Why would I need feedback that changes the duty cycle like above ?, if the output voltage is dependent on the duty cycle and Vin and if those are fixed values then Vout should be constant regardless of load ?, also I'm a bit confused on the working of the above schematic, is it trying to maintain Verror of 0V regardless of changes in Vout ?