# Revision history [back]

### function minimize cannot solve Lagrange Multipliers problem.

I've tried all sorts of initial conditions but this just won't converge. It is an easy Lagrange multipliers problem.

var("y z L") F(x, y, z, L) = (x-3)^2 (y-1)^2 (z 1)^2 L*(x^2 y^2 z^2 - 4)
minimize(F, [4, 3, 2, 1], algorithm='ncg' )

Any thoughts? Are there ways of forcing it to use more iterations, or something??

 2 No.2 Revision calc314 4081 ●20 ●45 ●109

### function minimize cannot solve Lagrange Multipliers problem.

I've tried all sorts of initial conditions but this just won't converge. It is an easy Lagrange multipliers problem.

var("y z L")
F(x, y, z, L) = (x-3)^2   (y-1)^2   (z 1)^2   L*(x^2   y^2   z^2 - 4)
minimize(F, [4, 3, 2, 1], algorithm='ncg' ))


Any thoughts? Are there ways of forcing it to use more iterations, or something??

 3 No.3 Revision calc314 4081 ●20 ●45 ●109

### function minimize cannot solve Lagrange Multipliers problem.

I've tried all sorts of initial conditions but this just won't converge. It is an easy Lagrange multipliers problem.

var("y z L")
F(x, y, z, L) = (x-3)^2  +  (y-1)^2  +  (z 1)^2  +  L*(x^2   y^2   z^2 - 4)
minimize(F, [4, 3, 2, 1], algorithm='ncg' )


Any thoughts? Are there ways of forcing it to use more iterations, or something??

 4 No.4 Revision calc314 4081 ●20 ●45 ●109

### function minimize cannot solve Lagrange Multipliers problem.

I've tried all sorts of initial conditions but this just won't converge. It is an easy Lagrange multipliers problem.

var("y z L")
F(x, y, z, L) = (x-3)^2 +  (y-1)^2 +  (z 1)^2 +  L*(x^2  +  y^2  +  z^2 - 4)
minimize(F, [4, 3, 2, 1], algorithm='ncg' )


Any thoughts? Are there ways of forcing it to use more iterations, or something??

 5 No.5 Revision calc314 4081 ●20 ●45 ●109

### function minimize cannot solve Lagrange Multipliers problem.

I've tried all sorts of initial conditions but this just won't converge. It is an easy Lagrange multipliers problem.

var("y z L")
F(x, y, z, L) = (x-3)^2 +  (y-1)^2 +  (z + 1)^2 +  L*(x^2 +  y^2 +  z^2 - 4)
minimize(F, [4, 3, 2, 1], algorithm='ncg' )


Any thoughts? Are there ways of forcing it to use more iterations, or something??