2 linear-programming.hh -- declare
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #ifndef LINEAR_PROGRAMMING_HH
11 #define LINEAR_PROGRAMMING_HH
13 #include "linear-programming.hh"
19 constraints_[i] * x = constraint_rhss_ [i]
24 class Linear_programming
26 Array<Vector> constraints_;
27 Array<Real> constraint_rhss_;
31 Vector constraint_solve (Vector initial) const;
33 Vector solve (Vector) const;
34 void add_constraint (Vector c, double r);
35 Linear_programming (int n);
36 void set_cost (Vector);
41 #endif /* LINEAR_PROGRAMMING_HH */