Lines Matching refs:alpha_j
626 double old_alpha_i, old_alpha_j, alpha_i, alpha_j; in solve_generic() local
650 alpha_j = old_alpha_j = alpha[j]; in solve_generic()
656 double diff = alpha_i - alpha_j; in solve_generic()
658 alpha_j += delta; in solve_generic()
660 if( diff > 0 && alpha_j < 0 ) in solve_generic()
662 alpha_j = 0; in solve_generic()
668 alpha_j = -diff; in solve_generic()
674 alpha_j = C_i - diff; in solve_generic()
676 else if( diff <= C_i - C_j && alpha_j > C_j ) in solve_generic()
678 alpha_j = C_j; in solve_generic()
686 double sum = alpha_i + alpha_j; in solve_generic()
688 alpha_j += delta; in solve_generic()
693 alpha_j = sum - C_i; in solve_generic()
695 else if( sum <= C_i && alpha_j < 0) in solve_generic()
697 alpha_j = 0; in solve_generic()
701 if( sum > C_j && alpha_j > C_j ) in solve_generic()
703 alpha_j = C_j; in solve_generic()
709 alpha_j = sum; in solve_generic()
715 alpha[j] = alpha_j; in solve_generic()
721 delta_alpha_j = alpha_j - old_alpha_j; in solve_generic()