[AMPL 2880] \Pi

View: New views
2 Messages — Rating Filter:   Alert me  

[AMPL 2880] \Pi

by Lacky-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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
-~----------~----~----~----~------~----~------~--~---


[AMPL 2883] Re: \Pi

by Robert Fourer-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



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
-~----------~----~----~----~------~----~------~--~---