User Portlet User Portlet

Discussions
I don't understand your function definition, so I can't comment on that.  However, I do see that you didn't give the argument to f in NMaximize.  It should be NMaximize[  {f[c], 0