There is, in fact, quite a science of producing foods that have pleasing tastes. They call the optimum combination of flavors the "bliss point":
http://www.nytimes.com/2013/02/24/magazine/the-extraordinary...
http://www.nytimes.com/2013/02/24/magazine/the-extraordinary...
That might be linked in the article, but even clicking thru via a google search it is locked down now so I can't check.