fix java tests
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
// limitations under the License.
|
||||
|
||||
import com.google.ortools.linearsolver.MPConstraint;
|
||||
import com.google.ortools.linearsolver.MPModelExportOptions;
|
||||
import com.google.ortools.linearsolver.MPObjective;
|
||||
import com.google.ortools.linearsolver.MPSolver;
|
||||
import com.google.ortools.linearsolver.MPVariable;
|
||||
@@ -72,7 +73,8 @@ public class LinearProgramming {
|
||||
System.out.println("Number of constraints = " + solver.numConstraints());
|
||||
|
||||
if (printModel) {
|
||||
String model = solver.exportModelAsLpFormat(false);
|
||||
MPModelExportOptions options = new MPModelExportOptions();
|
||||
String model = solver.exportModelAsLpFormat(options);
|
||||
System.out.println(model);
|
||||
}
|
||||
|
||||
|
||||
@@ -21,10 +21,10 @@ import com.google.ortools.constraintsolver.RoutingSearchParameters;
|
||||
import com.google.ortools.constraintsolver.main;
|
||||
|
||||
/** Tests the Routing java interface. */
|
||||
public class TestRouting {
|
||||
public class TestRoutingSolver {
|
||||
static { System.loadLibrary("jniortools"); }
|
||||
|
||||
private static final Logger logger = Logger.getLogger(TestRouting.class.getName());
|
||||
private static final Logger logger = Logger.getLogger(TestRoutingSolver.class.getName());
|
||||
|
||||
static void testRoutingTransitCallback(boolean enableGC) {
|
||||
logger.info("testRoutingTransitCallback (enable gc:" + enableGC + ")...");
|
||||
|
||||
Reference in New Issue
Block a user