Maximization with an objective variable in the function
Mostrar comentarios más antiguos
Suppose I have a profit (z) equation
z = PY - WL - z^(-iota)*L^(nu)
where P, W, iota and nu are given and iota is some decimal.
I want to maximize z.
Would I be able to find Y, L that maximizes z using fmincon?
If not, which function command is used to solve this problem?
Respuesta aceptada
Más respuestas (1)
Maximilian Schönau
el 4 de En. de 2021
Editada: Maximilian Schönau
el 4 de En. de 2021
0 votos
It seems to me, that fmincon can only find local minima. It also has much math I dont understand, an easier (to understand) function which goes in your direction would be fminsearch.
The problem is, that you probably need a global minimum, which as far as I know is not as easy to find with fminsearch.
I would use fminsearch to find a local minumum, and plot in 2D your function with all the relevant Y and L. That enables you to verify, if the found minimum is the global minimum (for the reasonable values of Y,L). If fminsearch did not find the "global minumum" of your plot, change the starting vector of fminsearch to a value near of the minimum you got out of your plot.
That is the way I have solved this kind of problems, maybe a smart mathematician has a better solution. Maybe there is a smart way you can solve your Problem with symbolic math?
1 comentario
Hyunmin Jung
el 4 de En. de 2021
Categorías
Más información sobre Calculus en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!