id summary reporter owner description type status priority milestone component resolution keywords cc merged author reviewer upstream work_issues branch commit dependencies stopgaps
20331 MIPVariable misreports its dimension (always 1) 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 also print some useful information, such as the name of the variable.
Update: Apparently ""dimension"" was supposed to mean something else, see #17463.
" defect new major sage-7.2 numerical lp dimpase vdelecroix jdemeyer N/A