Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- Minerr constraint weight

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-11-2015
10:35 AM

02-11-2015
10:35 AM

Hello All,

Could you please briefly explain about the constraint "weight" factor for the Minerr routine? How does it work and how it can be defiend?

Thank you.

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-11-2015
11:37 AM

02-11-2015
11:37 AM

You pass minerr a vector of residuals, which is the differences between the fitted function and the data points. For each point you have y[i-f(x[i), and for N points you therefore have N residuals. They are all equally weighted in the fit. If you add a constraint for a parameter, say p1>2, there is an error in that constraint if p1<2. That error is weighted exactly the same as each of the N residuals. Basically, you have N+1 errors in the fit and minerr will try to minimize the sum of the squares of those errors, with no particular preference given to the error in the constraint. You can change the weighting by multiplying any of the N+1 errors by some factor that either makes it larger or smaller. If you want a hard constraint you need to weight it very heavily. To do that rearrange the constraint and multiply by a very large number: (p1-2)*10^15>0.

1 REPLY 1

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-11-2015
11:37 AM

02-11-2015
11:37 AM

Top Tags