Вы находитесь на странице: 1из 5
5. Sudoku (24H) is a logic-based, combinatorial number-placement puzzle. The objective is to fill a 9x9 matrix with digits so that each column, each row, and each of the nine 3x3 sub- ‘matrices that compose the grid contain all of the digits from 1 to 9. The puzzle setter provides a partially completed grid, which for a well-posed puzzle has a unique solution. An example of such partially completed grid is shown below: ‘The Sudoku problem can be summarized as follows: Fill the empty entries of the matrix A such that = each row of A ~ each column of A = cach 3*3-submatrix At, ..., Ae (indicated in bold squares) contains every number of {1, ... ,9} exactly once. Following these rules, the previous Sudoku puzzle can be solve as shown below: Cat 85 Sebidvon 8) (10 points) Formulate an optimization model to, given a set of pre-assigned numbers, generate a feasible solution to the Sudoku problem. If a feasible solution is not possible the optimization model should provide a solution that minimizes the number of pre-assignments that cannot be fulfilled for the Sudoku problem to be solved. Clearly define your decision variables, constraints and objective function ] +b) (S points) Classify the resulting problem as linear or non-linear, and classify the problema ‘variables as integer or continuous. ©) G points) Discuss the challenges that will be faced when solving the resulting optimization problem, Luk mas 4,.%5 kh, ae Ack | zur | 23, R | tomes 3k | 32k | 335k Yong 21 Weel’ (4j,8) Hat hao nveuk en a Be zo calls (7, j,&) that hap noting > Guo Hare are umber in howe cells nly Me 5 bfoo im (lls) ae Se gh | S oppor I(1,2,)) So an Hears in (131) So 3) 2° Aharure Decierem Voratles Yer 7 / ifinven 42 lounge pute 1% 8,055, H& 7S Glaze 5,9,8 oe | Ged Qs Sobor Jip ton MIG SL Ae ban Wy eh alls ppt == tq k 2) det FeRel 9 toe oo eps Se ee? Gu ke---- % eg k 2) Re t--—4 Ife liebe Chay ht anna Jag ke B21 9 lemon nigh be, “Gai ke bey 19 521-7 EF at Conshrarte Yhat refused Lme money Yat or Gen a0 eluia De uaimise these wwe Colle > => me => may t > < Unik T Bygeco 29h Yak en Jen SV gk 2) Yi ikEN JENS A tye! Ax Sigs REN os c hee Qs Shen yk et shay © any quer Natawcer © Alten ov wor freer judgor oy Qitinumnc 2 Few way, wiiuin amaber Clee that We nen — te make Grdrlen ae wnrgnely Bekuatte 2 we eed r Confecteores Fe thowrends 9. diffu (fem protleu, with FE cles enby a © DiS route rupley Fath toe Gane Goloe Hey Pca at Mig prermonng — Sedubo uss a _ Grafhr theonmn eT rare mygaine delshon fy 2 ai te a | binea Cagnations => [near | __$e_Sochibs pode > Uvean & Confruens TEX bate im eta Tow & Colony cavet Tn Qvemeg | £43 box have evactly oe thom each members, | — Sach Coll Cowkevns exactly one 9 4 mimubers — Wure dn wo cthve Futon Ame Huse © eS oo Op ture =: Bunge

Вам также может понравиться