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

kvk fromdustreturned at gmail.com
Mon Apr 26 14:03:34 PDT 2010


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.



More information about the Users mailing list