Skip to main content
1-Visitor
November 19, 2013
Solved

polynomial with multiple solutions

  • November 19, 2013
  • 12 replies
  • 6361 views

Hi, I am quite new to mathcad and need help with the following problem:

a*u+b*v-c*w+d*uv = y

a=1.4

b=0.3

c=0.5

d=0.2

u, v, w are variables that fulfill some constraints:

0.2<u<0.8

0.1<v<0.5

0<w<0.7

and

u+v+w=1

and

u, v, w can only have values like u = 0.2, 0.3, 0.4, ... but not 0.25 or 0.21. (I am sure there is a mathematical term for numbers as such, sorry)

Now, I want mathcad to give me all possible solutions (all different compositions of u, v, w) that fulfill y > 2.

Thanks for any help.

Max

Best answer by Werner_E

Here you are, but with more variables and maybe a wider range a brute force approach can be a problem - at least with respect to calculation time.

As you didn't specify the datastructure of your results I chose a nested vector. Each vector element is a 1x3 matrix consisting of the three values for u, v and w.

BTW, the testproblem you had set up has no solution as you can see here:

polynomial brute force.png

12 replies

Werner_E
25-Diamond I
November 19, 2013

d*uv should be d*u*v ???

1-Visitor
November 19, 2013

yes, not a differentiation

1-Visitor
November 19, 2013

ehh, deduction