I would say no, there is none, but not because it is absolutely theoretically impossible to model pleasantness of a sequence of notes, but because the search space and variables of this model are unimaginably huge that makes it impossible to come up with a decent model, even if one exists. For example, pleasantness is judged differently by people of different counties, people of different ages, people of different music backgrounds, ..... and even for the same person in different moods, different ages, ....).
In fact, in the late eighties, the topic of Generative Music started to get some attention from computer scientists who worked in the fields of artificial intelligence and machine learning. Generative Music is used to describe music pieces generated automatically or semi-automatically by computers.
In order to do that, the machine must have a model based on which, tries to form a sequence of notes which have a high chance of being pleasant to a specific audience. Back then, it turned out that like painting, poetry or any form of art, it is impossible to model pleasantness of a work of art.
Today, only a few research groups are still working on the topic of generative music around the world.