Solved

How to fill the final results of sudoku into single matrix

  • 13 December 2021
  • 1 reply
  • 56 views

Badge

Above is my sudoku result how to fill the above result into one single matrix with all values..

Any feedback please

icon

Best answer by MarcelRoelofs 14 December 2021, 00:09

View original

1 reply

Userlevel 4
Badge +5

The easiest way is to create a element parameter Solution(r,c) into the set assiocated with the index v. 

Then you can easily fill it through the assignment

Solution(r,c) := first(v | x(r,c,v));

 

 

Reply


Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator