load risk_rate.dat

tic;

best_vaf = 0.0;
store_vaf = zeros(100,1);

for i = 1:100
    
    [outpermone,outpermtwo,coordone,coordtwo,fitone,fittwo,addconone,...
        addcontwo,vaf,monprox] = bimonscalqa(risk_rate,targlin(18),targlin(18), ...
        randperm(18),randperm(18),3,1);
    
    store_vaf(i) = vaf;
    
    if (vaf > best_vaf)
        
        best_vaf = vaf;
        best_outpermone = outpermone;
        best_outpermtwo = outpermtwo;
        best_coordone = coordone;
        best_coordtwo = coordtwo;
        best_fitone = fitone;
        best_fittwo = fittwo;
        best_addconone = addconone;
        best_addcontwo = addcontwo;
        best_monprox = monprox;
        
    end
    
end

sorted_vafs = sort(store_vaf');

sorted_vafs

        best_vaf
        best_outpermone 
        best_outpermtwo
        best_coordone
        best_coordtwo
        best_fitone
        best_fittwo
        best_addconone
        best_addcontwo 
        best_monprox
        

toc;
