Hi, you may try the COBYLA code that solves nonlinear programming problems with inequality constraints without using derivatives. The objective function and the constraints are approximated linearly. A Python version seems to be available under:
MATLAB is the best, see e.g., https://au.mathworks.com/help/optim/ug/constrained-nonlinear-optimization-algorithms.html and https://ww2.mathworks.cn/matlabcentral/answers/123532-different-results-from-fmincon-with-nonlcon
Dear Muhammad, you are true MATLAB is efficient (fmincon function) but the problem needs to be differentiable and it is not the case for Abu's problem.