The simulation takes a lot of time. Please let me know what can me done to improve simulation take also. The battery charges on hourly basis, but when the simulation is run for more than half an hour, Matlab 2012b hangs and nothing can be done but restart Matlab. I'm using inductor and power components for simulation, I have seen that power components does increase the simulation time. I do guess because of the data stored in workspace the Matlab is getting hanged. Please provide me suggestions to perform this simulation.