The aim of this work is to test in simulations a variable structure algorithm for adaptive cruise control in vehicles. The simulation tests will include two scenarios: first, the platooning problem in vehicles, that consists in to achieve a stable flow for N controlled vehicles and, secondly, the trafic flow behaviour when this ACC algorithm is implemented in an heterogenous fleet mixing human drivers and autonomous vehicles