Converting from Matlab to Gurobi using puLP - L1 norm in objective function.
Greetings:
I am interested in converting the following Matlab code to python puLP using Gurobi solver. In this code the objective function is the L1-norm. I have pasted the Matlab and python puLP code below. For the puLP code, I believe I have linearized the L1-norm correctly; however, when I run both codes, in which Gurobi solver is invoked, I get different results. The Matlab code results make sense. The puLP Gurobi solver results does not seem to make sense.
Any feedback if my approach in the conversion is correct or not is greatly appreciated!
Thank you
----------------------------------------------------pasted code below------------------------------------------------
Matlab code--------------------------------------------------------------------------------------------------------------
Python puLP Gurobi solver code------------------------------------------------------------------------------------
Please sign in to leave a comment.
Comments
0 comments