Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write a matlab script for this soil moisture is given by soil = zeros(1,120) soil(1) = 0.8 decay = 0.08*soil(t) for t = 1:119 soil(t+1)
write a matlab script for this soil moisture is given by soil = zeros(1,120) soil(1) = 0.8 decay = 0.08*soil(t) for t = 1:119 soil(t+1) = soil(t) - decay end
In this task, you have to design a controller that decides when to irrigate your field. For helping you in this decision-making process, you have invested in a smart sensing device that provides you regular information about the soil moisture content of your field. Every morning you have to decide whether to irrigate or not. You need to perform the following steps for decision making: 1. Read current soil moisture level M(t). 2. If (M(t) is less than Min. moisture and irrigation supply l(t) is greater than zero) water_input(t) = minimum of Inlet_size and I(t) Update remaining irrigation supply l(t+1) 3. else do nothing, i.e, l(t+1) = f(t) The parameters to be used are: No. of Days Initial Yield Min. Soil Moisture Max. Soil Moisture 120 days 100 0.15 0.85 0.08 Irrigation total Inlet Size Water Delay Yield Decay Rate l_total: 0.6 0.2 21 days / Field requirement Your deliverable in this task is a MATLAB code for the controller described in the above steps. After designing the controller, you should verify its performance by selecting various values for initial irrigation supply l_total and Inlet_size. Plot the soil moisture dynamics, rain event, irrigation total and expected yield (using stem command) for entire season (120 days) on a single figure with subplot command. Provide an appropriate title and also label both axes. Use different marker colors for each subplot. In this task, you have to design a controller that decides when to irrigate your field. For helping you in this decision-making process, you have invested in a smart sensing device that provides you regular information about the soil moisture content of your field. Every morning you have to decide whether to irrigate or not. You need to perform the following steps for decision making: 1. Read current soil moisture level M(t). 2. If (M(t) is less than Min. moisture and irrigation supply l(t) is greater than zero) water_input(t) = minimum of Inlet_size and I(t) Update remaining irrigation supply l(t+1) 3. else do nothing, i.e, l(t+1) = f(t) The parameters to be used are: No. of Days Initial Yield Min. Soil Moisture Max. Soil Moisture 120 days 100 0.15 0.85 0.08 Irrigation total Inlet Size Water Delay Yield Decay Rate l_total: 0.6 0.2 21 days / Field requirement Your deliverable in this task is a MATLAB code for the controller described in the above steps. After designing the controller, you should verify its performance by selecting various values for initial irrigation supply l_total and Inlet_size. Plot the soil moisture dynamics, rain event, irrigation total and expected yield (using stem command) for entire season (120 days) on a single figure with subplot command. Provide an appropriate title and also label both axes. Use different marker colors for each subplotStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started