@Test @Disabled public void testNoConstraintPods() { final DBConnectionPool dbConnectionPool = new DBConnectionPool(); final DSLContext conn = dbConnectionPool.getConnectionToDb(); final List<String> policies = Policies.getDefaultPolicies(); DebugUtils.dbLoad(conn); final Scheduler scheduler = new Scheduler(dbConnectionPool, policies, "ORTOOLS", true, NUM_THREADS); for (int i = 0; i < 100; i++) { final Result<? extends Record> results = scheduler.runOneLoop(); System.out.println(results); } }
Result<? extends Record> runOneLoop() { final Timer.Context updateDataTimer = updateDataTimes.time(); model.updateData(); updateDataTimer.stop(); final Timer.Context solveTimer = solveTimes.time(); final Result<? extends Record> podsToAssignUpdated = model.solve("PODS_TO_ASSIGN"); solveTimer.stop(); return podsToAssignUpdated; }
Scheduler { Result<? extends Record> runOneLoop() { final Timer.Context updateDataTimer = updateDataTimes.time(); model.updateData(); updateDataTimer.stop(); final Timer.Context solveTimer = solveTimes.time(); final Result<? extends Record> podsToAssignUpdated = model.solve("PODS_TO_ASSIGN"); solveTimer.stop(); return podsToAssignUpdated; } }
Scheduler { Result<? extends Record> runOneLoop() { final Timer.Context updateDataTimer = updateDataTimes.time(); model.updateData(); updateDataTimer.stop(); final Timer.Context solveTimer = solveTimes.time(); final Result<? extends Record> podsToAssignUpdated = model.solve("PODS_TO_ASSIGN"); solveTimer.stop(); return podsToAssignUpdated; } Scheduler(final DBConnectionPool dbConnectionPool, final List<String> policies, final String solverToUse,
              final boolean debugMode, final int numThreads);   Scheduler(final DBConnectionPool dbConnectionPool, final List<String> policies, final String solverToUse,
              final boolean debugMode, final int numThreads, final int solverMaxTimeInSeconds); }
Scheduler { Result<? extends Record> runOneLoop() { final Timer.Context updateDataTimer = updateDataTimes.time(); model.updateData(); updateDataTimer.stop(); final Timer.Context solveTimer = solveTimes.time(); final Result<? extends Record> podsToAssignUpdated = model.solve("PODS_TO_ASSIGN"); solveTimer.stop(); return podsToAssignUpdated; } Scheduler(final DBConnectionPool dbConnectionPool, final List<String> policies, final String solverToUse,
              final boolean debugMode, final int numThreads);   Scheduler(final DBConnectionPool dbConnectionPool, final List<String> policies, final String solverToUse,
              final boolean debugMode, final int numThreads, final int solverMaxTimeInSeconds); static void main(final String[] args); }
Scheduler { Result<? extends Record> runOneLoop() { final Timer.Context updateDataTimer = updateDataTimes.time(); model.updateData(); updateDataTimer.stop(); final Timer.Context solveTimer = solveTimes.time(); final Result<? extends Record> podsToAssignUpdated = model.solve("PODS_TO_ASSIGN"); solveTimer.stop(); return podsToAssignUpdated; } Scheduler(final DBConnectionPool dbConnectionPool, final List<String> policies, final String solverToUse,
              final boolean debugMode, final int numThreads);   Scheduler(final DBConnectionPool dbConnectionPool, final List<String> policies, final String solverToUse,
              final boolean debugMode, final int numThreads, final int solverMaxTimeInSeconds); static void main(final String[] args);  }