function population=step2_autotlbo(population,np,k)
for i=1:np
    count=0;
    inactive=zeros(1,k);
    for j=1:k
        if population(i,j)<0
            population(i,j)=0;
        elseif population(i,j)>1
            population(i,j)=1;
        end
    end
    for j=1:k
        if population(i,j)<=0.5
            count=count+1;
            inactive(count)=j;
        end
    end
        if k-count==0
            v=randperm(k);
            for ind=1:2
                rv=0.6+rand(1);
                if rv>1
                    rv=1;
                end
                population(i,v(ind))=rv;
            end
        elseif k-count==1
            v=randperm(count);
            rv=0.6+rand(1);
            if rv>1
                rv=1;
            end
            population(i,inactive(v(1)))=rv;
        end
end
            