angle unit in AMPL

184 views
Skip to first unread message

Hernan

unread,
Jan 22, 2015, 5:00:23 PM1/22/15
to am...@googlegroups.com
Hello!!

I have a question.

AMPL use radian system for default , but I need use degree system ¿ is there an option for fix it?

Regards


Robert Fourer

unread,
Jan 23, 2015, 4:57:17 PM1/23/15
to am...@googlegroups.com
You have to convert your degree values to radians, to use the AMPL trigonometric functions such as cos and tan. Since the conversion involves a factor of pi, you may find it convenient to make a definition like

param pi = 4 * atan(1);

Bob Fourer
am...@googlegroups.com

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