Skip to main content
1-Visitor
May 16, 2016
Solved

hi guys, i got a problem with my mathcad sheet here. Anyone able to solve it?

  • May 16, 2016
  • 1 reply
  • 2331 views

attached is my mathcad graph and equations. Why does my guess value change the maximize value?

Best answer by Fred_Kohlhepp

As Werner said, functions, not vectors

1 reply

23-Emerald I
May 16, 2016

Your function f does not change with beta.  So when you define a guess beta that's what returns.

jzy1-VisitorAuthor
1-Visitor
May 16, 2016

Thanks for the swift reply fred. How do i go about doing this? I thought I already made f change with beta as I made beta a range variable?

25-Diamond I
May 16, 2016

Using the range ß you created the vector FSL2, whose values correspond with the index, which is supposed to be an angle in degree.

You already got the maximum value of FSL2 and obviously you are searching for the appropriate index/angle. You could get it using match(FmaxSL2, FSL2)=... or  Match(FmaxSL2, FSL2,"near")=...

But the approach you have chosen is very limited and undesirable.

The function f you created simply looks up the appropriate value in the vector and returns it. That kind of discrete function is not suitable for a numerical algorithm used in maximize, which changes the argument in small increments to see which direction to go further.

You should get rid of your range ß and turn all your a,b,c, HLR, etc. into true functions of ß. Like a(ß):=cos(ß)*COG, etc. Don't use deg in the function definition - let Mathcad handle the units.

If you have troubles doing so, come back here and ask, but you should attach your worksheet rather than a picture, so we can help in a better way than just describing what you have to do.

WE