There is a short story, most probably by an American science fiction author, not sure about the year (can be anything between 1960s and 1990s, most probably 1980s).
The main idea is that there is some machine that can predict how a romantic relationship with a particular person will develop. The protagonist uses this machine to see his predicted future (like a film) with several potential wives and all of them end badly.
Finally he marries the woman who operates the machine without even checking the film about their future; she said she watched the film but never tells what's there.