2 * Copyright 2007-2008, Christof Lutteroth, lutteroth@cs.auckland.ac.nz
3 * Copyright 2007-2008, James Kim, jkim202@ec.auckland.ac.nz
4 * Distributed under the terms of the MIT License.
9 #include <ObjectList.h>
12 namespace LinearProgramming
{
18 * A summand of a linear term.
22 Summand(Summand
* summand
);
23 Summand(double coeff
, Variable
* var
);
27 void SetCoeff(double coeff
);
29 void SetVar(Variable
* var
);
31 int32
VariableIndex();
37 typedef BObjectList
<Summand
> SummandList
;
39 } // namespace LinearProgramming
41 using LinearProgramming::Summand
;
42 using LinearProgramming::SummandList
;
45 #endif // OBJ_FUNCTION_SUMMAND_H