Code Monkey home page Code Monkey logo

multi_objective_irrigation's Introduction

Multi-objective irrigation optimization

Multi-objective approach to optimize irrigation using a crop simulation model and historical weather data.

License issues stars Rg

We propose a machine learning approach based on the crop simulation model WOFOST to assess the crop yield and water use efficiency. In our work, we use historical weather to evaluate extreme weather scenarios. The application of multi-criteria optimization based on the non-dominated sorting genetic algorithm-II (NSGA-II) allows users to find the dates and volume of water for irrigation, maximizing the yield and reducing the water loss.

graphical


Optimization process

opimization

Google Colab

How to run example of WOFOST model and multi-objective irrigation optimization code?

Open How_to_start.ipynb in Google Colab!

Open In Colab

To plot results of optimization open Plots_for_ICCS.ipynb

Open In Colab

Dependencies

PCSE/WOFOST - Python Crop Simulator Environment

https://pcse.readthedocs.io/en/stable/

PyMOO - Multi-objective optimization

https://pymoo.org/

Installation

Clone this repository and create new conda env on your local machine

git clone https://github.com/EDSEL-skoltech/multi_objective_irrigation.git

Create new env with pcse package for crop models WOFOST

conda env create -f py3_pcse.yml

conda activate py3_pcse

Usage example

To run multi-objective optimization with example from Moscow region and potato crop run file

./run_example.sh

User can edit input file --path_to_user_file and other parameters

python3 multiobjective_optimizer.py --path_to_data_dir './util/input_data/' 

--path_to_user_file './util/input_data/malino_potato.json' 

--path_to_CSV_weather './data/meteo' 

--num_generation '5' --population_size '10' 

--path_to_npy_files './experiments/test/potato/'

User can write main information about agricultural management in JSON format

Example for Moscow region

Here we setup geo coordinates,

Sowing date in format YYYY-MM-DD as "crop_start"

Harvesting date in format YYYY-MM-DD as "crop_end"

User can select crop among number of crops: list of crops

Irrigation dates and volumes (cm), date of fertilization and amounts on NPK (kg)

{"name": "Potato", 
    "latitude": 54.85, 
    "longitude": 38.85, 
    "crop_start": "2019-04-20", 
    "crop_end": "2019-09-15", 
    "crop_name": "potato", 
    "irrigation_events": ["2019-06-10", "2019-06-20", "2019-07-01", "2019-07-10", "2019-07-20","2019-07-29", "2019-08-15"], "irrigation_ammounts": [2, 2, 2, 2, 2, 2, 2], 
    "npk_events": ["2019-06-22"], 
    "npk": [[90,10,90]]
    }

Meta

Mikhail Gasanov โ€“ [email protected]

License

Distributed under the MIT license. See LICENSE for more information.

TO-DO list

  • Weather loader from NASA-POWER
  • Test how weather loader convert data to CSV
  • Function to save optimal irrigation dates and volumes to txt file

Contributing

  1. Fork it (https://github.com/EDSEL-skoltech/multi_objective_irrigation/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

multi_objective_irrigation's People

Contributors

mishagrol avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.