In this paper, a hybrid cuckoo search technique is combined with a single-layer neural network (BHCS-ANN) to approximate the solution to a differential equation describing the curvature shape of the cornea of the human eye. The proposed problem is transformed into an optimization problem such that the L2–error remains minimal. A single hidden layer is chosen to reduce the sink of the local minimum values. The weights in the neural network are trained with a hybrid cuckoo search algorithm to refine them so that we obtain a better approximate solution for the given problem. To show the efficacy of our method, we considered six different corneal models. For validation, the solution with Adam’s method is taken as a reference solution. The results are presented in the form of figures and tables. The obtained results are compared with the fractional order Darwinian particle swarm optimization (FO-DPSO). We determined that results obtained with BHCS-ANN outperformed the ones acquired with other numerical routines. Our findings suggest that BHCS-ANN is a better methodology for solving real-world problems.