First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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??

click to hide/show revision 2
No.2 Revision

updated 10 years ago

calc314 gravatar image

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??

click to hide/show revision 3
No.3 Revision

updated 10 years ago

calc314 gravatar image

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??

click to hide/show revision 4
No.4 Revision

updated 10 years ago

calc314 gravatar image

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??

click to hide/show revision 5
No.5 Revision

updated 10 years ago

calc314 gravatar image

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??