%Test whether \a x is solution
| 165 | : Test("Transcendental::Log::XX::"+s,1,d,st,CPLT_ASSIGNMENT,false) {} |
| 166 | /// %Test whether \a x is solution |
| 167 | virtual MaybeType solution(const Assignment& x) const { |
| 168 | if (x[0].max() < 0.0) |
| 169 | return MT_FALSE; |
| 170 | return eq(log(x[0]), x[0]); |
| 171 | } |
| 172 | /// Post constraint on \a x |
| 173 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 174 | Gecode::log(home, x[0], x[0]); |