yalmip / YALMIP

MATLAB toolbox for optimization modeling
https://yalmip.github.io/
Other
494 stars 139 forks source link

How to rapidly get the values of a list of variables? #1404

Closed styw1234 closed 6 months ago

styw1234 commented 6 months ago

Usually, we can use 'value' to get the value of the variable. For example:

a=sdpvar(1,1) value_a=value(a)

Suppose that there are many variables which are generated by 'sdpvar'. How to rapidly get the values of these variables ? Is there any tip or function to get the value of a list of variables?