******************************************************* * Mosel User Guide Example Problems * ================================= * * origin file chess2.mos * ``````````````` * Solving and solution output. * * (c) 2001 Dash Associates * author: Bob Daniel ******************************************************** * model "Chess 2" * We shall use Xpress-Optimizer * Decision variables: produced quantities Positive Variable small , * Number of small chess sets to make large ; * Number of large chess sets to make Variable Profit ; Equation Lathe , Boxwood , Def_obj ; Lathe.. 3*small + 2*large =l= 160 ; * Lathe-hours Boxwood.. small + 3*large =l= 200 ; * kg of boxwood Def_obj.. Profit =e= 5*small + 20*large ; * Objective function Model chess2 / all / ; Solve chess2 using lp maximazing Profit ; Display Profit.l ;