Creating two random matrices
Mostrar comentarios más antiguos
Hi. I have 2 matrices. M1(4,6) and M2(4,2). The generation of the two matrices is random. Attached you can find an explanation of the constraints. How can I formulate that with an ILP? Thanks

4 comentarios
Image Analyst
el 8 de Nov. de 2016
What is an "ILP" - I don't know that acronym, unless it's an Individualized Learning Plan.
loukil sana
el 8 de Nov. de 2016
James Tursa
el 8 de Nov. de 2016
Does this mean the individual entries in M1 and M2 need to be integers?
loukil sana
el 8 de Nov. de 2016
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 8 de Nov. de 2016
0 votos
Try Roger Stafford's utility: http://www.mathworks.com/matlabcentral/fileexchange/9700-random-vectors-with-fixed-sum
Categorías
Más información sobre Shifting and Sorting Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!