|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| NoLearningButHeuristics.java | - | 100% | 100% | 100% |
|
||||||||||||||
| 1 | /* | |
| 2 | * SAT4J: a SATisfiability library for Java | |
| 3 | * Copyright (C) 2004 Daniel Le Berre | |
| 4 | * | |
| 5 | * Based on the original minisat specification from: | |
| 6 | * | |
| 7 | * An extensible SAT solver. Niklas E???n and Niklas S???rensson. | |
| 8 | * Proceedings of the Sixth International Conference on Theory | |
| 9 | * and Applications of Satisfiability Testing, LNCS 2919, | |
| 10 | * pp 502-518, 2003. | |
| 11 | * | |
| 12 | * This library is free software; you can redistribute it and/or | |
| 13 | * modify it under the terms of the GNU Lesser General Public | |
| 14 | * License as published by the Free Software Foundation; either | |
| 15 | * version 2.1 of the License, or (at your option) any later version. | |
| 16 | * | |
| 17 | * This library is distributed in the hope that it will be useful, | |
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 20 | * Lesser General Public License for more details. | |
| 21 | * | |
| 22 | * You should have received a copy of the GNU Lesser General Public | |
| 23 | * License along with this library; if not, write to the Free Software | |
| 24 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 25 | * | |
| 26 | */ | |
| 27 | ||
| 28 | package org.sat4j.minisat.learning; | |
| 29 | ||
| 30 | import org.sat4j.minisat.core.Constr; | |
| 31 | ||
| 32 | /** | |
| 33 | * Allows MiniSAT to do backjumping without learning. The literals appearing in | |
| 34 | * the reason have their activity increased. That solution does not look good | |
| 35 | * for VLIW-SAT-1.0 benchmarks (1785s vs 1346s). | |
| 36 | * | |
| 37 | * @author leberre | |
| 38 | */ | |
| 39 | public class NoLearningButHeuristics extends AbstractLearning { | |
| 40 | ||
| 41 | private static final long serialVersionUID = 1L; | |
| 42 | ||
| 43 | 136100186 | public void learns(Constr reason) { |
| 44 | 136100186 | claBumpActivity(reason); |
| 45 | } | |
| 46 | } |
|
||||||||||