Opened 7 years ago

Closed 7 years ago

#20332 closed defect (fixed)

CVXOPTBackend: Set initial problem_name

Reported by: Matthias Köppe Owned by:
Priority: major Milestone: sage-7.2
Component: numerical Keywords: lp
Cc: Dima Pasechnik, Ingolfur Edvardsson, Vincent Delecroix, Jeroen Demeyer Merged in:
Authors: Matthias Koeppe Reviewers: Dima Pasechnik
Report Upstream: N/A Work issues:
Branch: f1af4ec (Commits, GitHub, GitLab) Commit: f1af4ec3eb834260c90a0da1b96873185f528ab3
Dependencies: Stopgaps:

Status badges


CVXOPTBackend forgets to set its initial problem_name, and as a result the MixedIntegerLinearProgram cannot print itself.

sage: p = MixedIntegerLinearProgram(solver="CVXOPT")
sage: p
TypeError                                 Traceback (most recent call last)
TypeError: cannot concatenate 'str' and 'NoneType' objects
<repr(<sage.numerical.mip.MixedIntegerLinearProgram at 0x190970a70>) failed: TypeError: cannot concatenate 'str' and 'NoneType' objects>

Change History (8)

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

Branch: u/mkoeppe/cvxoptbackend__set_initial_problem_name

comment:2 Changed 7 years ago by Matthias Köppe

Commit: eb4649c7aba9ba9ac31c8db6598353865dac37e8
Status: newneeds_review

New commits:

eb4649cCVXOPTBackend: Set initial problem_name

comment:3 Changed 7 years ago by Matthias Köppe

... needs review ...

comment:4 Changed 7 years ago by Dima Pasechnik

Can we have a doctest showing that this fixes the error in the ticket description?

comment:5 Changed 7 years ago by git

Commit: eb4649c7aba9ba9ac31c8db6598353865dac37e8f1af4ec3eb834260c90a0da1b96873185f528ab3

Branch pushed to git repo; I updated commit sha1. New commits:

f1af4ecCVXOPTBackend: Add test for #20232

comment:6 Changed 7 years ago by Dima Pasechnik

Reviewers: Dima Pasechnik
Status: needs_reviewpositive_review

ok, good to go.

comment:7 Changed 7 years ago by Matthias Köppe

Authors: Matthias Koeppe

Thanks for reviewing, Dima!

comment:8 Changed 7 years ago by Volker Braun

Branch: u/mkoeppe/cvxoptbackend__set_initial_problem_namef1af4ec3eb834260c90a0da1b96873185f528ab3
Resolution: fixed
Status: positive_reviewclosed
Note: See TracTickets for help on using tickets.