00:01
We have an island out here and a power station over here.
00:04
We want to run a wire from one to the other.
00:08
We're going to find a point p, someplace on the shore.
00:12
We'll have two lengths, l1 and l2.
00:16
This distance here is x.
00:19
We get two constraints.
00:22
The first one's there's a right triangle here, so you can use the pythagorean theorem.
00:27
The other one is that x plus l2 has to be that total distance, which is eight.
00:32
And then we have the cost function, which looks like this.
00:39
And our goal is to minimize the cost.
00:46
So i'm going to use lagrange multipliers.
00:49
We have two constraints.
00:52
So here's our objective function.
00:54
We have the cost plus lagrange multiplier times constraint...