You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to am...@googlegroups.com
Hi, I am new user in ampl, i would like to know how can i calculate the infinity norm in ampl?
infinity norm is the maximum of absolute value of a member of vector (simply array.)
thanks for your collaboration.
Robert Fourer
unread,
Nov 16, 2014, 11:11:55 PM11/16/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to am...@googlegroups.com
If you have
set S;
param a {S};
then the infinity norm of a (considered as a vector) is
max {i in S} abs(a[i])
If you want to use the infinity norm of a vector of variables in your model, however, then you need to convert it to a formulation that uses linear expressions that solvers can handle. The formulation depends on how the inifinity norm expression appears in the model, however -- there is not a single answer that applies to all cases.