]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.1.49
authorfred <fred>
Tue, 26 Mar 2002 21:50:30 +0000 (21:50 +0000)
committerfred <fred>
Tue, 26 Mar 2002 21:50:30 +0000 (21:50 +0000)
lily/ineq-constrained-qp.cc

index 7de0df59517b06d96953f7389b06a4d65d353d2b..3b4bae9baf045062a7208999d9ca406b89a026d4 100644 (file)
@@ -212,8 +212,17 @@ Ineq_constrained_qp::constraint_solve (Vector start) const
        }
       else if (m<0)
        {
-         assert (gradient.norm() < EPS) ;
-
+         Real n =gradient.norm();
+         if (n >= EPS)
+           {
+             programming_error ("Huh? Gradient should be zero ");
+             act.degenerate_count_i_ ++;
+           }
+         else if (n <0)
+           {
+             programming_error ("Huh? Norm should be positive");
+             act.degenerate_count_i_++;
+           }
          break;
        }