Skip to content

get_solver should allow passing a function (a solver factory) as the solver argument #20406

@mkoeppe

Description

@mkoeppe

For example, to use GLPK's exact simplex algorithm:

from sage.numerical.backends.generic_backend import get_solver
def glpk_exact_solver():
    b = get_solver(solver="GLPK")
    b.solver_parameter("simplex_or_intopt", "exact_simplex_only")
    return b

delsarte_bound_additive_hamming_space(19,15,7,solver=glpk_exact_solver)

CC: @dimpase @videlec @vbraun @jdemeyer

Component: numerical

Author: Matthias Koeppe

Branch/Commit: 37e87a5

Reviewer: Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/20406

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions