Professional Documents
Culture Documents
Greenhouse Monitoring & Controlling Agent: AI314 Autonomous Multiagent Systems
Greenhouse Monitoring & Controlling Agent: AI314 Autonomous Multiagent Systems
Spring 2021
I- Defining the Problem
The job of the monitoring and controlling agent is to maintain microclimate by
controlling its variables. To be able to maintain microclimate variables the agent
must monitor a set of factors:
• Outer climate (temperature, relative humidity, solar radiation, wind speed, wind
direction and rainfall rate)
• Ventilation and fogging system (for temperature, humidity, and CO2 control)
• Lighting and shading system (for Light intensity and solar radiation control)
• Irrigation and nutrition system (for soil composition and moisture control)
our problem is to build and agent that can find the combination of actions to be
taken that will result in a microclimate that maximizes production and reduces
costs.
Problem Formulation:
• Goal test: Checking whether the estimated measures of temperature and humidity are within the required
range.
• States: The state is determined by the previous actions that has been taken upon each variable (Increased,
Decreased, Maintained). The total number of states is 9 states.
• Initial State: Both variables are maintained as they are in the measurements at the corresponding moment.
• Actions: Each state has 4 actions, increase temperature, decrease temperature, increase humidity, decrease
humidity.
• Transition model: each action would lead to a change in each environmental variable. Changes are estimated
for each action depending on the values of the environmental variables.
• Path cost: Every action has a cost that is defined at the beginning depending on how much resources it’s
going to consume (i.e., electricity, time, etc.)
State Space Diagram
Solving the Problem
The complexity of this solution at the worst case (Agent had to go through all
states before it finds optimal solution) is O(bm) where b is the branching factor
and m is the maximum depth of search tree and the total number of iterations
will be the number of states.
The space complexity is O(bm) where b is the branching factor and m is the
maximum depth of search tree. In our case the branching factor is 4 and
maximum depth is going to be 3.
Solving using BFS
When applying the BFS technique on our problem, the agent is going to
traverse in the search tree layer wise by checking all the possible states that
can be reached from the current state.
The same strategy used in DFS can be applied here, which is applying the goal
test at each state and terminate if the optimal solution was reached.
In contrast with DFS, BFS stores newly discovered nodes in a FIFO queue
which in turn increases the space complexity. The space complexity of BFS
search is O(bd) where b is the branching factor and d the depth of the
shallowest solution. In our case it will be O(43).
The below diagram shows how the agent is going to explore solutions through the search tree.