官术网_书友最值得收藏!

Lagranges multipliers

In the math optimization problem, the method of Lagrange multipliers is used as a tool for finding the local minima and maxima of a function subject to equality constraints. An example involves finding the maximum entropy distribution subject to given constraints.

This is best explained with an example. Let's say we have to maximize K (x, y) = -x2 -y2 subject to y = x + 1.

The constraint function is g (x, y) = x-y+1=0. The L multiplier then becomes this:

Differentiating with respect to x, y, and lambda, and setting to 0 we get the following:

Solving the preceding equations, we get x=-0.5, y=0.5, lambda=-1.

主站蜘蛛池模板: 湟源县| 白朗县| 柳林县| 夹江县| 方正县| 宁远县| 越西县| 邹城市| 黄大仙区| 河间市| 南木林县| 澄江县| 北流市| 康马县| 乌苏市| 淮安市| 岑巩县| 农安县| 梅州市| 承德县| 仪征市| 永泰县| 万宁市| 平安县| 峨眉山市| 阿尔山市| 太谷县| 米泉市| 大洼县| 金溪县| 徐闻县| 隆子县| 秦安县| 襄垣县| 横峰县| 衡南县| 鄄城县| 岳阳县| 盱眙县| 凤山市| 特克斯县|