Refactor LinearSpec a bit, make it more difficult to leak the objective function.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38888 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -79,9 +79,12 @@ public:
|
||||
PenaltyFunction* AddPenaltyFunction(Variable* var, BList* xs,
|
||||
BList* gs);
|
||||
|
||||
SummandList* ObjFunction();
|
||||
void SetObjFunction(SummandList* summands);
|
||||
void UpdateObjFunction();
|
||||
SummandList* ObjectiveFunction();
|
||||
//! Caller takes ownership of the Summand's and the SummandList.
|
||||
SummandList* ReplaceObjectiveFunction(
|
||||
SummandList* objFunction);
|
||||
void SetObjectiveFunction(SummandList* objFunction);
|
||||
void UpdateObjectiveFunction();
|
||||
|
||||
ResultType Presolve();
|
||||
void RemovePresolved();
|
||||
|
||||
Reference in New Issue
Block a user