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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Ignore non solution in Solve Block

ppal
17-Peridot

Ignore non solution in Solve Block

I have a list of data. Some do not give a solution within the tolerance. What is the best way to ignore and move onto the next set of data? Is there a way to set a more coarse tolerance value?

Prime 10 attached.

ppal_0-1720152305169.png

 

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:ppal)

I would suggest to use "try ... on error ..." to catch the errors and return a NaN in that case.

If you like you may use "filterNaN" to get rid of the NaN's

Werner_E_0-1720156098858.png

Prime 10 file attached

View solution in original post

4 REPLIES 4
Werner_E
25-Diamond I
(To:ppal)

I would suggest to use "try ... on error ..." to catch the errors and return a NaN in that case.

If you like you may use "filterNaN" to get rid of the NaN's

Werner_E_0-1720156098858.png

Prime 10 file attached

ppal
17-Peridot
(To:ppal)

Used minerr which worked for me in this case.

Werner_E
25-Diamond I
(To:ppal)

If using "minerr" works OK for you, that's fine.

But you have to be aware that you may get inaccurate or even wrong (depending on your application) results without you noticing it.

 

In your case, the vector calculated in the pic ideally should consist of all zeros.
Apart from the first and last entry the values are way off!

Werner_E_0-1720409847962.png

 

ppal
17-Peridot
(To:Werner_E)

 Yes there are wild fluctuations with some clustering. It is essentially locating faults on a transmission line.

 

On a good day it should look like    :

ppal_0-1720412921035.png

Thank you for your help.

 

Announcements

Top Tags