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

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

## Minimize: 6 variables and 4 equations  24-Ruby III

## 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!

1 ACCEPTED SOLUTION

Accepted Solutions  24-Ruby V
(To:ValeryOchkov)

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.   5 REPLIES 5  24-Ruby V
(To:ValeryOchkov)

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.     24-Ruby III
(To:Werner_E)

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   24-Ruby V
(To:ValeryOchkov)

@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!?   24-Ruby III
(To:Werner_E)

Yes!

Now I see - we need n variables and >=n equations!  24-Ruby III
(To:ValeryOchkov)

@ValeryOchkov wrote:

Yes!

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

We have different guess values nd get different answers  Announcements