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

Login

Username

Password

Not registered yet?

#1 2013-09-18 01:37:05

Agnishom
Real Member
Award: Wink Sherlock

Offline

Constraints?

bobbym wrote:

Maximize P = 10 x + 25 y

For the constraints:

3 ≤ x ≤ 12

4 ≤ y ≤ 15

x + y ≤ 20

How do u do ths?


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'Who are you to judge everything?' -Alokananda

#2 2013-09-18 01:41:23

bobbym
Administrator

Offline

Re: Constraints?

Hi;

The first method taught is a graphical one. You must have a grapher handy. If not you will follow along from the diagrams I post.


In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#3 2013-09-18 01:55:03

Agnishom
Real Member
Award: Wink Sherlock

Offline

Re: Constraints?

I think I have got Geogebra. What next?


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'Who are you to judge everything?' -Alokananda

#4 2013-09-18 01:57:12

bobbym
Administrator

Offline

Re: Constraints?

The first constraint is really 2 constraints. We will enter them as equations.

Type x = 3 in the input bar.


In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#5 2013-09-18 02:15:58

Agnishom
Real Member
Award: Wink Sherlock

Offline

Re: Constraints?

That will create a vertical bar. I think the next step is to type x = 12, so as to confine the solution within these two.

My Geogebra does not seem to fire up. Neither are my other java apps running. What should I do?


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'Who are you to judge everything?' -Alokananda

#6 2013-09-18 02:19:13

bobbym
Administrator

Offline

Re: Constraints?

Did you install the latest JRE?


In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#7 2013-09-18 02:21:57

Agnishom
Real Member
Award: Wink Sherlock

Offline

Re: Constraints?

I think I did. What is the way to check for sure?


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'Who are you to judge everything?' -Alokananda

#8 2013-09-18 02:22:39

bobbym
Administrator

Offline

Re: Constraints?

What are you running?


In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#9 2013-09-18 02:26:25

Agnishom
Real Member
Award: Wink Sherlock

Offline

Re: Constraints?

like?

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


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'Who are you to judge everything?' -Alokananda

#10 2013-09-18 02:27:50

bobbym
Administrator

Offline

Re: Constraints?

Windows?

Yes you will plot those 4 and 1 more

x + y = 20


In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#11 2013-09-18 02:33:25

Agnishom
Real Member
Award: Wink Sherlock

Offline

Re: Constraints?

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 sad


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'Who are you to judge everything?' -Alokananda

#12 2013-09-18 02:37:21

bobbym
Administrator

Offline

Re: Constraints?

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


Uploaded Images
View Image: 2013-09-17_093334.gif      


In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#13 2013-09-18 02:45:36

Agnishom
Real Member
Award: Wink Sherlock

Offline

Re: Constraints?

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


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'Who are you to judge everything?' -Alokananda

#14 2013-09-18 02:46:57

bobbym
Administrator

Offline

Re: Constraints?

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


In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#15 2013-09-18 02:50:10

Agnishom
Real Member
Award: Wink Sherlock

Offline

Re: Constraints?

I do not see how.


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'Who are you to judge everything?' -Alokananda

#16 2013-09-18 02:51:04

bobbym
Administrator

Offline

Re: Constraints?

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.


In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#17 2013-09-18 02:57:00

Agnishom
Real Member
Award: Wink Sherlock

Offline

Re: Constraints?

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

Have a nice day


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'Who are you to judge everything?' -Alokananda

#18 2013-09-18 03:01:48

bobbym
Administrator

Offline

Re: Constraints?

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.


In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#19 2013-09-18 04:21:32

anonimnystefy
Real Member

Offline

Re: Constraints?

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.


The limit operator is just an excuse for doing something you know you can't.
“It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

#20 2013-09-18 10:57:27

Agnishom
Real Member
Award: Wink Sherlock

Offline

Re: Constraints?

I got my Geogebra fixed.


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'Who are you to judge everything?' -Alokananda

#21 2013-09-18 21:01:35

bobbym
Administrator

Offline

Re: Constraints?

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.


In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#22 2014-03-19 01:10:09

gAr
Star Member

Offline

Re: Constraints?

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.


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Board footer

Powered by FluxBB