how to generate a binary matrix in ampl

33 views
Skip to first unread message

ruilin...@gmail.com

unread,
Jun 23, 2016, 3:11:00 PM6/23/16
to AMPL Modeling Language
I want to generate a binary matrix in ampl for a given rows and colums. I know how to do it in Matlab, but how to do it in ampl?

Robert Fourer

unread,
Jun 25, 2016, 3:42:13 PM6/25/16
to am...@googlegroups.com
Can you explain how you would do it in MATLAB? There is probably a corresponding AMPL script, but it depends on the details of what you are trying to do.

Bob Fourer
am...@googlegroups.com

=======
Reply all
Reply to author
Forward
0 new messages