comp-imaging / ProxImaL

A domain-specific language for image optimization.
MIT License
114 stars 29 forks source link

Support for several variables #21

Closed adler-j closed 8 years ago

adler-j commented 8 years ago

Currently when trying to use several variables at once:

>>> x = proximal.Variable(3)
>>> y = proximal.Variable(6)
>>> rhs = np.array([1, 2, 3])
>>> prob = proximal.Problem([proximal.sum_squares(x - rhs),
                             proximal.sum_squares(proximal.subsample(y, [2]) - x)])
>>> prob.solve()

errors are encountered. Is this type of problem intended to be supported in ProxImaL? If not, perhaps a check should be added to disallow it.

SteveDiamond commented 8 years ago

Multiple variables are supposed to work. This particular bug is fixed now. A lot of the problem analysis and rewriting is disabled for multiple variables at the moment (though the plan is to make it work).