public void callCPLEXOptimizer(double startTime, int horizon, double rebWeight) throws FileNotFoundException, IOException { // Call MATLAB script to generate trips new_routes = new HashMap<Link, Set<Path>>(); new_reb_routes = new HashMap<Link, Set<Path>>(); // MATLAB OPTIMIZER RUNS HERE MatFileReader matfilereader = new MatFileReader("src/main/resources/optimizerpaths.mat"); MLCell passpaths = (MLCell) matfilereader.getMLArray("passpaths"); MLCell rebpaths = (MLCell) matfilereader.getMLArray("rebpaths"); System.out.println("OPTMIZING"); decomposePassPaths(new_routes, passpaths); decomposePassPaths(new_reb_routes, rebpaths); }