From: Markus Zijlstra (student) <2400899Z@student.gla.ac.uk> Sent: 04 February 2020 23:22 To: pat@dcs.gla.ac.uk Subject: Constraint Programming - MathChallenge.java fix Hi, While I was looking over the material from the lectures today, I think I found the issue that was making MathChallenge.java give the wrong result. This is line 51 to line 54: // cd = 10.c + d IntVar c10 = model.intVar("10*c",new int[]{0,10,20,30,40,50,60,70,80,90}); model.arithm(c10,"=",c,"*",10); model.arithm(cd,"=",c10,"+",b).post(); I believe the error is on line 54: model.arithm(cd,"=",c10,"+",b).post(); The b here should be a d. I haven't actually run the updated program but from scanning through, that's the only error I can see - I believe it should give the right answer with that change! Regards, Markus