Mathematical Impossibility?
Mathematical Impossibility?
(OP)
Is this scenario really mathematically impossible or am I entering my information incorrectly into MathCad?
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS Come Join Us!Are you an
Engineering professional? Join EngTips Forums!
*EngTips's functionality depends on members receiving email. By joining you are opting in to receive email. Posting Guidelines 

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.
Here's Why Members Love EngTips Forums:
Register now while it's still free!
Already a member? Close this window and log in.
RE: Mathematical Impossibility?
so yes you are asking a fairly tricky question. Try replacing find by minerr, it will then try to satisfy your contradictory equations as best it can.
Cheers
Greg Locock
New here? Try reading these, they might help FAQ731376: EngTips.com Forum Policies http://engtips.com/market.cfm?
RE: Mathematical Impossibility?
This gets me closer to what I am looking for but is there a way to get these answers to converge. As I change the guesses the answers jump around. I am not looking for a exact match to the original 5,10,15,20 pattern but some way to get them close or even averaged between the two based on the 2/1.3333 disagreement.
RE: Mathematical Impossibility?
RE: Mathematical Impossibility?
You as an engineer should recognize that you do not have enough equations to do anything useful.
Moreover, the contradictory requirements mean that a and b cannot be found at all.
TTFN
FAQ731376: EngTips.com Forum Policies
Chinese prisoner wins Nobel Peace Prize
RE: Mathematical Impossibility?
Instead of banging your head against a solve block in MathCAD on this one try using a piece of paper (Try graphing it  in log scale you have 4 lines that intersect at 4 separate points... the issue is non convergence), if you can't rationalize out a path to a solution chances are you need more information, more assumptions, or a different problem.
RE: Mathematical Impossibility?
If you want to do some kind of "fit", you have to define an objective function to decide what constitutes a best match. I doubt that would be productive from what little I know about the problem... certainly looks like a textbook problem aimed to get you to use your noggin rather than blindly plugging and chugging.
=====================================
(2B)+(2B)' ?
RE: Mathematical Impossibility?
You have a nonlinear optimization problem. SRSS of residual errors is a traditional objective function. It is to be expected that different starting points can lead to different solutions (which may be local minimum). Solution is not necessarily easy.
=====================================
(2B)+(2B)' ?
RE: Mathematical Impossibility?
We used SRSS of residual errors as objective function.
Taking derivative of objective function with respect to each of the four independent variables (a,b,x,y) and solving for locations where they are all zero reveals local minima, local maxima, and saddle points.
Two solutions are found:
2 classes of local minima:
Solution 1:[a = (3315*z  205*221^(1/2)*z)/(442*z^2), b = (2210*z  155*221^(1/2)*z)/(221*z^2), x =  (10*z)/11  (221^(1/2)*z)/11, y = z]
Solution 2: [a = (3315*z + 205*221^(1/2)*z)/(442*z^2), b = (2210*z + 155*221^(1/2)*z)/(221*z^2), x = (221^(1/2)*z)/11  (10*z)/11, y = z]
Both solutions are parameterized by lower case "z". Experimentation revealed objective function does not depend on z, so we are free to choose any value and the solution is equally good wrt objective function. We choose z=1, which gives:
solution 1: [a = 0.6051038615, b = 0.4264283069, x = 2.260551704, y = 1.0]
Objective function for soln1 is 746.6.
solution 2: [a = 14.39489614, b = 20.42642831, x = 0.4423698861, y = 1.0]
Objective function for soln2 is 3.348281317
Plotting reveals these are both local minima (*). Conclude solution 2 is sort of a global minimum (*).
I have perhaps misused the terms local and global minimum here since each solution refers not just to a single point but an infinite number of points generated by picking different values of z (all give the same objective function).
There weird behavior of having many different solutions with same objective function may be a reason this one was particularly difficult to solve using brute force trial and error.
Seems like my attachment is having a problem uploading. I will post and try again. If not will come back later with attachment.
=====================================
(2B)+(2B)' ?
RE: Mathematical Impossibility?
=====================================
(2B)+(2B)' ?
RE: Mathematical Impossibility?
Here is page 1.
=====================================
(2B)+(2B)' ?
RE: Mathematical Impossibility?
=====================================
(2B)+(2B)' ?
RE: Mathematical Impossibility?
=====================================
(2B)+(2B)' ?
RE: Mathematical Impossibility?
=====================================
(2B)+(2B)' ?
RE: Mathematical Impossibility?
=====================================
(2B)+(2B)' ?
RE: Mathematical Impossibility?
=====================================
(2B)+(2B)' ?
RE: Mathematical Impossibility?
=====================================
(2B)+(2B)' ?
RE: Mathematical Impossibility?
Within the set of solutions identified as "solution 2" (which attain the global min value of objective fnction =3.348), as we change the value of the arbitrary parameter z, the values of a, b, x, y all change, but the values of the products a*x, b*x, a*y, b*y do not.
Exp Computed Value Desired Value
=a*x 6.367868565 5
=b*x 9.036036764 10
=a*y 14.39489614 15
=b*y 20.42642831 20
This makes sense insce inspection of the algebraic solution shows that x and y are proportional to z and a and b are inversely proportional to z
x = Cx*z
y = Cy*z
a = Ca/z
b = Cb/z
ax = Cx*Ca ... does not depend on z. Same for ay, bx, by.
So, all numerical solutions should converge to the same products ax, ay, bx, by listed above, but not to the same values a, b, x, y.
=====================================
(2B)+(2B)' ?
RE: Mathematical Impossibility?
The performance specification (or objective function) depends only on products containing one item from the set (a,b) times one item from the set (x,y). That can be seen from the original attachment where we only impose specifications on ax, ay, bx, by.
So it should not come as any suprise that for any set (a0, b0, x0, y0) that meets the performance specification to a certain level, we can develop another set (a0/z, b0/z, x0*z, y0*z) which meets the performance specification in exactly the same manner.
So, by inspecting the original problem to begin with, we should have been able to anticipate the behavior that mupad told us.... that we have not one bestfit solution but a parameterized set (a0/z, b0/z, x0*z, y0*z) for arbitrary parameter z.
=====================================
(2B)+(2B)' ?