Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

|
Options

gAr
2014-03-19 01:10:09

Hi,

We can approximate by simulation (J again):

#### Code:

```   a=:3+9*?10000000#0
b=:4+11*?10000000#0
>./((10*a)+(25*b))*(20>a+b)```

=424.953939391672
which is close to the exact answer of 425.

Brief explanation:
1) Get random uniform values in the range for x and y.
2) Get the maximum of 10x+25y among the values where x+y<=20

From the LPP:

#### Code:

`(3 5 12 12 3)([: >./ (10 * [) + 25 * ]) 15 15 8 4 4`

= 425

We can easily obtain the tacit definition using

#### Code:

`sim=: 13 : '>./((10*x)+(25*y))'`

Typing in sim gives the tacit definition. We can then use that output to build more complicated definitions.

bobbym
2013-09-18 21:01:35

Very good now you just have to plug in A,B,C,D and E into the objective function (10 x + 25 y) and tell me what you get.

Agnishom
2013-09-18 10:57:27

I got my Geogebra fixed.

anonimnystefy
2013-09-18 04:21:32

Hi Agnishom

What you can do now is plot the line 10x+25y=a where a is a slider variable. You can move the slider around and your goal would be moving it right as much as possible, but so that the line has an intersection with bobbym's figure above.

bobbym
2013-09-18 03:01:48

Okay, it will be here when you get back. If you get your geogebra fixed I will show you how to do this faster.

See you later.

Agnishom
2013-09-18 02:57:00

I am too sleepy right now to solve those equations and find the cooridinates.

Have a nice day

bobbym
2013-09-18 02:51:04

Take the (x,y) coordinates of each of the 5 points and plug them into the objective function (10 x + 25 y) and tell me what you get.

Agnishom
2013-09-18 02:50:10

I do not see how.

bobbym
2013-09-18 02:46:57

And you will. The feasible points are determined by the constraints and they determine the maximum of 10 x + 25 y

Agnishom
2013-09-18 02:45:36

But we were asked to max out 10 x + 25 y!

bobbym
2013-09-18 02:37:21

This the area that the 5 equations encloses. The 5 feasible points ( possible answers ) are A,B,C,D,E

Agnishom
2013-09-18 02:33:25

If you do not mind, please link me to an online grapher or post a screenshot.

I'll fix the Java later, I want to sleep

bobbym
2013-09-18 02:27:50

Windows?

Yes you will plot those 4 and 1 more

x + y = 20

Agnishom
2013-09-18 02:26:25

like?

I think you are going to plot this four x=3; x=12; y=4; y=15. What about the last equation?

bobbym
2013-09-18 02:22:39

What are you running?