It is possible, but the specification above is too abstract to give a firm answer.
Please reach out to firstname.lastname@example.org and we can help you determine if the RT Box is an appropriate fit.
In the TI C2000 Target Support Package there is an example of a DC microgrid simulated using four interconnected RT Box 1's. There is a DC grid with variable and constant power loads, two battery energy storage systems (BESS), and an AC grid interface converter. The BESS's and grid converter are controlled using TI C2000 LaunchPads running code generated from PLECS. Your model sounds considerably more simple than this, but the demo would be a good place to start your efforts.