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:
@@ -344,7 +344,7 @@ Variable::Variable(LinearSpec* ls)
|
|||||||
printf("Error in add_columnex.");
|
printf("Error in add_columnex.");
|
||||||
}
|
}
|
||||||
|
|
||||||
SetRange(-DBL_MAX, DBL_MAX);
|
SetRange(-20000, 20000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user