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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

genfit- constraint

payman
13-Aquamarine

genfit- constraint

Hello everybody.

How can I define constraints for the genfit routine?

in the attached program, there is "genfit" routine inside the function f(inp). Where should I define the constraint b1>0, b2>0 etc. ?

Thank you in advance

1 ACCEPTED SOLUTION

Accepted Solutions
RichardJ
19-Tanzanite
(To:payman)

You can't use constraints with genfit. Use minerr instead. Note that constraints in minerr are soft constraints, and are simply minimized along with the other residuals. To make them hard constraints you must weight them very heavily.

Minerr is a lot more flexible than genfit, and often easier to set up.

View solution in original post

2 REPLIES 2
RichardJ
19-Tanzanite
(To:payman)

You can't use constraints with genfit. Use minerr instead. Note that constraints in minerr are soft constraints, and are simply minimized along with the other residuals. To make them hard constraints you must weight them very heavily.

Minerr is a lot more flexible than genfit, and often easier to set up.

payman
13-Aquamarine
(To:RichardJ)

Thank you Richard. Could you please explain about the "weight" of the constraint. How does it work and how I can find the wight factor for each parameter or constraint?

Top Tags