Add license boiler plate

This commit is contained in:
Corentin Le Molgat
2022-10-05 18:33:10 +02:00
parent aad0e67975
commit 4585f7ae7a
12 changed files with 81 additions and 13 deletions

View File

@@ -1,6 +1,4 @@
//
// Copyright 2012 Google
//
// Copyright 2010-2022 Google LLC
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
@@ -12,7 +10,8 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.ortools.java;
package com.google.ortools.samples;
import com.google.ortools.Loader;
import com.google.ortools.constraintsolver.Assignment;

View File

@@ -10,13 +10,17 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.ortools.java;
package com.google.ortools.samples;
import com.google.ortools.Loader;
import com.google.ortools.graph.MaxFlow;
import com.google.ortools.graph.MinCostFlow;
/** Sample showing how to model using the flow solver. */
/**
* Sample showing how to model using the flow solver.
*
*/
public class FlowExample {
private static void solveMinCostFlow() {
System.out.println("Min Cost Flow Problem - Simple interface");

View File

@@ -10,7 +10,8 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.ortools.java;
package com.google.ortools.samples;
import com.google.ortools.Loader;
import com.google.ortools.linearsolver.MPConstraint;
@@ -18,7 +19,10 @@ import com.google.ortools.linearsolver.MPObjective;
import com.google.ortools.linearsolver.MPSolver;
import com.google.ortools.linearsolver.MPVariable;
/** Integer programming example that shows how to use the API. */
/**
* Integer programming example that shows how to use the API.
*
*/
public class IntegerProgramming {
private static void runIntegerProgrammingExample(String solverType) {
MPSolver solver = MPSolver.createSolver(solverType);

View File

@@ -10,7 +10,8 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.ortools.java;
package com.google.ortools.samples;
import com.google.ortools.Loader;
import com.google.ortools.graph.LinearSumAssignment;
@@ -19,6 +20,7 @@ import com.google.ortools.graph.LinearSumAssignment;
* Test assignment on a 4x4 matrix. Example taken from
* http://www.ee.oulu.fi/~mpa/matreng/eem1_2-1.htm with kCost[0][1]
* modified so the optimum solution is unique.
*
*/
public class LinearAssignmentAPI {
private static void runAssignmentOn4x4Matrix() {

View File

@@ -10,7 +10,8 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.ortools.java;
package com.google.ortools.samples;
import com.google.ortools.Loader;
import com.google.ortools.linearsolver.MPConstraint;
@@ -20,6 +21,7 @@ import com.google.ortools.linearsolver.MPVariable;
/**
* Linear programming example that shows how to use the API.
*
*/
public class LinearProgramming {
private static void runLinearProgrammingExample(String solverType, boolean printModel) {

View File

@@ -10,7 +10,8 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.ortools.java;
package com.google.ortools.samples;
import com.google.ortools.Loader;
import com.google.ortools.constraintsolver.ConstraintSolverParameters;
@@ -19,7 +20,10 @@ import com.google.ortools.constraintsolver.IntVar;
import com.google.ortools.constraintsolver.Solver;
import java.util.logging.Logger;
/** Sample showing how to model using the constraint programming solver.*/
/**
* Sample showing how to model using the constraint programming solver.
*
*/
public class RabbitsPheasants {
private static Logger logger = Logger.getLogger(RabbitsPheasants.class.getName());