[ADMB Users] Application of 'sort' function to variables

Mike Prager mike.prager at mhprager.com
Mon Apr 26 16:11:22 PDT 2010


Are you trying to implement least median of squares?

kvk wrote on 4/26/2010 5:03 PM:
> So in light of that, how might I approach extracting the median of an
> unordered vector? I could define it as a variable and minimize the sum
> of the absolute deviations of each vector member from the median, but
> that seems clumsy and I'm not sure how I would approach minimizing
> that variable.
>
> On Apr 21, 7:50 am, dave fournier<ot... at otter-rsch.com>  wrote:
>    
>> It would be simple to modify the dmatrix version to sort dvariables, but
>> in practice most applications would probably not be differentiable.
>> _______________________________________________
>> Users mailing list
>> Us... at admb-project.orghttp://lists.admb-project.org/mailman/listinfo/users
>>
>> --
>> You received this message because you are subscribed to the Google Groups "admb-users" group.
>> To post to this group, send email to admb-users at googlegroups.com.
>> To unsubscribe from this group, send email to admb-users+unsubscribe at googlegroups.com.
>> For more options, visit this group athttp://groups.google.com/group/admb-users?hl=en.
>>      
> _______________________________________________
> Users mailing list
> Users at admb-project.org
> http://lists.admb-project.org/mailman/listinfo/users
>    



More information about the Users mailing list