Harvested rainwater can support small-scale horticulture, but its value depends on the joint timing of rainfall, crop demand, capture area, and finite storage. We developed RainHarvest Garden Optimizer, an open-source R/Shiny decision-support application that couples crop phenology and crop-water requirements with rainwater capture, monthly tank storage, and linear-programming crop allocation. The revised formulation explicitly represents pre-irrigation storage, end-of-month storage, overflow, and non-negative water availability, and was evaluated through spatial climatologies, observed interannual variability, factorial climatic perturbations, and one-at-a-time sensitivity analysis. Across ten climatic cells, annual precipitation ranged from 384.7 to 951.4 mm and the annual ratio from 0.20 to 0.61. Under the driest climatology, reaching 95% cultivated area required substantially greater catchment and storage infrastructure than under the wettest climate, while an exceptionally dry 2023 realization at T01 reduced maximum cultivated area to 61.7% even at the largest evaluated infrastructure combination. One-at-a-time analysis identified precipitation and tank capacity as the dominant physical drivers of response: a 20% reduction in precipitation decreased cultivated area by 17.7% and the gross-revenue (GR) objective by 23.0% on average. The application is intended for strategic, pre-season planning and identifies fully irrigated feasible crop plans rather than simulating yield loss under deficit irrigation.
Modeling milk yield in dairy cows is essential for improving management decisions, but traditional lactation curve models often fail to capture individual variability. Machine learning approaches offer greater flexibility; however, their performance in small, within-herd datasets and their reliance on explicit cow identification remain unclear, particularly in grazing systems. This study aimed to evaluate whether routinely measured biological traits can substitute for cow identification in machine learning models for predicting daily milk yield within a herd under limited data conditions. The dataset comprised 62 lactations from 48 Holstein–Friesian cows in a grazing system. Two machine learning models were developed: one including cow identification (With ID) and another excluding cow identification but incorporating milk quality traits, body weight, and body condition score (Without ID). Both models were compared with the Wood lactation model fitted to individual cows. The With ID and Without ID models achieved values of 0.97 and 0.93 and RMSE values of 1.2 and 1.6 , respectively. Both machine learning models outperformed the Wood model fitted individually to each cow ( < 0.90; RMSE > 2.03 ), which represents an implicitly cow-specific approach. The model including cow identification therefore served as a machine learning analogue to this benchmark. Importantly, the trait-based model closely matched the performance of the cow-specific model. These results demonstrate that machine learning models based on routinely measured traits provide a practical approach for predicting within-herd milk yield from small datasets, while retaining much of the accuracy of cow-specific models.