As the title suggests I want to be able to perform a regression (not just a simple optimization) on the following (a non linear step function) either in R or in Python (the problem is crucial so I am willing to use whichever software gets the job done):As the title suggests I want to be able to perf