Opened 7 years ago

Last modified 6 years ago

#20325 closed defect

GenericBackend: Add default implementation of `add_variables` and `add_linear_constraints` — at Version 1

Reported by: Matthias Köppe Owned by:
Priority: major Milestone: sage-7.3
Component: numerical Keywords: lp
Cc: Dima Pasechnik, Vincent Delecroix, Jeroen Demeyer, Frédéric Chapoton, Nils Bruin Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: #20323 Stopgaps:

Status badges

Description (last modified by Matthias Köppe)

The backend methods add_variables and add_linear_constraints should have a default implementation in GenericBackend, like add_linear_constraint_vector.

add_variables can be taken from Gurobi and also removed from CVXOPT and InteractiveLP. add_linear_constraints can be taken from COIN and also removed from CVXOPT and InteractiveLP. (The other backends have specific implementations of these methods; one supposes that they are faster, though this probably has not been tested.)

Since the removal of the copy-pasted functions from the backends would remove doctests, I mark this ticket as dependent on #20323.

Change History (1)

comment:1 Changed 6 years ago by Matthias Köppe

Dependencies: #20323
Description: modified (diff)
Note: See TracTickets for help on using tickets.