Fix min/ max calculation by removing all soft constraints before doing so. Smaller fixes.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40297 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler
2011-01-26 22:06:02 +00:00
parent 1ec6a0ccb3
commit a0ad88e002
8 changed files with 89 additions and 9 deletions
+1
View File
@@ -148,6 +148,7 @@ private:
double penaltyNeg, double penaltyPos);
VariableList fVariables;
VariableList fUsedVariables;
ConstraintList fConstraints;
ResultType fResult;
bigtime_t fSolvingTime;
+4
View File
@@ -58,6 +58,9 @@ public:
protected:
Variable(LinearSpec* ls);
//! returns the ref count
int32 AddReference();
int32 RemoveReference();
private:
LinearSpec* fLS;
@@ -68,6 +71,7 @@ private:
bool fIsValid;
int32 fReferenceCount;
public:
friend class LinearSpec;
};