cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Minimize: 6 variables and 4 equations

ValeryOchkov
24-Ruby IV

Minimize: 6 variables and 4 equations

One mathematician has said me that if you have 6 parameters in the minimize function - you must have 6 or more equations in this solve block. I have only 4! Is it correct?

See please one interesting problem in attach!

Thanks! 

ACCEPTED SOLUTION

Accepted Solutions

The less equations (or the more variables) the more solutions, resp. the more degrees of freedom.

So its easier for the solver to find a solution but this solution will heavily depend an the choice of the guess values.

As you can see below you can check the quality of the solution by evaluating the built-in variable ERR (its exactly this variable which Mathcad tries to minimize) and you may consider adding some additional constraints like aL>0 or the like, to avoid unwanted solutions.

B1.png

B2.png

B3.png

View solution in original post

5 REPLIES 5

The less equations (or the more variables) the more solutions, resp. the more degrees of freedom.

So its easier for the solver to find a solution but this solution will heavily depend an the choice of the guess values.

As you can see below you can check the quality of the solution by evaluating the built-in variable ERR (its exactly this variable which Mathcad tries to minimize) and you may consider adding some additional constraints like aL>0 or the like, to avoid unwanted solutions.

B1.png

B2.png

B3.png

Thanks, Werner!

I think (guess) it (degrees of freedom) is more for the Find not for Minimize/Maximize Function.

See please the problem with 9 variables and 5 equations

MM.png


@ValeryOchkov wrote:

Thanks, Werner!

I think (guess) it (degrees of freedom) is more for the Find not for Minimize/Maximize Function.

 


It applies in a similar way to a solve block with "minimize", too.

The less constraints and the more variables to change, the more possibilities to find different but equally good solutions. Ever so often in such cases depending on the equations given Mathcad possibly won't even change the guess value of the one or other variable given.

 

In your new sheet its quite interesting that we get the very same results using "find" and without referencing PE in any way!?

B.png

Yes!

Now I see - we need n variables and >=n equations!


@ValeryOchkov wrote:

Yes!

Now I see - we need n variables and >=n equations!


We have different guess values nd get different answers

PE-Catenary-G.png

Announcements

Top Tags