There's no built-in symbol for pi, but it's easy to define a parameter equal
to the computer representation of the value of pi, by writing, say,
param pi = 4 * atan(1);
(With certain editors, I am told, you can actually use the symbol for the
Greek letter pi as an AMPL parameter name.)
Bob Fourer
4er@...
> -----Original Message-----
> From:
ampl@... [mailto:
ampl@...]
> On Behalf Of Lacky [
lackylac@...]
> Sent: Wednesday, October 14, 2009 10:05 AM
> To: AMPL Modeling Language
> Subject: [AMPL 2880] \Pi
>
>
> Hi all, is there any \Pi value embedded in AMPL. I need to impose some
> (silly) non convex constraints in the form sin(2*Pi*u) = 0
>
> Thanks
>
> Fabrizio
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To post to this group, send email to
ampl@...
To unsubscribe from this group, send email to
ampl+unsubscribe@...
For more options, visit this group at
http://groups.google.com/group/ampl?hl=en-~----------~----~----~----~------~----~------~--~---