Cosider以下代码
syms x u a l
H = (x*u)^a - l*u;
d = solve(diff(H, u) == 0, u)
这是FOC和d
最大化器。现在,最大化器是唯一的,由d=(l/(a*x))^(1-a)/x
给出。但是,Matlab解决了d
问题。它说
Warning: The solutions are parameterized by the symbols: k.
To include parameters and conditions in the solution, specify the 'ReturnConditions' option.
> In solve>warnIfParams (line 500)
In solve (line 356)
Warning: The solutions are valid under the following conditions: ((pi/2 + angle(l/(a*x))/(2*(a - 1)))*(a - 1))/pi < k & k <= -((pi/2 - angle(l/(a*x))/(2*(a -
1)))*(a - 1))/pi & in(k, 'integer').
To include parameters and conditions in the solution, specify the 'ReturnConditions' option.
> In solve>warnIfParams (line 507)
In solve (line 356)
d =
(exp(-(pi*k*2i)/(a - 1))*(l/(a*x))^(1/(a - 1)))/x