Branch Coverage

blib/lib/Optimization/NSGAII.pm
Criterion Covered Total %
branch 50 68 73.5


line true false branch
559 12100 1197900 if $p == $q
560 206368 991532 if (f_dominates($P->[$p], $P->[$q], f_ineq2maxerr(&{$f_ineq;}($VP->[$p])), f_ineq2maxerr(&{$f_ineq;}($VP->[$q])))) { }
202554 788978 elsif (f_dominates($P->[$q], $P->[$p], f_ineq2maxerr(&{$f_ineq;}($VP->[$q])), f_ineq2maxerr(&{$f_ineq;}($VP->[$p])))) { }
567 3039 9061 if ($np->[$p] == 0)
582 9061 197307 if ($np->[$q] == 0)
621 2395800 1983064 if ($P1->[$kM] <= $P2->[$kM])
629 408922 1780510 if ($err1 < $err2 or $err1 == $err2 and $P1_dominate_P2_count == $M) { }
674 0 1124 if ($fmax - $fmin < "1e-05")
700 5601 6499 if ($rank->[0] < $rank->[1] or $rank->[0] == $rank->[1] and $Dist->[0] > $Dist->[1]) { }
788 8910 9240 if ($#VP1 == 0 or rand 1 < 0.5) { }
793 4413 4497 $u < 0.5 ? :
795 4451 4459 rand 1 < 0.5 ? :
843 5601 6499 if ($P1_dominate_P2_p == 1) { }
855 466 5584 if (rand 1 > 1 - $percentMut / 100)
868 860 17290 if (rand 1 > 1 - $percentMut / 100)
913 0 207 unless (grep /^$key$/, @keys_ok)
923 23 120 if ($gen == 0)
926 1150 0 if ($startPop eq 'nostartPop') { }
953 0 275 unless defined $pid
958 253 22 if $pid
972 11 11 if ($fork == $nProc)
975 0 22 unless open my $fileoP, ">>", $nameFileP
976 0 22 unless open my $fileoQ, ">>", $nameFileQ
1002 0 242 unless open my $fileiP, "<", $nameFileP
1003 0 242 unless open my $fileiQ, "<", $nameFileQ
1028 0 121 unless open $FILEO, ">", $filesDir . "/VPt_gen" . sprintf("%05d", $gen) . ".txt"
1033 0 121 unless open $FILEO, ">", $filesDir . "/Pt_gen" . sprintf("%05d", $gen) . ".txt"
1042 0 121 if (defined $par_plot)
1081 0 18150 if ($VQtp1->[$p][$d] < $bounds->[$d][0])
1082 0 18150 if ($VQtp1->[$p][$d] > $bounds->[$d][1])
1098 1 120 if ($gen == $nGen)
1099 0 1 if ($verboseFinal == 1)
1185 0 0 if ($x < $xmax and $x > $xmin and $y < $ymax and $y > $ymin and $rank->[$kp] < $#nameFront) { }
1201 0 0 defined $ylabelv[$_] ? :