Consider a 9 × 9 Sudoku, where each number appears exactly once in each row and exactly...

50.1K

Verified Solution

Question

Basic Math

Consider a 9 × 9 Sudoku, where each number appears exactly oncein each row and
exactly once in each column. Assume that a list of numbers alreadyappear in some
cells are given.
(a) (20pts) Write an optimization model for Sudoku.
(b) (10pts) Create your own initial list of numbers (1 through 9)which appear in
some cells of the table and use this as your input data to solvethe optimization
problem in Part (a) using an optimization solver.

Answer & Explanation Solved by verified expert
4.0 Ratings (567 Votes)
aHere is a data matrix B of clues The first row B122 meansrow 1 column 2 has a clue 2 The second row B153 means row1 column 5 has a clue 3 Here is the entire matrix BB 122 153 184 216 293 334 375 448 466 518 551 596 647 665 737 776 814 898 923 954 982drawSudokuB For the listing of this program see the end of this examplebstep 1    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students