In simulating DC-DC Converters, the scenario that comes into mind is what happens to the output of the converter when the load suddenly changes. However, most of the design available simulated one fixed load. This simulation file allows user to dynamically change the load by varying the value of on/ off delay resistor. The on/off delay has been implemented using an ideal mosfet which act as a switch (relay is not available in Simcape Specialized Technology). They delay time can be set by configuring the delay block and the transient behavior can be seen in the scope (Load Voltage and Current). Furthermore, the reference voltage can be changed and PID can be tuned according to the desired response.
Abdul Basit Mirza (2019). Boost Converter with PID Control and Load Variation (https://www.mathworks.com/matlabcentral/fileexchange/64265-boost-converter-with-pid-control-and-load-variation), MATLAB Central File Exchange. Retrieved .
Scope screenshot added.