| 38 | namespace Gecode { |
| 39 | |
| 40 | void |
| 41 | linear(Home home, |
| 42 | const FloatVarArgs& x, FloatRelType frt, FloatVal c) { |
| 43 | using namespace Float; |
| 44 | GECODE_POST; |
| 45 | Region re; |
| 46 | Linear::Term* t = re.alloc<Linear::Term>(x.size()); |
| 47 | for (int i = x.size(); i--; ) { |
| 48 | t[i].a=1.0; t[i].x=x[i]; |
| 49 | } |
| 50 | Linear::post(home,t,x.size(),frt,c); |
| 51 | } |
| 52 | |
| 53 | void |
| 54 | linear(Home home, |
no test coverage detected