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.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38312 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler 2010-08-23 06:21:55 +00:00
parent f1684e3466
commit 27c4d40fd1

View File

@ -344,7 +344,7 @@ Variable::Variable(LinearSpec* ls)
printf("Error in add_columnex.");
}
SetRange(-DBL_MAX, DBL_MAX);
SetRange(-20000, 20000);
}