Add a comment. Active Oldest Votes. If you really wanted to do it within AMPL, you could probably put together a work-around along these lines: declare a single-index param with length equal to the total size of your matrix e. Geoffrey Brent Geoffrey Brent 1, 1 1 gold badge 10 10 silver badges 12 12 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown.
The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Related Hot Network Questions. Question feed. Stack Overflow works best with JavaScript enabled. Accept all cookies Customize settings. Please check this link to my answer to your previous question. I included a link in which without using alldiff , Sudoku problem where the magic constant is equal to 9 has been solved.
You may find some tips and hints there. I hope it helps. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Asked 2 years, 2 months ago. Active 2 years, 2 months ago. Viewed times. How can I do? Improve this question. Matteo Matteo 1 1 silver badge 5 5 bronze badges. Add a comment.
Active Oldest Votes. Improve this answer. Geoffrey Brent Geoffrey Brent 1, 3 3 silver badges 13 13 bronze badges. Oguz Toragay Oguz Toragay 8, 1 1 gold badge 7 7 silver badges 35 35 bronze badges. Alright I need to think about that, there should be a way It's not nearly as tidy or as clear as alldiff though.
My only problem at the moment is to set the constraints on the sum of the elements of rows and columns. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.
0コメント