first order loss function - normal distribution

187 views
Skip to first unread message

nico.te...@gmail.com

unread,
Dec 24, 2016, 5:02:01 PM12/24/16
to AMPL Modeling Language
Hi,

I'm trying to implement the first order loss function which is:


GX(y) = ( ∅(v) - v * (1 - Φ(v))) *  σ              


∅(v) = density function for the standardized normal Distribution

Φ(v) = cumulated Distribution function

v = ( y - μ ) / σ  = standardized value of y


I solved it with Excel but I need to implement this in AMPL. For better understanding I attach the Excel-File as well.

Any idea how to solve this?

I think with the Normal01() function it's not possibile to solve this, is it?


Thanks a lot in advance!!

























Microsoft Excel-Arbeitsblatt (neu).xlsx

Robert Fourer

unread,
Dec 26, 2016, 10:35:43 PM12/26/16
to am...@googlegroups.com
The normal density and distribution functions are available in the AMPL Extended Function Library. To download the library and access these functions in your AMPL model, see the instructions at http://ampl.com/resources/extended-function-library/.

Bob Fourer
am...@googlegroups.com

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