On the determination of the optimal parameters in the CAM model