Package jline.solvers.mam.lal
Class LalMapNetwork
java.lang.Object
jline.solvers.mam.lal.LalMapNetwork
Lower a restricted open MAP/exponential LAL network to the native MAM
decomposition (Python
solver_mam/lal_map_network.py).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceTEST-ONLY seam over the native SolverMAM solve of a lowered network. -
Method Summary
Modifier and TypeMethodDescriptionTEST-ONLY: installs (or, with null, removes) theLalMapNetwork.NativeSolveHookused by the MAP-network and marked-network lowerings.static LalMamResultsolve(LalModel snapshot, boolean truncated, double tol, int maxIter, boolean verbose, long maxPhases, String trafficMethod, String compressMethod, double fitTime, double fitTolerance) static LalMamResultsolveComposition(Composition model, double tol, int maxIter, boolean verbose, long maxPhases, String trafficMethod, String compressMethod, double fitTime, double fitTolerance)
-
Method Details
-
setNativeSolveHookForTesting
public static LalMapNetwork.NativeSolveHook setNativeSolveHookForTesting(LalMapNetwork.NativeSolveHook hook) TEST-ONLY: installs (or, with null, removes) theLalMapNetwork.NativeSolveHookused 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)
-