sat: Add missing tags

This commit is contained in:
Corentin Le Molgat
2021-10-21 17:34:56 +02:00
parent ac0b672e34
commit 960595d1d6
8 changed files with 22 additions and 2 deletions

View File

@@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// [START program]
package com.google.ortools.sat.samples;
import com.google.ortools.Loader;
@@ -20,7 +21,7 @@ import com.google.ortools.sat.CpSolverStatus;
import com.google.ortools.sat.IntVar;
/** Solves a problem with a time limit. */
public class SolveWithTimeLimitSampleSat {
public final class SolveWithTimeLimitSampleSat {
public static void main(String[] args) throws Exception {
Loader.loadNativeLibraries();
// Create the model.
@@ -45,4 +46,7 @@ public class SolveWithTimeLimitSampleSat {
System.out.println("z = " + solver.value(z));
}
}
private SolveWithTimeLimitSampleSat() {}
}
// [END program]