MGOC10H3 Lecture Notes - Semicolon, List Box
Document Summary
Chapter 2 solving lp models with lindo solver suite: can use lingo - www. lindo. com, can download student/demo version of software, can also solve linear programs with excel see textbook appendix 2. 3. Some lingo syntax: there is an = after the max or min in objective. Min = 6*v11+ 2*v12: lingo statements end with semicolon, start program with model: end of program with end , arithmetic operators: power ^ , multiply * , division / , addition + , subtraction - . Conversely, only variables and their coefficients are permitted on the left-hand side of constraints: @free(x1) - allows variable x1 to be unrestricted in sign. @bin(x1) specifies that x1 is 0 or 1 (binary) Lp model x1 = # soldiers produced each week x2 = # trains produced each week. 1x1 + 1x2 80 x1 40 x1 0 and x2 0. # of soldiers produced = x1 = 20, # of trains produced = x2 = 60, profits=objective value =.