Source: https://www.lindo.com/downloads/LINGO_text/Chapter6.pdf