Developing Data-Driven Optimization Capabilities for Agribusiness Supply Chains in South Africa

Feb 6, 2024

Submitted by Dr. Haitao Li Professor and Chair

Supply Chain & Analytics Department ҹӰԺ – St. Louis

Research Activities Prior to the UWC Visit

Prior to my visit to UWC in Summer 2023, I have been working on a farming planning application that aims to optimize the crop portfolio and production planning to satisfy the market demand over a planning horizon. The addressed optimization problem was motivated by the challenges and decision needs at two local farms in the Cape Town area: the Mhani Gingi Community Garden and the Middlepos Farm.

The addressed optimization problem can be described as follows. At the beginning of each planning cycle, the ABC Farm needs to make the following decisions: (i) What produce to grow and to purchase to meet the demand? (ii) How much to grow and to purchase, and at what time periods (e.g., weeks)? The decisions must satisfy the following main constraints (requirements and limits):

  • Satisfying the demand of produce in each period of the planning horizon
  • Inventory balancing constraint from one period to the next
  • Maximum availability of labor cannot be exceeded
  • Maximum availability of water cannot be exceeded
  • Maximum availability of space cannot be exceeded

The objective is to maximize the total profit as the total revenue subtracting total operational costs consisting of: purchasing cost, production and operating cost, labor cost, and inventory holding cost.

Using the real world data provided by the Mhani Gingi Foundation, a case study is performed to validate the optimization model. In the case study, we consider multiple community gardens with a total of 10 acres and a planning horizon consists of 52 weeks. The basic produce data are collected as shown in Table 1, including time to harvest, lead time to purchase, labor hours required, and % of loss per time period.

Table 1. The basic produce data.

ProduceTime to harvest (Periods)Lead time to purchase (Periods)Man Hours required per acreFraction Lost per time period
Pumpkin162200.01
Beetroot8147.450.02
Red Cabbage1011170.05
Eggplant10282.50.01
Cauliflower102250.03
Broccoli183500.02

The produce data varying with time include purchasing cost, selling price, demand and water requirement, which is shown in Table 2.

Table 2. The produce data varying with time.

Purchase Cost1234567891011121314
Pumpkin48484848484848484848484852.852.8
Beetroot68686868686868686868686874.874.8
Red Cabbage64646464646464646464646470.470.4
Eggplant72727272727272727272727279.279.2
Cauliflower8080808080808080808080808888
Broccoli160160160160160160160160160160160160176176
               
               
               
Selling Price1234567891011121314
Pumpkin12121212121212121212121213.213.2
Beetroot17171717171717171717171718.718.7
Red Cabbage16161616161616161616161617.617.6
Eggplant18181818181818181818181819.819.8
Cauliflower2020202020202020202020202222
Broccoli4040404040404040404040404444
               
               
               
Demand1234567891011121314
Pumpkin00033170004623000298100
Beetroot00035890003106000489600
Red Cabbage00034020004286000342700
Eggplant00047610004839000416100
Cauliflower00028190003247000271100
Broccoli00033100003530000425600
Water Required/kg1234567891011121314
Pumpkin5050505050505050555555555555
Beetroot3030303030303030353535353535
Red Cabbage7070707070707070757575757575
Eggplant1010101010101010121212121212
Cauliflower2222222222222222252525252525
Broccoli36.436.436.436.436.436.436.436.440.440.440.440.440.440.4
               
               
               
Yield (Kg/acre)1234567891011121314
Pumpkin90929092909290929092909290929092909290929092909290929092
Beetroot1500015000150001500015000150001500015000150001500015000150001500015000
Red Cabbage1400014000140001400014000140001400014000140001400014000140001400014000
Eggplant2400024000240002400024000240002400024000240002400024000240002400024000
Cauliflower80948094809480948094809480948094809480948094809480948094
Broccoli29372937293729372937293729372937293729372937293729372937
               
               
               
Energy Required/kg1234567891011121314
Pumpkin00000000000000
Beetroot00000000000000
Red Cabbage00000000000000
Eggplant00000000000000
Cauliflower00000000000000
Broccoli00000000000000

The additional operational data include inventory holding cost, maximum water capacity, maximum labor capacity, and fertilizer consumption and cost.

The base scenario was solved with a maximum of R995,717.25. An example of optimal planning solution for Pumpkin is provided in Figure 1. The optimal solution prescribes a combination of planting and purchasing of produce to meet demand during the planning horizon. It also shows the land use and inventory to be carried over time periods. Note that the pattern of planting and purchasing will not be intuitive without the decision-support provided by the optimization model.

Graph showing Quantity of pumpkin base on time periods in weeks

The optimization model enables data-driven decision-support for farming planning through the sensitivity analysis (also known as what-if analysis). For instance, one may ask the question what if there is less land available, e.g, reducing from 10 acres to 8 acres. Solving the model with a total of 8 acres of land yields a loss of R466,760.25.

A web-based decision-support tool has been developed with the optimization model being as the “engine”, which takes inputs from user through the graphical user interface (GUI), and outputs solutions after solving the model.

Activities During My Visit to the UWC

The main activities during my visit to the UWC include a research seminar to UWC faculty and students, and a presentation to the Mahni Gingi Foundation as the end-user of this work.

UMSAEP grant. Both presentations are attached with this report.

Optimization Applications in Agriculture and Food Supply Chains-UWC-Haitao Li.pptx

Research Seminar: Optimization Applications in Agriculture and Food Supply Chains

An agribusiness supply chain is a complex system with unique characteristics and challenges, including accessibility, safety, perishability, and low margin. The need for efficient, safe, quality, equitable, and resilient decision-support through all stages of a food chain: growing/production, processing, storage, distribution/transportation, and delivery, create abundant opportunities for prescriptive analytics, or data-driven optimization. In this seminar, I will start with an overview of applications of optimization at the strategic, tactical and operational levels of a food supply chain. I will then showcase my research project in collaboration with the Mahni Gingi

Foundation to address their farm planning decision needs in terms of what, when, how much to grow and purchase to meet the demands. An outline of my talk is provided below:

  • Introduction and Overview of Data-Driven Optimization for Agriculture and Food Supply Chains
  • Example Applications:
     
    • Strategic: Food Supply Chain Network Design
    • Tactical: Food Supply Chain Configuration
    • Operational: Food Replenishment and Delivery
  • Farming Planning for the Mahni Gingi Foundation Farm Planning for Mhani Gingi-Haitao Li.pptx

    I also met with Dr. Malcolm Garbutt and worked with him and Dr. Douglas Smith on an UMSAEP proposal to address the energy generation in a residential community in South Africa. The proposal was later funded by the UMSAEP program, and Dr. Garbutt just finished his productive visit to UMSL in the last two weeks of Jan 2024. We are now moving full speed on this project. Several other Supply Chain & Analytics faculty, including Dr. Shakiba Enayati and Dr. Temidayo Akenroye, also established connection and potential collaboration with Dr. Garbutt.

Deliverables

The deliverables of this project include:

  • This Project Report
  • A research article submitted to Transportation Research: Part B. “Optimizing the Configuration of Agri-food Supply Chains with both Demand- and Supply-Side Risks”, 2024.
  • A web-based decision-support tool for Farm Planning

Reviewed 2025-10-23