Automatic Model Configuration Algorithm (AMCA)