Page 1 of 1

Constraint values in Calibration/Optimization

Posted: Tue Sep 10, 2024 8:45 am
by ado97
Hello all,

I'd like to know if it's possible to add constraint values to the calibration process. For instance, I expect "a" to be smaller than "b" (a<b), but the Powell optimization find optimum values for "a" and "b", where a>b. If it is possible, how do I add these constraints?

Thanks in advance.
Regards,
Alaize.

Re: Constraint values in Calibration/Optimization

Posted: Tue Sep 10, 2024 2:18 pm
by tomfid
This is similar to creating a prior on a parameter value.

1. Create a variable something like:

ab constraint = INITIAL( excess a penalty*MAX(0,a-b)^2 )

whether this should be positive or negative, and the scale, depends on whether you are maximizing or minimizing the rest of your payoff.

2. Add this term to your payoff as a Policy item, and set the timing to Initial or Final (not Always).