Syntactic error in Exercise 1, 1.5
In the exercise sheet, the line
cons_name{i in 2..n-1} = cons_expression(x[i], x[i-1], x[i+1]) = 0;
should be
cons_name{i in 2..n-1} : cons_expression(x[i], x[i-1], x[i+1]) = 0;
In the exercise sheet, the line
cons_name{i in 2..n-1} = cons_expression(x[i], x[i-1], x[i+1]) = 0;
should be
cons_name{i in 2..n-1} : cons_expression(x[i], x[i-1], x[i+1]) = 0;