Opened 2 years ago
Closed 2 years ago
#23390 closed enhancement (fixed)
Show method of semidefinite programming does no carriage return
Reported by: | mforets | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | sage-8.0 |
Component: | numerical | Keywords: | semidefinite programming, user interface |
Cc: | Merged in: | ||
Authors: | Marcelo Forets | Reviewers: | Jeroen Demeyer |
Report Upstream: | N/A | Work issues: | |
Branch: | 1e94160 (Commits) | Commit: | 1e94160123c8ab6b569ab528292eab61cab339c8 |
Dependencies: | Stopgaps: |
Description
the example
sage: p = SemidefiniteProgram() sage: x = p.new_variable(name="hihi") sage: a1 = matrix([[1,2],[2,3]]) sage: a2 = matrix([[2,3],[3,4]]) sage: a3 = matrix([[3,4],[4,5]]) sage: p.set_objective(x[0] - x[1]) sage: p.add_constraint(a1*x[0]+a2*x[1]<= a3) sage: p.show()
leaves the sage:
prompt in the same line:
... Variables: hihi[0], hihi[1] sage:
removing the keyword end=" "
from the last call to print
, makes the
sage:
prompt to display properly.
Change History (5)
comment:1 Changed 2 years ago by
- Branch set to u/mforets/23390
- Commit set to 1e94160123c8ab6b569ab528292eab61cab339c8
comment:2 Changed 2 years ago by
- Status changed from new to needs_review
comment:3 Changed 2 years ago by
- Reviewers set to Jeroen Demeyer
- Status changed from needs_review to positive_review
comment:4 Changed 2 years ago by
thanks
comment:5 Changed 2 years ago by
- Branch changed from u/mforets/23390 to 1e94160123c8ab6b569ab528292eab61cab339c8
- Resolution set to fixed
- Status changed from positive_review to closed
Note: See
TracTickets for help on using
tickets.
New commits:
remove end keyword