Remembering a good quality diet or patch generally has positive implications for fitness for animals, though there may be circumstances where memory could become detrimental. In the polyphagous pest insect Bactrocera tryoni (Froggatt) recent research indicates that memory contributes to their foraging strategy. When presented with a good quality host in which to lay eggs they will remember that host for a longer time than a poor host. Though when presented a poor host, the preference the following day will be for the poor host even if the good host is present, but this memory will decay quickly if they do not receive continual exposure. We wanted to know how optimal foraging strategy with and without memory would influence population and time spent in three host quality types: good, average, and poor in a local heterogeneous landscape context. An individual-based population model was developed to examine how these behaviours respond in four heterogeneous landscapes with host proportions of 30% and 60%, fragmented or aggregated. There were also three fruiting scenarios: simultaneous, or sequential with good host type fruiting first, or poor host type fruiting first. The mean daily population was similar between the different landscapes, except when fruit was available simultaneously and fragmented with 60% proportion of the landscape hosts where optimal foraging fly population was much higher than fly agents with memory. When fruits were available simultaneously the fly agents that had memory spent more time in poor and average hosts than the fly agents with optimal foraging behaviour. When hosts were fruiting sequentially there was little difference between the time spent in each host type. This is an interesting first look into incorporating memory mechanisms into an individual-based model using data from a polyphagous pest.