thanks, johan.
recover(getvariables(x1)) can only get one vector.
I wonder how can I get the whole variable vector of the constraint, if the constraint contains x1, x2 and more other variable vectors just like:
const1=[
A*x1+B*x2 >= c,...
D*x1+E*x2 +F*x3 <=0,...
G*x4 == h,...
]
where x1,...,x4 are all variable vectors.