Skip to main content
1-Visitor
Dec 13, 2014 1:53 PM UTC
Solved

How can I find maximize value?

33.PNG

I want to find max value about omega when v is variable.

I make solve block and I retrict each range.

But I can't get omega max with variable v.

In other words, I want to find max location about curves.

Werner_E
Werner_EAnswer
25-Diamond I
Dec 14, 2014 6:33 PM UTC

jinsuk Lee wrote:

thank you for information

You can do as shown below, but I would suggest that you make your function P() more stable as it will fail for certain values. At least put a try command around it and replace values where it fails by NaNs.

I used a vector with just 24 values for Omega as calculation time for any valy of P is quite long. That way the accuracy is just 0.5 rpm. For an accuracy of two decimals you would need more than thousend values in Omega and I bet it will take much longer than using maximize (which still yields a more accurate result).

1.png

19 replies

24-Ruby IV
Dec 13, 2014 3:27 PM UTC

Send please the Mathcad-sheet

Translate
jlee-21-VisitorAuthor
1-Visitor
Dec 14, 2014 12:07 PM UTC

I am sorry. l am late

I attached my file.

Translate
19-Tanzanite
Dec 14, 2014 1:48 PM UTC

There is another spreadsheet of data required: NREL-5MW data.xlsx.

Translate
jlee-21-VisitorAuthor
1-Visitor
Dec 14, 2014 2:43 PM UTC

I delete unnecessary files to clean my file according to Werner opinion and then I attached my file again

Translate
Werner_E
25-Diamond I
Dec 14, 2014 4:00 PM UTC

Sorry, can't help. Doubt that all stuff is really needed. Still too large and far to slow - but probably thats just me.

Translate
jlee-21-VisitorAuthor
1-Visitor
Dec 14, 2014 4:04 PM UTC

that's okay.

Anyway, I wonder how to reduce calculating time in my work.

I don't know how I can reduce althogh you said to me to reduce calculating before.

Translate