A simulation capable of modeling grid-tied electrical systems, vehicle-to-grid (V2G) and vehicle-to-vehicle(V2V) resource sharing was developed within the MATLAB/Simulink environment. Using the steady state admittance matrix approach, the unknown currents and voltages within the network are determined at each time step. This eliminates the need for states associated with the distributed system. Each vehicle has two dynamic states: (1) stored energy and (2) fuel consumed while the generators have only a single fuel consumed state. One of its potential uses is to assess the sensitivity of fuel consumption with respect to the control system parameters used to maintain a vehicle-centric bus voltage under dynamic loading conditions.