Skip to main content
1-Visitor
January 20, 2015
Solved

genfit- constraint

  • January 20, 2015
  • 2 replies
  • 1651 views

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

Best answer by RichardJ

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.

2 replies

RichardJ19-TanzaniteAnswer
19-Tanzanite
January 20, 2015

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.

payman1-VisitorAuthor
1-Visitor
February 9, 2015

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?