Skip to main content
1-Visitor
May 31, 2017
Solved

Minimize a function on mathcad prime 3.1

  • May 31, 2017
  • 3 replies
  • 4606 views

Hello guys,

I want to minimize a function, i use to method of minimizing without any result i have one error msg for each one

first test.PNG

The second methode is using bloc resolution:

second test.PNG

but also i have an error that my entry must be a matrix.

File attached.

Please a need a help.

Thanks

Best answer by Werner_E

Guess you also have to turn Mt into a function of OD,ID and H.

3 replies

24-Ruby IV
May 31, 2017

See one example

bmohamed1-VisitorAuthor
1-Visitor
June 1, 2017

Thank you for your answer

i define Mt like a fonction, I don't understand how he don't considere it like a function ?

masse t.PNG

And even if i remove the Mt from the "Minimize" function a still have the problem with CTOL and TOL.

19-Tanzanite
June 1, 2017

Why do you think that's a function definition? Mt has no arguments. You need this:

25-Diamond I
May 31, 2017

> I want to minimize a function

Cant read your file at the moment, but from Valerys screenshot I see that you don't have a function Mt to minimize. Mt looks like a 1x1 matrix (why?).

You may give "minerr" a try instead of "minimize".

bmohamed1-VisitorAuthor
1-Visitor
June 1, 2017

Mt it's not a matrix i defined it like

mt definition.PNG

and i tried with Minerr but the problem don't change they told me that i have a problem with the value of H " that may be a scalar or matrix) the probleme is always the same when i use a solve box 

19-Tanzanite
June 1, 2017

It's a matrix because of this:

You inserted "square brackets" by using the matrix tool. They are not just cosmetic. If you retype it correctly you should have

19-Tanzanite
June 1, 2017

In your first inequality you have Bmax as a function on the left, and a variable on the right. It is actually possible to do that, but you have to set the labels differently for the function and the variable. The way you have it now, your function definition overwrote your variable definition. Even though you could have Bmax as both a function and a variable, I would consider that very bad practice, because you are relying on only the formatting of a font (italic vs upright) to distinguish the two.

bmohamed1-VisitorAuthor
1-Visitor
June 1, 2017

Thank you for your answer

that was a good point about Mt, "square brackets" and about Bmax.

I rectify the three mistakes but stil have problem with TOL and CTOL.

So the problem still here :'