Implement alg__run_lp; tests pass.