Question: Lagrangian Multipliers, integer solutions

Hi everyone,

does anyone know how to use the LagrangianMultipliers function so that the solutions obtained will be the closest integer smaller than whatever the output is for each entry in the list.

e.g.

LagrangeMultipliers(x1*x2*x3*x4*x5*x6*x7, [x1+x2+x3+x4+x5+x6+x7-32, x1^2+x2^2+x3^2+x4^2+x5^2+x6^2+x7^2-160],[x1,x2,x3,x4,x5,x6,x7]);

will give us entries which are not integers, and if i use other conditions I will sometimes not receive any integer solutions - which is to be expected.

Any help would be warmly received.

Thanks,

Alex

Please Wait...