When using OptimCVXPY, we sometimes obtained the following bug:
l2rpn_baselines/OptimCVXPY/optimCVXPY.py:526: RuntimeWarning: invalid value encountered in sqrt
self._th_lim_mw.value[:] = np.sqrt(self._th_lim_mw.value)
The modification puts 1 in the sqrt function if the value inside is too small (<=1). We chose 1 because sqrt(1)=1, consequently the transition remains smooth.
When using OptimCVXPY, we sometimes obtained the following bug:
The modification puts 1 in the sqrt function if the value inside is too small (<=1). We chose 1 because sqrt(1)=1, consequently the transition remains smooth.