I pass them to the solver the following way (MATLAB syntax):
opt = struct;
opt.min_step_size = 1e-9;
opt.max_iter = 100;
opt.tol_du = 1e-9;
opt.tol_pr = 1e-9;
opt.qpsol = 'qrqp';
optimizer = nlpsol('optimizer','sqpmethod',nlp,opt); % generating the solver
sol = optimizer('x0',x,'ubg',0,'lbg',0,'p',para); % calculating the solution