I have a function in matlab called function UFamily = CalcUFamily(hh,hw)
. The value of the function is determined by hh and hw (working hours for husband and wife in a family). I want to get the hh and hw that maximizes the function UFamily
.
How shall i proceed? I can't get the fmincon
to work.
Thanks for any help! :)