Closed DanielCoelho112 closed 2 years ago
Hi,
I don't think its possible.
But you could design a function like
f(x) = f(x-1) + a
Where a is always positive ...
On Fri, Nov 19, 2021, 20:44 Daniel Coelho @.***> wrote:
Hi @miguelriemoliveira https://github.com/miguelriemoliveira and @tiagomfmadeira https://github.com/tiagomfmadeira,
In order to guarantee that the polynomial regression is monotonically increasing in a certain domain (#61 https://github.com/miguelriemoliveira/OptimizationUtils/issues/61 ), I was thinking about introducing one constraint to the optimization, something like this:
f(x)' >= 0 ∀ x ∈ [0,255]}
I think this is possible using some optimization libraries, but using scipy.optimize.least_squares I don't know if it is possible. Have you explored this issue?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/miguelriemoliveira/OptimizationUtils/issues/62, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACWTHVS4C7HA3FEMGSC4QFLUM2ZLNANCNFSM5IM7MRKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Hi @miguelriemoliveira and @tiagomfmadeira,
In order to guarantee that the polynomial regression is monotonically increasing in a certain domain (#61 ), I was thinking about introducing one constraint to the optimization, something like this:
f(x)' >= 0 ∀ x ∈ [0,255]}
I think this is possible using some optimization libraries, but using scipy.optimize.least_squares I don't know if it is possible. Have you explored this issue?