Hi @DennisWeir,
I added the nonlinear least squares cost type for this part of the interface last week, following C Code doesnt generate for nonlinear_ls cost type
It sounds like this is just what you need, or do you also need external cost type?
Cheers,
Jonathan