Branch Coverage

blib/lib/Optimization/NSGAII.pm
Criterion Covered Total %
branch 50 66 75.7


line true false branch
544 6600 653400 if $p == $q
545 126907 526493 if (f_dominates($P->[$p], $P->[$q], f_ineq2maxerr(&{$f_ineq;}($VP->[$p])), f_ineq2maxerr(&{$f_ineq;}($VP->[$q])))) { }
124287 402206 elsif (f_dominates($P->[$q], $P->[$p], f_ineq2maxerr(&{$f_ineq;}($VP->[$q])), f_ineq2maxerr(&{$f_ineq;}($VP->[$p])))) { }
552 1305 5295 if ($np->[$p] == 0)
567 5295 121612 if ($np->[$q] == 0)
606 1306800 1052986 if ($P1->[$kM] <= $P2->[$kM])
614 251194 928699 if ($err1 < $err2 or $err1 == $err2 and $P1_dominate_P2_count == $M) { }
659 0 662 if ($fmax - $fmin < "1e-05")
685 3319 3281 if ($rank->[0] < $rank->[1] or $rank->[0] == $rank->[1] and $Dist->[0] > $Dist->[1]) { }
773 4712 5188 if ($#VP1 == 0 or rand 1 < 0.5) { }
778 2420 2292 $u < 0.5 ? :
780 2398 2314 rand 1 < 0.5 ? :
828 3319 3281 if ($P1_dominate_P2_p == 1) { }
840 182 3118 if (rand 1 > 1 - $percentMut / 100)
853 457 9443 if (rand 1 > 1 - $percentMut / 100)
896 0 108 unless (grep /^$key$/, @keys_ok)
906 12 65 if ($gen == 0)
929 0 77 unless defined $pid
934 66 11 if $pid
948 11 0 if ($fork == $nProc)
951 0 11 unless open my $fileoP, ">>", $nameFileP
952 0 11 unless open my $fileoQ, ">>", $nameFileQ
978 0 66 unless open my $fileiP, "<", $nameFileP
979 0 66 unless open my $fileiQ, "<", $nameFileQ
1004 0 66 unless open $FILEO, ">", $filesDir . "/VPt_gen" . sprintf("%05d", $gen) . ".txt"
1009 0 66 unless open $FILEO, ">", $filesDir . "/Pt_gen" . sprintf("%05d", $gen) . ".txt"
1018 0 66 if (defined $par_plot)
1057 44 9856 if ($VQtp1->[$p][$d] < $bounds->[$d][0])
1058 36 9864 if ($VQtp1->[$p][$d] > $bounds->[$d][1])
1074 1 65 if ($gen == $nGen)
1075 0 1 if ($verboseFinal == 1)
1161 0 0 if ($x < $xmax and $x > $xmin and $y < $ymax and $y > $ymin and $rank->[$kp] < $#nameFront) { }
1177 0 0 defined $ylabelv[$_] ? :