I have a objective function H, which follows following constrains:
To have unique global maxima, I am assuming hessian of H to be negative definite. So, one more condition I got from here.
But when I am using Maximize[{obj, const}, {var}] I am not able to get answer. Please help!
p-c-a>0&&p>c>a&&0<p<1&&0<c<1&&0<a<1&&0<f[s]&&[s]>0&&[s]<0
′
f
′′
f
To have unique global maxima, I am assuming hessian of H to be negative definite. So, one more condition I got from here.
But when I am using Maximize[{obj, const}, {var}] I am not able to get answer. Please help!
In[]:=
H=(-a-c+p)1-
2p-f[s]
k
2
f[s](2+)
k
1
k
2
Out[]=
(-a-c+p)1-
2p-f[s]
k
2
f[s](2+)
k
1
k
2
In[]:=
D[H,{{p,s},2}]
Out[]=
-,(2+)+[s]+(2+),(2+)+[s]+(2+),(-a-c+p)-(2+)-(2+)+[s]+(2+)
4
f[s](2+)
k
1
k
2
2(-a-c+p)[s]
′
f
2
f[s]
k
1
k
2
k
2
′
f
f[s](2+)
k
1
k
2
(2p-f[s])[s]
k
2
′
f
2
f[s]
k
1
k
2
2(-a-c+p)[s]
′
f
2
f[s]
k
1
k
2
k
2
′
f
f[s](2+)
k
1
k
2
(2p-f[s])[s]
k
2
′
f
2
f[s]
k
1
k
2
2[s]
k
2
2
′
f
2
f[s]
k
1
k
2
2(2p-f[s])[s]
k
2
2
′
f
3
f[s]
k
1
k
2
k
2
′′
f
f[s](2+)
k
1
k
2
(2p-f[s])[s]
k
2
′′
f
2
f[s]
k
1
k
2
For Hessian matrix [A B, C D] to be negative definite require A<0 and A D-BC>0Here as f[s], k1, k2 >0 hence <0 for sureChecking AD- BC
-
4
f[s](2+)
k
1
k
2
In[]:=
Simplify-(-a-c+p)-(2+)-(2+)+[s]+(2+)-(2+)+[s]+(2+)(2+)+[s]+(2+)
4
f[s](2+)
k
1
k
2
2[s]
k
2
2
′
f
2
f[s]
k
1
k
2
2(2p-f[s])[s]
k
2
2
′
f
3
f[s]
k
1
k
2
k
2
′′
f
f[s](2+)
k
1
k
2
(2p-f[s])[s]
k
2
′′
f
2
f[s]
k
1
k
2
2(-a-c+p)[s]
′
f
2
f[s]
k
1
k
2
k
2
′
f
f[s](2+)
k
1
k
2
(2p-f[s])[s]
k
2
′
f
2
f[s]
k
1
k
2
2(-a-c+p)[s]
′
f
2
f[s]
k
1
k
2
k
2
′
f
f[s](2+)
k
1
k
2
(2p-f[s])[s]
k
2
′
f
2
f[s]
k
1
k
2
Out[]=
-
4([s]+2p(-a-c+p)f[s][s])
2
(a+c)
2
′
f
′′
f
4
f[s]
2
(2+)
k
1
k
2
In[]:=
Solve-0,f[s]
4([s]+2p(-a-c+p)f[s][s])
2
(a+c)
2
′
f
′′
f
4
f[s]
2
(2+)
k
1
k
2
Out[]=
f[s][s]
2
(a+c)
2
′
f
2(a+c-p)p[s]
′′
f
So, for Hessian to be negative definite we have to have f[s]>[s]
2
(a+c)
2
′
f
2(a+c-p)p[s]
′′
f
In[]:=
MaximizeH,f[s]>[s]&&p-c-a>0&&0<p<1&&0<c<1&&0<a<1&&0<f[s]&&[s]>0&&[s]<0,{p,s}
2
(a+c)
2
′
f
2(a+c-p)p[s]
′′
f
′
f
′′
f
Out[]=
Maximize(-a-c+p)1-,f[s]>[s]&&-a-c+p>0&&0<p<1&&0<c<1&&0<a<1&&0<f[s]&&[s]>0&&[s]<0,{p,s}
2p-f[s]
k
2
f[s](2+)
k
1
k
2
2
(a+c)
2
′
f
2(a+c-p)p[s]
′′
f
′
f
′′
f