Length of a set

1,832 views
Skip to first unread message

ozgu...@gmail.com

unread,
Jan 9, 2008, 3:59:28 AM1/9/08
to AMPL Modeling Language
Hi,
Is there a built-in function in AMPL that returns the number of
elements (i.e. length of) this set.
Thanks.

Eli Olinick

unread,
Jan 9, 2008, 1:37:18 PM1/9/08
to am...@googlegroups.com
Yes, card(S) gives the cardinality, number of elements, of the set S.


Eli

------------------------------------------------
Eli V. Olinick
Associate Professor
Department of Engineering Management, Information, and Systems
School of Engineering
Southern Methodist University
PO Box 750122
Dallas, TX 75275-0123

Vox: (214) 768 3092
Fax: (214) 768 1112

Operations Research: the Science of Better
http://www.scienceofbetter.org


Reply all
Reply to author
Forward
0 new messages