Class LalMapNetwork

java.lang.Object
jline.solvers.mam.lal.LalMapNetwork

public final class LalMapNetwork extends Object
Lower a restricted open MAP/exponential LAL network to the native MAM decomposition (Python solver_mam/lal_map_network.py).
  • Method Details

    • setNativeSolveHookForTesting

      public static LalMapNetwork.NativeSolveHook setNativeSolveHookForTesting(LalMapNetwork.NativeSolveHook hook)
      TEST-ONLY: installs (or, with null, removes) the LalMapNetwork.NativeSolveHook used by the MAP-network and marked-network lowerings.
      Parameters:
      hook - the replacement native solve, or null for SolverMAM
      Returns:
      the hook it replaces, so a test can restore it
    • solveComposition

      public static LalMamResult solveComposition(Composition model, double tol, int maxIter, boolean verbose, long maxPhases, String trafficMethod, String compressMethod, double fitTime, double fitTolerance)
    • solve

      public static LalMamResult solve(LalModel snapshot, boolean truncated, double tol, int maxIter, boolean verbose, long maxPhases, String trafficMethod, String compressMethod, double fitTime, double fitTolerance)