In what type of environment agents can operate in (static/dynamic, discrete/continuous, observable/partially observable, single or multi-agents operating together, deterministic/non-deterministic, episodic/non-episodic - chances are, if you're reading this blog then you know what I mean by these properties, so I won't delve into them in detail). Have you ever wondered where and how these agents are modelled? I.e. Surely we can improve on this idea - what if we wanted to artificially induce this rover with some simple thinking patterns? Wouldn't it be much better if it knew that a specific area has a large number of samples as opposed to it aimlessly travelling around Mars? Wouldn't it be better if it could use its previous history of actions to determine these areas and this would save money (space-stuff isn't cheap) and time. So, this is simple right? Right! But hold on a moment, chances are you didn't come to this blog to find out about a Mars rover. So essentially, it goes around an area on Mars, geographically cordoned off by space scientists using coordinates, it uses its camera to find pieces of rock and it uses its grabber to grab those samples. It has a claw - an actuator which can be used for the rover to grab onto the pieces of rock.It has a camera - a sensor which perceives the environment.How does it do that, you ask? Let's contemplate this: This rover has the job of autonomously gathering pieces of rock found on Mars. Let's break this down with a simple example. Stick with me, I promise it'll be worth your time. It does this by considering its previous history its interaction with the environment and the various mathematical sequences, combinations and pairs of percepts and actuators it has to assemble. Agents are being used everywhere, in our daily life we come across a machine which has to make decisions it has to decide what the most well-established path is, and whether it should take it. We use let in this model because it allows us to not rewrite a longer piece of code again and again ( other turtles-here).We live in a time and a world where AIs (I'll refer to an artificially intelligent entity as an agent in this blog) are becoming more and more prevalent in day to day life. Two situations might occcur: either a sad turtle will make its friend sad or a happy turtle will make its friend happy. Every time two turtles are on the same patch, one turtle will ask the other to change its shape. In the model example below, we have some happy and some sad turtles. Set total-outcome (total-outcome + new-outcome) For example, if we wanted a turtle to roll 6 dices and report the sum of the dices, we could use let as shown below: to-report roll-six let is very useful for calculating temporary values or creating temporary agentsets. Once you create a local variable with let, you can then use the set primitive to assign it a new value. Set my-friends (lput new-friend my-friends) Let people-nearby (other turtles in-radius 2) Similar to a global variable, a local variable's value is the same for all the turtles. A local variable is a variable that only exists within the procedure it was created in or within the brackets of a specific ask statement. Let creates a new local variable and sets its initial value.
0 Comments
Leave a Reply. |