How do i write the code of lagrange multiplier in lagrange function?
Mostrar comentarios más antiguos
How do i write the code of lagrange multiplier in lagrange function ? Because the lagrange multiplier is a varible ,like x,y,z.not a random value,so for example,the function i want to optimize is as below

then how do i write the matlab code of lagrage multiplier ? because there are lots of a_k and b_k,and they all should be calculated,so i can't just use "rand" to produce them.
Does anyone know how to write the code of this? or is there any reference i can refer?
2 comentarios
Torsten
el 24 de En. de 2019
Which of the K k's do you mean when you define your objective function as
min: x_k^2+y_k^2
?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Nonlinear Optimization 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!