[haiku-commits] r38312 - haiku/trunk/src/libs/linprog

  • From: clemens.zeidler@xxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 23 Aug 2010 08:21:55 +0200 (CEST)

Author: czeidler
Date: 2010-08-23 08:21:55 +0200 (Mon, 23 Aug 2010)
New Revision: 38312
Changeset: http://dev.haiku-os.org/changeset/38312

Modified:
   haiku/trunk/src/libs/linprog/Variable.cpp
Log:
lp_solve takes real not double values. Despite of that also the max real values 
are to big and lp_slove has problems to solve the constraints. So choose a 
default range big enough for UI stuff.



Modified: haiku/trunk/src/libs/linprog/Variable.cpp
===================================================================
--- haiku/trunk/src/libs/linprog/Variable.cpp   2010-08-23 04:11:55 UTC (rev 
38311)
+++ haiku/trunk/src/libs/linprog/Variable.cpp   2010-08-23 06:21:55 UTC (rev 
38312)
@@ -344,7 +344,7 @@
                        printf("Error in add_columnex.");
        }
 
-       SetRange(-DBL_MAX, DBL_MAX);
+       SetRange(-20000, 20000);
 }
 
 


Other related posts:

  • » [haiku-commits] r38312 - haiku/trunk/src/libs/linprog - clemens . zeidler