Averaged-Switch Modeling and Simulation