Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
cleanup optional tags & correct doctest output
Browse files Browse the repository at this point in the history
  • Loading branch information
saliola committed Jun 24, 2020
1 parent b2f0248 commit 90c4d47
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/sage/combinat/matrices/dancing_links.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ cdef class dancing_linksWrapper:
Using some optional SAT solvers::
sage: x.to_sat_solver('cryptominisat') # optional cryptominisat
sage: x.to_sat_solver('cryptominisat') # optional - cryptominisat
CryptoMiniSat solver: 4 variables, 7 clauses.
"""
Expand Down Expand Up @@ -982,8 +982,8 @@ cdef class dancing_linksWrapper:
Using optional solvers::
sage: s = d.one_solution_using_sat_solver('glucose') # optional glucose
sage: s in solutions # optional glucose
sage: s = d.one_solution_using_sat_solver('glucose') # optional - glucose
sage: s in solutions # optional - glucose
True
When no solution is found::
Expand Down Expand Up @@ -1051,8 +1051,9 @@ cdef class dancing_linksWrapper:
Using some optional MILP solvers::
sage: d.to_milp_solver('gurobi') # optional gurobi sage_numerical_backends_gurobi
Boolean Program (no objective, 4 variables, 4 constraints)
sage: d.to_milp_solver('gurobi') # optional - gurobi sage_numerical_backends_gurobi
(Boolean Program (no objective, 4 variables, 4 constraints),
MIPVariable of dimension 1)
"""
from sage.numerical.mip import MixedIntegerLinearProgram
Expand Down Expand Up @@ -1109,8 +1110,8 @@ cdef class dancing_linksWrapper:
Using optional solvers::
sage: s = d.one_solution_using_milp_solver('Gurobi') # optional -- Gurobi sage_numerical_backends_gurobi
sage: s in solutions # optional -- Gurobi sage_numerical_backends_gurobi
sage: s = d.one_solution_using_milp_solver('gurobi') # optional - gurobi sage_numerical_backends_gurobi
sage: s in solutions # optional - gurobi sage_numerical_backends_gurobi
True
When no solution is found::
Expand Down

0 comments on commit 90c4d47

Please sign in to comment.