Mathematical model and lingo software