CoGraM: Context-sensitive granular optimization method with rollback for robust model fusion