reformat bazel java code; CP-SAT: fix corner case in presolve, zero very small coefficients in translate from math model, more parameter validation

This commit is contained in:
Laurent Perron
2023-01-05 13:38:42 +01:00
parent bf504d4f8f
commit cf53ee3c9f
41 changed files with 384 additions and 208 deletions

View File

@@ -44,9 +44,9 @@ def code_sample_java(name):
],
deps = [
"//ortools/algorithms/java:knapsacksolver",
"//ortools/java/com/google/ortools:Loader"
"//ortools/java/com/google/ortools:Loader",
],
)
)
native.sh_test(
name = name + "_java_test",

View File

@@ -12,11 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
declare -r DIR="${TEST_SRCDIR}/com_google_ortools/ortools/algorithms/samples"
function test::ortools::code_samples_algorithms_java() {
"${DIR}/$1_java"
}
test::ortools::code_samples_algorithms_java $1
test::ortools::code_samples_algorithms_java $1