archive/issues_020094.json:
{
"assignees": [],
"body": "<div id=\"comment:0\"></div>\n\n\n```\nsage: p = MixedIntegerLinearProgram(solver=\"glpk\")\nsage: bar = p.new_variable(name=\"bar\")\nsage: bar\nMIPVariable of dimension 1\nsage: bar[0]\nx_0\nsage: bar\nMIPVariable of dimension 1\nsage: bar[1]\nx_1\nsage: bar\nMIPVariable of dimension 1\nsage: p.solve()\n0.0\nsage: bar.values()\n[x_0, x_1]\nsage: p.get_values(bar)\n{0: 0.0, 1: 0.0}\n``` \n\nI think the print method should instead of \"dimension 1\" (which apparently means tensor order 1, rather than dimension 1 -- see #17643) print some useful information, such as the name of the variable and the dimension (number of components).\n\n`MIPVariable bar with 7 binary components`\n\n`MIPVariable bar with 5 real components, >= 0, <= 17`\n\n\nCC: @dimpase @videlec @jdemeyer @yuan-zhou\n\nComponent: **numerical**\n\nAuthor: **Yuan Zhou**\n\nBranch/Commit: **[`b2b9b36`](https://github.com/sagemath/sagetrac-mirror/commit/b2b9b366970d9a7aaa25ddfdfab6ef467f412342)**\n\nReviewer: **Matthias Koeppe**\n\n_Issue created by migration from https://trac.sagemath.org/ticket/20331_\n\n",
"closed_at": "2021-06-06T13:19:38Z",
"created_at": "2016-03-30T23:14:39Z",
"labels": [
"https://github.com/sagemath/sage/labels/c%3A%20numerical",
"https://github.com/sagemath/sage/labels/p%3A%20major%20/%203",
"https://github.com/sagemath/sage/labels/enhancement",
"https://github.com/sagemath/sage/labels/c%3A%20linear%20programming"
],
"milestone": "https://github.com/sagemath/sage/milestones/sage-9.4",
"reactions": [],
"repository": "https://github.com/sagemath/sage",
"title": "A MIPVariable's repr should include some useful information",
"type": "issue",
"updated_at": "2021-06-06T13:19:38Z",
"url": "https://github.com/sagemath/sage/issues/20331",
"user": "https://github.com/mkoeppe"
}
sage: p = MixedIntegerLinearProgram(solver="glpk")
sage: bar = p.new_variable(name="bar")
sage: bar
MIPVariable of dimension 1
sage: bar[0]
x_0
sage: bar
MIPVariable of dimension 1
sage: bar[1]
x_1
sage: bar
MIPVariable of dimension 1
sage: p.solve()
0.0
sage: bar.values()
[x_0, x_1]
sage: p.get_values(bar)
{0: 0.0, 1: 0.0}
I think the print method should instead of "dimension 1" (which apparently means tensor order 1, rather than dimension 1 -- see #17643) print some useful information, such as the name of the variable and the dimension (number of components).
MIPVariable bar with 7 binary components
MIPVariable bar with 5 real components, >= 0, <= 17
CC: @dimpase @videlec @jdemeyer @yuan-zhou
Component: numerical
Author: Yuan Zhou
Branch/Commit: b2b9b36
Reviewer: Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/20331
archive/issue_events_284410.json:
{
"actor": "https://github.com/mkoeppe",
"created_at": "2016-03-30T23:14:39Z",
"event": "milestoned",
"issue": "https://github.com/sagemath/sage/issues/20331",
"milestone_number": null,
"milestone_title": "sage-7.2",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20331#event-284410"
}
archive/issue_events_284411.json:
{
"actor": "https://github.com/mkoeppe",
"created_at": "2016-03-30T23:14:39Z",
"event": "labeled",
"issue": "https://github.com/sagemath/sage/issues/20331",
"label": "https://github.com/sagemath/sage/labels/c%3A%20numerical",
"label_color": "0000ff",
"label_name": "c: numerical",
"label_text_color": "ffffff",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20331#event-284411"
}
archive/issue_events_284412.json:
{
"actor": "https://github.com/mkoeppe",
"created_at": "2016-03-30T23:14:39Z",
"event": "labeled",
"issue": "https://github.com/sagemath/sage/issues/20331",
"label": "https://github.com/sagemath/sage/labels/p%3A%20major%20/%203",
"label_color": "ffbb00",
"label_name": "p: major / 3",
"label_text_color": "ffffff",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20331#event-284412"
}
archive/issue_events_284413.json:
{
"actor": "https://github.com/mkoeppe",
"created_at": "2016-03-30T23:14:39Z",
"event": "labeled",
"issue": "https://github.com/sagemath/sage/issues/20331",
"label": "https://github.com/sagemath/sage/labels/bug",
"label_color": "d73a4a",
"label_name": "bug",
"label_text_color": "ffffff",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20331#event-284413"
}
archive/issue_events_284414.json:
{
"actor": "https://github.com/mkoeppe",
"created_at": "2016-03-30T23:14:39Z",
"event": "labeled",
"issue": "https://github.com/sagemath/sage/issues/20331",
"label": "https://github.com/sagemath/sage/labels/c%3A%20linear%20programming",
"label_color": "0000ff",
"label_name": "c: linear programming",
"label_text_color": "ffffff",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20331#event-284414"
}
archive/issue_comments_293078.json:
{
"body": "Description changed:\n``````diff\n--- \n+++ \n@@ -16,9 +16,6 @@\n 0.0\n sage: bar.values()\n [x_0, x_1]\n-sage: p.get\n-p.get_backend p.get_min p.get_relative_objective_gap \n-p.get_max p.get_objective_value p.get_values \n sage: p.get_values(bar)\n {0: 0.0, 1: 0.0}\n ``` \n``````\n",
"created_at": "2016-03-31T04:47:52Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20331",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20331#issuecomment-293078",
"user": "https://github.com/mkoeppe"
}
Description changed:
---
+++
@@ -16,9 +16,6 @@
0.0
sage: bar.values()
[x_0, x_1]
-sage: p.get
-p.get_backend p.get_min p.get_relative_objective_gap
-p.get_max p.get_objective_value p.get_values
sage: p.get_values(bar)
{0: 0.0, 1: 0.0}
```
archive/issue_comments_293079.json:
{
"body": "Description changed:\n``````diff\n--- \n+++ \n@@ -22,3 +22,5 @@\n \n I think the print method should also print some useful information, such as the name of the variable.\n \n+Update: Apparently \"dimension\" was supposed to mean something else, see #17463.\n+\n``````\n",
"created_at": "2016-04-03T06:49:48Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20331",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20331#issuecomment-293079",
"user": "https://github.com/mkoeppe"
}
Description changed:
---
+++
@@ -22,3 +22,5 @@
I think the print method should also print some useful information, such as the name of the variable.
+Update: Apparently "dimension" was supposed to mean something else, see #17463.
+
archive/issue_events_284415.json:
{
"actor": "https://github.com/mkoeppe",
"created_at": "2016-04-03T07:03:02Z",
"event": "renamed",
"issue": "https://github.com/sagemath/sage/issues/20331",
"title_is": "A MIPVariable's repr should include some useful information",
"title_was": "MIPVariable misreports its dimension (always 1)",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20331#event-284415"
}
archive/issue_events_284416.json:
{
"actor": "https://github.com/mkoeppe",
"created_at": "2016-04-03T07:03:02Z",
"event": "unlabeled",
"issue": "https://github.com/sagemath/sage/issues/20331",
"label": "https://github.com/sagemath/sage/labels/bug",
"label_color": "d73a4a",
"label_name": "bug",
"label_text_color": "ffffff",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20331#event-284416"
}
archive/issue_events_284417.json:
{
"actor": "https://github.com/mkoeppe",
"created_at": "2016-04-03T07:03:02Z",
"event": "labeled",
"issue": "https://github.com/sagemath/sage/issues/20331",
"label": "https://github.com/sagemath/sage/labels/enhancement",
"label_color": "696969",
"label_name": "enhancement",
"label_text_color": "ffffff",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20331#event-284417"
}
archive/issue_comments_293080.json:
{
"body": "Description changed:\n``````diff\n--- \n+++ \n@@ -20,7 +20,6 @@\n {0: 0.0, 1: 0.0}\n ``` \n \n-I think the print method should also print some useful information, such as the name of the variable.\n+I think the print method should instead of \"dimension 1\" (which apparently means tensor order 1, rather than dimension 1 -- see #17643) print some useful information, such as the name of the variable and the dimension (number of components).\n \n-Update: Apparently \"dimension\" was supposed to mean something else, see #17463.\n \n``````\n",
"created_at": "2016-04-03T07:03:02Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20331",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20331#issuecomment-293080",
"user": "https://github.com/mkoeppe"
}
Description changed:
---
+++
@@ -20,7 +20,6 @@
{0: 0.0, 1: 0.0}
```
-I think the print method should also print some useful information, such as the name of the variable.
+I think the print method should instead of "dimension 1" (which apparently means tensor order 1, rather than dimension 1 -- see #17643) print some useful information, such as the name of the variable and the dimension (number of components).
-Update: Apparently "dimension" was supposed to mean something else, see #17463.
archive/issue_events_284418.json:
{
"actor": "https://github.com/mkoeppe",
"created_at": "2021-04-28T17:04:51Z",
"event": "demilestoned",
"issue": "https://github.com/sagemath/sage/issues/20331",
"milestone_number": null,
"milestone_title": "sage-7.2",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20331#event-284418"
}
archive/issue_events_284419.json:
{
"actor": "https://github.com/mkoeppe",
"created_at": "2021-04-28T17:04:51Z",
"event": "milestoned",
"issue": "https://github.com/sagemath/sage/issues/20331",
"milestone_number": null,
"milestone_title": "sage-9.4",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20331#event-284419"
}
archive/issue_comments_293081.json:
{
"body": "Description changed:\n``````diff\n--- \n+++ \n@@ -22,4 +22,7 @@\n \n I think the print method should instead of \"dimension 1\" (which apparently means tensor order 1, rather than dimension 1 -- see #17643) print some useful information, such as the name of the variable and the dimension (number of components).\n \n+`MIPVariable x with 7 binary components`\n \n+`MIPVariable x with 5 real components, >= 0, <= 17`\n+\n``````\n",
"created_at": "2021-04-28T17:34:06Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20331",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20331#issuecomment-293081",
"user": "https://github.com/mkoeppe"
}
Description changed:
---
+++
@@ -22,4 +22,7 @@
I think the print method should instead of "dimension 1" (which apparently means tensor order 1, rather than dimension 1 -- see #17643) print some useful information, such as the name of the variable and the dimension (number of components).
+`MIPVariable x with 7 binary components`
+`MIPVariable x with 5 real components, >= 0, <= 17`
+
archive/issue_comments_293082.json:
{
"body": "Description changed:\n``````diff\n--- \n+++ \n@@ -22,7 +22,7 @@\n \n I think the print method should instead of \"dimension 1\" (which apparently means tensor order 1, rather than dimension 1 -- see #17643) print some useful information, such as the name of the variable and the dimension (number of components).\n \n-`MIPVariable x with 7 binary components`\n+`MIPVariable bar with 7 binary components`\n \n-`MIPVariable x with 5 real components, >= 0, <= 17`\n+`MIPVariable bar with 5 real components, >= 0, <= 17`\n \n``````\n",
"created_at": "2021-05-13T04:26:22Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20331",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20331#issuecomment-293082",
"user": "https://github.com/mkoeppe"
}
Description changed:
---
+++
@@ -22,7 +22,7 @@
I think the print method should instead of "dimension 1" (which apparently means tensor order 1, rather than dimension 1 -- see #17643) print some useful information, such as the name of the variable and the dimension (number of components).
-`MIPVariable x with 7 binary components`
+`MIPVariable bar with 7 binary components`
-`MIPVariable x with 5 real components, >= 0, <= 17`
+`MIPVariable bar with 5 real components, >= 0, <= 17`
archive/issue_comments_293083.json:
{
"body": "Branch: **[u/yzh/a_mipvariable_s_repr_should_include_some_useful_information](https://github.com/sagemath/sagetrac-mirror/tree/u/yzh/a_mipvariable_s_repr_should_include_some_useful_information)**",
"created_at": "2021-05-13T15:05:07Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20331",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20331#issuecomment-293083",
"user": "https://github.com/yuan-zhou"
}
Branch: u/yzh/a_mipvariable_s_repr_should_include_some_useful_information
archive/issue_comments_293084.json:
{
"body": "Author: **Yuan Zhou**",
"created_at": "2021-05-13T15:05:42Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20331",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20331#issuecomment-293084",
"user": "https://github.com/yuan-zhou"
}
Author: Yuan Zhou
archive/issue_events_284420.json:
{
"actor": "https://github.com/yuan-zhou",
"created_at": "2021-05-13T15:05:42Z",
"event": "labeled",
"issue": "https://github.com/sagemath/sage/issues/20331",
"label": "https://github.com/sagemath/sage/labels/needs%20review",
"label_color": "7fff00",
"label_name": "needs review",
"label_text_color": "ffffff",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20331#event-284420"
}
archive/issue_comments_293085.json:
{
"body": "<div id=\"comment:9\"></div>\n\nNew commits:\n<table><tr><td><a href=\"https://github.com/sagemath/sagetrac-mirror/commit/dbe38b2c6a92cc470de5607d418113c6ef91fbe6\"><code>dbe38b2</code></a></td><td><code>change MIPVariable's repr to include useful info</code></td></tr></table>\n",
"created_at": "2021-05-13T15:05:42Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20331",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20331#issuecomment-293085",
"user": "https://github.com/yuan-zhou"
}
New commits:
dbe38b2 | change MIPVariable's repr to include useful info |
archive/issue_comments_293086.json:
{
"body": "Commit: **[`dbe38b2`](https://github.com/sagemath/sagetrac-mirror/commit/dbe38b2c6a92cc470de5607d418113c6ef91fbe6)**",
"created_at": "2021-05-13T15:05:42Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20331",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20331#issuecomment-293086",
"user": "https://github.com/yuan-zhou"
}
Commit: dbe38b2
archive/issue_comments_293087.json:
{
"body": "<div id=\"comment:10\" align=\"right\">comment:10</div>\n\nIt should be \"0 real components\" (plural)",
"created_at": "2021-05-13T20:07:52Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20331",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20331#issuecomment-293087",
"user": "https://github.com/mkoeppe"
}
It should be "0 real components" (plural)
archive/issue_comments_293088.json:
{
"body": "<div id=\"comment:11\"></div>\n\nBranch pushed to git repo; I updated commit sha1. New commits:\n<table><tr><td><a href=\"https://github.com/sagemath/sagetrac-mirror/commit/b2b9b366970d9a7aaa25ddfdfab6ef467f412342\"><code>b2b9b36</code></a></td><td><code>zero is followed by plural countable nouns</code></td></tr></table>\n",
"created_at": "2021-05-13T20:54:01Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20331",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20331#issuecomment-293088",
"user": "https://github.com/sagetrac-git"
}
Branch pushed to git repo; I updated commit sha1. New commits:
b2b9b36 | zero is followed by plural countable nouns |
archive/issue_comments_293089.json:
{
"body": "Changed commit from **[`dbe38b2`](https://github.com/sagemath/sagetrac-mirror/commit/dbe38b2c6a92cc470de5607d418113c6ef91fbe6)** to **[`b2b9b36`](https://github.com/sagemath/sagetrac-mirror/commit/b2b9b366970d9a7aaa25ddfdfab6ef467f412342)**",
"created_at": "2021-05-13T20:54:01Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20331",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20331#issuecomment-293089",
"user": "https://github.com/sagetrac-git"
}
Changed commit from dbe38b2
to b2b9b36
archive/issue_comments_293090.json:
{
"body": "Reviewer: **Matthias Koeppe**",
"created_at": "2021-05-13T22:30:59Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20331",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20331#issuecomment-293090",
"user": "https://github.com/mkoeppe"
}
Reviewer: Matthias Koeppe
archive/issue_events_284421.json:
{
"actor": "https://github.com/mkoeppe",
"created_at": "2021-05-13T22:30:59Z",
"event": "unlabeled",
"issue": "https://github.com/sagemath/sage/issues/20331",
"label": "https://github.com/sagemath/sage/labels/needs%20review",
"label_color": "7fff00",
"label_name": "needs review",
"label_text_color": "ffffff",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20331#event-284421"
}
archive/issue_events_284422.json:
{
"actor": "https://github.com/mkoeppe",
"created_at": "2021-05-13T22:30:59Z",
"event": "labeled",
"issue": "https://github.com/sagemath/sage/issues/20331",
"label": "https://github.com/sagemath/sage/labels/positive%20review",
"label_color": "dfffc0",
"label_name": "positive review",
"label_text_color": "ffffff",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20331#event-284422"
}
archive/issue_events_284423.json:
{
"actor": "https://github.com/vbraun",
"created_at": "2021-06-06T13:19:38Z",
"event": "unlabeled",
"issue": "https://github.com/sagemath/sage/issues/20331",
"label": "https://github.com/sagemath/sage/labels/positive%20review",
"label_color": "dfffc0",
"label_name": "positive review",
"label_text_color": "ffffff",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20331#event-284423"
}
archive/issue_events_284424.json:
{
"actor": "https://github.com/vbraun",
"commit_id": "3b414bea4b27cd44e8a100898252006c50c971af",
"commit_repository": "https://github.com/sagemath/sage",
"created_at": "2021-06-06T13:19:38Z",
"event": "closed",
"issue": "https://github.com/sagemath/sage/issues/20331",
"type": "issue_event",
"url": "https://github.com/sagemath/sage/issues/20331#event-284424"
}
archive/issue_comments_293091.json:
{
"body": "Changed branch from **[u/yzh/a_mipvariable_s_repr_should_include_some_useful_information](https://github.com/sagemath/sagetrac-mirror/tree/u/yzh/a_mipvariable_s_repr_should_include_some_useful_information)** to **[`b2b9b36`](https://github.com/sagemath/sagetrac-mirror/commit/b2b9b366970d9a7aaa25ddfdfab6ef467f412342)**",
"created_at": "2021-06-06T13:19:38Z",
"formatter": "markdown",
"issue": "https://github.com/sagemath/sage/issues/20331",
"type": "issue_comment",
"url": "https://github.com/sagemath/sage/issues/20331#issuecomment-293091",
"user": "https://github.com/vbraun"
}
Changed branch from u/yzh/a_mipvariable_s_repr_should_include_some_useful_information to b2b9b36