MODEL: Title LongestPath - Primal; ! This is a comment line ; DATA: ! Input the coefficients to avoid hardwiring the data - optional; ENDDATA ! 0,1 integer variables must be declared as @BIN(var); ! Objective function to be maximized; MAX = 4*x1 + 5*x2 + 2*x3 + 2*x4 + 2*x5 + 3*x6 + 5*x7 + 3*x8 + 6*x9; ! Network Flow equations; - x1 - x2 - x3 = -1; x1 - x4 - x7 = 0; x2 + x4 - x5 = 0; x3 - x6 - x9 = 0; x5 + x6 - x8 = 0; x7 + x8 + x9 = 1; END ! ------------------------------------------------------ ; GO TIME SOLU divert lpath.out solu revert