Mathematical modeling optimization model