yalmip / YALMIP

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

errors when defining binvar matrices using command line syntax #1206

Closed P11GH closed 1 year ago

P11GH commented 1 year ago

I am defining multiple binvar matrices using command line syntax, but MATLAB returns an error.

I am using the follow command: binvar a(9)

The error infomration is "Output argument "sys" (and possibly others) not assigned a value in the execution with "sdpvar" function. error in binvar (the 25th line) sys = sdpvar(varargin{:});".

But the following command goes well: binvar a

What would be the problem for the command defining binvar matrices using command line syntax like "binvar a(9)"?

johanlofberg commented 1 year ago

Sorry for the late reply.

At the moment, this would require some messy rewrite, so I will leave this in the freezer.