apsimNGpy: The Next-Generation Agro-ecosystem Simulation Library
Introduction
apsimNGpy is a cutting-edge, open-source framework designed for advanced agroecosystem modeling. Built on object-oriented principles, it provides:
Fast batch file simulation
Model prediction and evaluation
Seamless APSIMX file editing
APSIM template model inspection
Weather data retrieval
Efficient soil profile development
Parameter optimization (still undergoing rigorous tests). apsimNGpy support a broad selection of local and global optimization methods., including genetic multi-objective optimizations.
Global and local sensitivity analysis
Distributed computing framework.
Table of Contents
Getting Started
Inspection & Editing
Optimization & Trade-off Analysis
- Single-Objective Optimization with apsimNGpy
- Mixed-Variable Optimization in apsimNGpy
- Multi-Objective Optimization with apsimNGpy
- Step 1: Import required modules
- Step 2: Initialize the APSIM model runner
- Step 3: Define Objective Functions
- Step 4a: Define decision variables (Approach 1 - direct List)
- Step 3b: Define decision variables (Approach 2 - using
add_control()
) - Step 5: Run the NSGA-II optimizer
- Step 6: Plot the Pareto Front
- Comparing objectives without mult-objective optimization
Support Development
Tutorials
CheatSheet
API Reference
- apsimNGpy: API Reference
- ApsimModel
- ContinuousVariable
- CoreModel
- MixedVariable
- ModelTools
- apsimNGpy.core.base_data
- apsimNGpy.core.load_model
- apsimNGpy.core.runner
- apsimNGpy.core_utils.database_utils
- apsimNGpy.exceptions
- apsimNGpy.manager.soilmanager
- apsimNGpy.manager.weathermanager
- apsimNGpy.parallel.process
- apsimNGpy.validation.evaluator