@@ -1685,7 +1685,7 @@ class MatrixVariable(MatrixExpr):
1685
1685
1686
1686
"""
1687
1687
vtypes = np.empty(self .shape, dtype = object )
1688
- for idx in np.ndindex(self ):
1688
+ for idx in np.ndindex(self .shape ):
1689
1689
vtypes[idx] = self [idx].vtype()
1690
1690
return vtypes
1691
1691
@@ -1700,7 +1700,7 @@ class MatrixVariable(MatrixExpr):
1700
1700
1701
1701
"""
1702
1702
in_lp = np.empty(self .shape, dtype = bool )
1703
- for idx in np.ndindex(self ):
1703
+ for idx in np.ndindex(self .shape ):
1704
1704
in_lp[idx] = self [idx].isInLP()
1705
1705
return in_lp
1706
1706
@@ -1715,7 +1715,7 @@ class MatrixVariable(MatrixExpr):
1715
1715
An array of integers. No two should be the same
1716
1716
"""
1717
1717
indices = np.empty(self .shape, dtype = int )
1718
- for idx in np.ndindex(self ):
1718
+ for idx in np.ndindex(self .shape ):
1719
1719
indices[idx] = self [idx].getIndex()
1720
1720
return indices
1721
1721
@@ -1730,7 +1730,7 @@ class MatrixVariable(MatrixExpr):
1730
1730
"""
1731
1731
1732
1732
columns = np.empty(self .shape, dtype = object )
1733
- for idx in np.index (self ):
1733
+ for idx in np.ndindex (self .shape ):
1734
1734
columns[idx] = self [idx].getCol()
1735
1735
return columns
1736
1736
@@ -1744,7 +1744,7 @@ class MatrixVariable(MatrixExpr):
1744
1744
1745
1745
"""
1746
1746
lbs = np.empty(self .shape, dtype = float )
1747
- for idx in np.ndindex(self ):
1747
+ for idx in np.ndindex(self .shape ):
1748
1748
lbs[idx] = self [idx].getLbOriginal()
1749
1749
return lbs
1750
1750
@@ -1758,7 +1758,7 @@ class MatrixVariable(MatrixExpr):
1758
1758
1759
1759
"""
1760
1760
ubs = np.empty(self .shape, dtype = float )
1761
- for idx in np.ndindex(self ):
1761
+ for idx in np.ndindex(self .shape ):
1762
1762
ubs[idx] = self [idx].getUbOriginal()
1763
1763
return ubs
1764
1764
@@ -1772,7 +1772,7 @@ class MatrixVariable(MatrixExpr):
1772
1772
1773
1773
"""
1774
1774
lbs = np.empty(self .shape, dtype = float )
1775
- for idx in np.ndindex(self ):
1775
+ for idx in np.ndindex(self .shape ):
1776
1776
lbs[idx] = self [idx].getLbGlobal()
1777
1777
return lbs
1778
1778
@@ -1786,7 +1786,7 @@ class MatrixVariable(MatrixExpr):
1786
1786
1787
1787
"""
1788
1788
ubs = np.empty(self .shape, dtype = float )
1789
- for idx in np.ndindex(self ):
1789
+ for idx in np.ndindex(self .shape ):
1790
1790
ubs[idx] = self [idx].getUbGlobal()
1791
1791
return ubs
1792
1792
@@ -1800,7 +1800,7 @@ class MatrixVariable(MatrixExpr):
1800
1800
1801
1801
"""
1802
1802
lbs = np.empty(self .shape, dtype = float )
1803
- for idx in np.ndindex(self ):
1803
+ for idx in np.ndindex(self .shape ):
1804
1804
lbs[idx] = self [idx].getLbLocal()
1805
1805
return lbs
1806
1806
@@ -1814,7 +1814,7 @@ class MatrixVariable(MatrixExpr):
1814
1814
1815
1815
"""
1816
1816
ubs = np.empty(self .shape, dtype = float )
1817
- for idx in np.ndindex(self ):
1817
+ for idx in np.ndindex(self .shape ):
1818
1818
ubs[idx] = self [idx].getUbLocal()
1819
1819
return ubs
1820
1820
@@ -1828,7 +1828,7 @@ class MatrixVariable(MatrixExpr):
1828
1828
1829
1829
"""
1830
1830
objs = np.empty(self .shape, dtype = float )
1831
- for idx in np.ndindex(self ):
1831
+ for idx in np.ndindex(self .shape ):
1832
1832
objs[idx] = self [idx].getObj()
1833
1833
return objs
1834
1834
@@ -1842,7 +1842,7 @@ class MatrixVariable(MatrixExpr):
1842
1842
1843
1843
"""
1844
1844
lpsols = np.empty(self .shape, dtype = float )
1845
- for idx in np.ndindex(self ):
1845
+ for idx in np.ndindex(self .shape ):
1846
1846
lpsols[idx] = self [idx].getLPSol()
1847
1847
return lpsols
1848
1848
@@ -1856,7 +1856,7 @@ class MatrixVariable(MatrixExpr):
1856
1856
1857
1857
"""
1858
1858
avgsols = np.empty(self .shape, dtype = float )
1859
- for idx in np.ndindex(self ):
1859
+ for idx in np.ndindex(self .shape ):
1860
1860
avgsols[idx] = self [idx].getAvgSol()
1861
1861
return avgsols
1862
1862
@@ -1876,7 +1876,7 @@ class MatrixVariable(MatrixExpr):
1876
1876
1877
1877
"""
1878
1878
mayround = np.empty(self .shape, dtype = bool )
1879
- for idx in np.ndindex(self ):
1879
+ for idx in np.ndindex(self .shape ):
1880
1880
mayround[idx] = self [idx].varMayRound()
1881
1881
return mayround
1882
1882
0 commit comments