Hi, A PDF of the project report as well as the MATLAB-files used is attached. In order to plot the comparison between Primal and Dual I suggest using "ResultPlotting.m" which is in the "Primal-Vegard" folder. NB! In order to run this code, the correct file-path must be added in the top of the code. The correct file-path to casadi must be added in "ErosionRigDynModel.m" in order to run any simulations. Hilsen Vegard Aas