Research on Crop Planting Strategies Based on Monte Carlo Simulation and Genetic Algorithm

Kehan Li, Yao Sun, Shenyang Li, Yuxiang Li, Yang HanHighlights 2025

Abstract

Sustainable agricultural development is challenged by global population growth and resource scarcity. Efficient land use and crop management are crucial for stable yields and maximising benefits from limited land. This paper aims to improve land profitability and marketability through scientific cropping plans that take into account soil nutrient cycling, crop rotation, seasonal adaptability and market dynamics. The study first developed a linear programming model to optimise crop planting in a mountainous area in northern China from 2024 to 2030. By constructing objective functions and constraints and solving them using a genetic algorithm, the maximum annual returns were 6.2 million yuan and 7.2 million yuan under two scenarios, with high model stability. Next, planting costs and selling prices were incorporated and the Monte Carlo algorithm was used to simulate changes in the indicators, further optimising the model to achieve a maximum annual return of 5.5 million yuan. Finally, taking into account crop substitution and complementarity, systematic clustering and multiple linear regression were used to derive the optimal planting configuration, increasing the maximum annual return to 5.6 million yuan. These results demonstrate the effectiveness of integrating advanced techniques to improve agricultural productivity and economic returns.

Introduction

Modern agriculture is a high-stakes balancing act. Farmers must maximize profits while navigating a maze of constraints: soil nutrient depletion, the risk of "heavy cropping" (planting the same crop repeatedly, which invites pests and disease), and the inherent volatility of market prices. In mountainous regions like Northern China, these challenges are amplified by limited land and varying seasonal adaptability. Most existing models are either too rigid (ignoring market fluctuations) or too narrow (ignoring long-term soil health). This research bridges this gap by creating a model that optimizes planting strategies for the years 2024–2030, accounting for both biological necessities and economic uncertainties.

Methodology

The researchers employed a multi-layered computational approach utilizing a dataset from the Mathematical Contest in Modeling (MCM) covering 41 crops across 54 plots in Northern China.

Optimization Framework

  1. Linear Programming (LP): A baseline model defined the objective of maximizing revenue minus costs against constraints like land area and seasonal timing.
  2. Genetic Algorithm (GA): To solve the complex optimization problem, the team used a GA. This evolutionary approach treats planting schemes as "chromosomes," using selection, crossover, and mutation to find the most profitable configuration. A unique "reward and punishment" mechanism was integrated into the fitness function to enforce rules like legume rotation.
Figure 1: The Genetic Algorithm demonstrates steady improvement in the best fitness score over 50 generations, indicating successful convergence toward an optimal planting strategy.
  1. Monte Carlo Simulation: To account for real-world volatility, Monte Carlo methods simulated thousands of scenarios involving 5% annual fluctuations in planting costs and selling prices. This ensures the resulting strategy is robust against market unpredictability.
  2. Systematic Clustering & Regression: Euclidean distance clustering grouped crops with similar economic profiles, while Multiple Linear Regression (MLR) refined the configuration by analyzing relationships between sales volume, price, and cost.

Key Results and Insights

The optimized strategy yielded an average annual return of approximately 6.2 million yuan, representing a 5% increase (roughly 330,000 yuan) over the 2023 baseline.

The "Diversification Dividend"

A significant finding was that optimal strategies involve dividing single plots among different crops. While the 2023 baseline showed many plots dedicated to a single crop, the model demonstrated that sub-dividing land increases average annual income by better utilizing seasonal windows. Furthermore, soil health was treated as a hard constraint; the framework mandates legume rotation at least once every three years to act as a natural fertilizer booster.

Model Stability and Robustness

Sensitivity analysis proved the model's resilience. Even with fluctuations in planting area, the total return remained remarkably stable. Initial GA optimization suggested returns as high as 7.2 million yuan, but once Monte Carlo simulations introduced market risk, the "robust" return settled at a more realistic 5.5–5.6 million yuan, highlighting the importance of accounting for uncertainty.

Figure 3: Sensitivity analysis showing the stability of total returns across a range of percentage fluctuations in input variables, confirming the model's robustness.

Conclusion

This research demonstrates that integrating Genetic Algorithms with Monte Carlo simulations provides a powerful tool for sustainable agricultural planning. While the model currently relies on 2023 baseline data, future work will focus on expanding the scope to more diverse regions and integrating real-time data to improve adaptability. By incorporating external factors like climate change and policy shifts, these models can provide policy makers and farmers with actionable insights to ensure food security and rural development in a rapidly changing world.

Summary updated

BibTeX
@inproceedings{li2025research,
  author = {Kehan Li and Yao Sun and Shenyang Li and Yuxiang Li and Yang Han},
  title = {{Research on Crop Planting Strategies Based on Monte Carlo Simulation and Genetic Algorithm}},
  booktitle = {Highlights},
  year = {2025},
  doi = {10.54097/sq75h389},
}
Figure