Discretionary policy DSGE

Hi, I’m doing a simple DSGE model with discretionary policy. The code works but I don’t know if it works correctly or not because it gives me the same results as I change the parameters of my objective function or the sign of the function. Here is the code. Thank you so much

        var y_gap pi u g i ;

    varexo  eps_u eps_g ;

    parameters  beta lyamda phi rho_g rho_u gamma_pi ;

    beta=0.99;
    phi=1;
    rho_u = 0.7;
    rho_a  = 0.8;
    lyamda=1.7;
    rho_g=0.8;
    gamma_pi=1.5;

    model(linear); 

    y_gap= -phi*(i-pi(+1))+y_gap(+1)+g;
    pi=lyamda*y_gap+beta*pi(+1)+u;
    g=rho_g*g(-1)+eps_g;
    u=rho_u*u(-1)+eps_u;
    end;

    shocks;
    var eps_u = 1.4;
    var eps_g=0;
    end;

    planner_objective (-1/2)*(0.5*(y_gap^2)+pi^2);
    discretionary_policy(instruments=(i),irf=20,planner_discount=beta,discretionary_tol=1e-12) y_gap pi u ;
    //set_param_value('rho_u',1.8);
    //discretionary_policy(instruments=(i),irf=20,discretionary_tol=1e-12) y_gap pi  u;

What do you mean? If I increase the weight on y_gap, its IRF decreases.