Foraging is searching for wild food resources. It affects an animal's fitness because it plays an important role in an animal's ability to survive and reproduce. Foraging theory is a branch of behavioral ecology that studies the foraging behavior of animals in response to the environment where the animal lives.
Behavioral ecologists use economic models to understand foraging; many of these models are a type of optimal model. Thus foraging theory is discussed in terms of optimizing a payoff from a foraging decision. The payoff for many of these models is the amount of energy an animal receives per unit time, more specifically, the highest ratio of energetic gain to cost while foraging. Foraging theory predicts that the decisions that maximize energy per unit time and thus deliver the highest payoff will be selected for and persist. Key words used to describe foraging behavior include resources, the elements necessary for survival and reproduction which have a limited supply, predator, any organism that consumes others, and prey, an organism that is eaten in part or whole by another.
Behavioral ecologists first tackled this topic in the 1960s and 1970s. Their goal was to quantify and formalize a set of models to test their null hypothesis that animals forage randomly. Important contributions to foraging theory have been made by:
Several factors affect an animal's ability to forage and acquire profitable resources.
Learning is defined as an adaptive change or modification of a behavior based on a previous experience. Since an animal's environment is constantly changing, the ability to adjust foraging behavior is essential for maximization of fitness. Studies in social insects have shown that there is a significant correlation between learning and foraging performance.
In nonhuman primates, young individuals learn foraging behavior from their peers and elders by watching other group members forage and by copying their behavior. Observing and learning from other members of the group ensure that the younger members of the group learn what is safe to eat and become proficient foragers.
One measure of learning is 'foraging innovation'--an animal consuming new food, or using a new foraging technique in response to their dynamic living environment. Foraging innovation is considered learning because it involves behavioral plasticity on the animal's part. The animal recognizes the need to come up with a new foraging strategy and introduce something it has never used before to maximize his or her fitness (survival). Forebrain size has been associated with learning behavior. Animals with larger brain sizes are expected to learn better. A higher ability to innovate has been linked to larger forebrain sizes in North American and British Isle birds according to Lefebvre et al. (1997). In this study, bird orders that contained individuals with larger forebrain sizes displayed a higher amount of foraging innovation. Examples of innovations recorded in birds include following tractors and eating frogs or other insects killed by it and using swaying trees to catch their prey.
Another measure of learning is spatio-temporal learning (also called time-place learning), which refers to an individual's ability to associate the time of an event with the place of that event. This type of learning has been documented in the foraging behaviors of individuals of the stingless bee species Trigona fulviventris. Studies showed that T. fulviventris individuals learned the locations and times of feeding events, and arrived to those locations up to thirty minutes before the feeding event in anticipation of the food reward.
Foraging behavior can also be influenced by genetics. The genes associated with foraging behavior have been widely studied in honeybees with reference to the following; onset of foraging behavior, task division between foragers and workers, and bias in foraging for either pollen or nectar. Honey bee foraging activity occurs both inside and outside the hive for either pollen or nectar. Similar behavior is seen in many social wasps, such as the species Apoica flavissima. Studies using quantitative trait loci (QTL) mapping have associated the following loci with the matched functions; Pln-1 and Pln-4 with onset of foraging age, Pln-1 and 2 with the size of the pollen loads collected by workers, and Pln-2 and pln-3 were shown to influence the sugar concentration of the nectar collected.
The presence of predators while a (prey) animal is foraging affects its behaviour. In general, foragers balance the risk of predation with their needs, thus deviating from the foraging behaviour that would be expected in the absence of predators. An example of this balanced risk can be observed in the foraging behavior of A. longimana.
Similarly, parasitism can affect the way in which animals forage. Parasitism can affect foraging at several levels. Animals might simply avoid food items that increase their risk of being parasitized, as when the prey items are intermediate hosts of parasites. Animals might also avoid areas that would expose them to a high risk of parasitism. Finally, animals might effectively self-medicate, either prophylactically or therapeutically.
Foraging can be categorized into two main types. The first is solitary foraging, when animals forage by themselves. The second is group foraging. Group foraging includes when animals can be seen foraging together when it is beneficial for them to do so (called an aggregation economy) and when it is detrimental for them to do so (called a dispersion economy).
Solitary foraging the variety of foraging in which animals find, capture and consume their prey alone. Individuals can manually exploit patches or they can use tools to exploit their prey. Animals may choose to forage on their own when the resources are abundant, which can occur when the habitat is rich or when the number of conspecifics foraging are few. In these cases there may be no need for group foraging. In addition, foraging alone can result in less interaction with other foragers, which can decrease the amount of competition and dominance interactions an animal deals with. It will also ensure that a solitary forager is less conspicuous to predators. Solitary foraging strategies characterize many of the phocids (the true seals) such as the elephant and harbor seals. An example of an exclusive solitary forager is the South American species of the harvester ant, Pogonomyrmex vermiculatus.
Some examples of tool use include dolphins using sponges to feed on fish that bury themselves in the sediment,New Caledonian crows that use sticks to get larvae out of trees, and chimpanzees that similarly use sticks to capture and consume termites.
The theory scientists use to understand solitary foraging is called optimal foraging theory. Optimal foraging theory (OFT) was first proposed in 1966, in two papers published independently, by Robert MacArthur and Eric Pianka, and by J. Merritt Emlen. This theory argues that because of the key importance of successful foraging to an individual's survival, it should be possible to predict foraging behavior by using decision theory to determine the behavior that an "optimal forager" would exhibit. Such a forager has perfect knowledge of what to do to maximize usable food intake. While the behavior of real animals inevitably departs from that of the optimal forager, optimal foraging theory has proved very useful in developing hypotheses for describing real foraging behavior. Departures from optimality often help to identify constraints either in the animal's behavioral or cognitive repertoire, or in the environment, that had not previously been suspected. With those constraints identified, foraging behavior often does approach the optimal pattern even if it is not identical to it. In other words, we know from optimal foraging theory that animals are not foraging randomly even if their behavior doesn't perfectly match what is predicted by OFT.
There are many versions of optimal foraging theory that are relevant to different foraging situations. These models generally possess the following components according to Stephens et al. 2007;
Some of these versions include:
The optimal diet model, which analyzes the behavior of a forager that encounters different types of prey and must choose which to attack. This model is also known as the prey model or the attack model. In this model the predator encounters different prey items and decides whether to spend time handling or eating the prey. It predicts that foragers should ignore low profitability prey items when more profitable items are present and abundant. The objective of this model is to identify the choice that will maximize fitness. How profitable a prey item is depends on ecological variables such as the time required to find, capture, and consume the prey in addition to the energy it provides. It is likely that an individual will settle for a trade off between maximizing the intake rate while eating and minimising the search interval between prey.
Patch selection theory, which describes the behavior of a forager whose prey is concentrated in small areas known as patches with a significant travel time between them. The model seeks to find out how much time an individual will spend on one patch before deciding to move to the next patch. To understand whether an animal should stay at a patch or move to a new one, think of a bear in a patch of berry bushes. The longer a bear stays at the patch of berry bushes the less berries there are for that bear to eat. The bear must decide how long to stay and thus when to leave that patch and move to a new patch. Movement depends on the travel time between patches and the energy gained from one patch versus another. This is based on the marginal value theorem.
Central place foraging theory is a version of the patch model. This model describes the behavior of a forager that must return to a particular place to consume food, or perhaps to hoard food or feed it to a mate or offspring. Chipmunks are a good example of this model. As travel time between the patch and their hiding place increased, the chipmunks stayed longer at the patch.
In recent decades, optimal foraging theory has often been applied to the foraging behavior of human hunter-gatherers. Although this is controversial, coming under some of the same kinds of attack as the application of sociobiological theory to human behavior, it does represent a convergence of ideas from human ecology and economic anthropology that has proved fruitful and interesting.
Group foraging is when animals find, capture and consume prey in the presence of other individuals. In other words, it is foraging when success depends not only on your own foraging behaviors but the behaviors of others as well. An important note here is that group foraging can emerge in two types of situations. The first situation is frequently thought of and occurs when foraging in a group is beneficial and brings greater rewards known as an aggregation economy. The second situation occurs when a group of animals forage together but it may not be in an animal's best interest to do so known as a dispersion economy. Think of a cardinal at a bird feeder for the dispersion economy. We might see a group of birds foraging at that bird feeder but it is not in the best interest of the cardinal for any of the other birds to be there too. The amount of food the cardinal can get from that bird feeder depends on how much it can take from the bird feeder but also depends on how much the other birds take as well.
In red harvester ants, the foraging process is divided between three different types of workers: nest patrollers, trail patrollers, and foragers. These workers can utilize many different methods of communicating while foraging in a group, such as guiding flights, scent paths, and "jostling runs", as seen in the eusocial bee Melipona scutellaris.
Tai chimpanzee's also engage in foraging for meats when they can, which is achieved through group foraging. Where the positive correlation has been found between the success of the hunt and the size of the foraging group. The chimps have also been observed implying rules with their foraging, where there is a benefit to becoming involved in the through allowing hunter first access to the fresh kills 
As already mentioned, group foraging brings both costs and benefits to the members of that group. Some of the benefits of group foraging include being able to capture larger prey, being able to create aggregations of prey, being able to capture prey that are difficult or dangerous and most importantly reduction of predation threat. With regard to costs, however, group foraging results in competition for available resources by other group members. Competition for resources can be characterized by either scramble competition whereby each individual strives to get a portion of the shared resource, or by interference competition whereby the presence of competitors prevents a forager's accessibility to resources. Group foraging can thus reduce an animal's foraging payoff.
Group foraging may be influenced by the size of a group. In some species like lions and wild dogs, foraging success increases with an increase in group size then declines once the optimal size is exceeded. A myriad number of factors affect the group sizes in different species. For example, lionesses (female lions) do not make decisions about foraging in a vacuum. They make decisions that reflect a balance between obtaining food, defending their territory and protecting their young. In fact, we see that lion foraging behavior does not maximize their energy gain. They are not behaving optimally with respect to foraging because they have to defend their territory and protect young so they hunt in small groups to reduce the risk of being caught alone. Another factor that may influence group size is the cost of hunting. To understand the behavior of wild dogs and the average group size we must incorporate the distance the dogs run.
Theorizing on hominid foraging during the Aurignacian Blades et al (2001) defined the forager performing the activity to the optimal efficiency when the individual is having considered the balance of costs for search and pursuit of prey in considerations of prey selection. Also in selecting an area to work within the individual would have had to decide the correct time to move to another location corresponding to perception of yield remaining and potential yields of any given area available. 
The theory scientists use to understand group foraging is called the Ideal free distribution. This is the null model for thinking about what would draw animals into groups to forage and how they would behave in the process. This model predicts that animals will make an instantaneous decision about where to forage based on the quality (prey availability) of the patches available at that time and will choose the most profitable patch, the one that maximizes their energy intake. This quality depends on the starting quality of the patch and the number of predators already there consuming the prey.