Hi all,

I am new in Julia and JuMP.jl

I have many decision variables, like, x1, x1, …x999, …

if I want to obtain the value of all decision variables

now, I may only use the codes as follows:

```
x1 = value.(x1)
x2 = value.(x2)
....
x999 = value.(x999)
```

this may cost me too much time

Is there a “one-click” function to get all variable values? And copy them to their original variable names

I used to be a MATLAB/Yalmip user, in matlab, I can use this m-file to achieve the target above, as follows:

```
res = whos;
[nn, mm] = size(res);
for ii = 1:nn
if strcmp(res(ii).class, 'sdpvar') || strcmp(res(ii).class, 'ndsdpvar')
vars = res(ii).name;
eval([vars, '=', 'value(', vars ,');']);
end
end
clear vars
```

if JuMP.jl do not have this “one-click” function, who can tell me how to obtain the variables in the current workspace (Julia pro), like `whos`

in MATLAB.

Thanks a lot!