Rev | Line | |
---|
[37] | 1 | function [u,problem,message] = subsref(self,subs) |
---|
| 2 | |
---|
| 3 | if isequal(subs.type,'()') |
---|
| 4 | |
---|
| 5 | if length(subs.subs{1} == self.n) |
---|
| 6 | |
---|
| 7 | elseif size(subs.subs{1},2) == self.n |
---|
| 8 | subs.subs{1} = subs.subs{1}'; |
---|
| 9 | else |
---|
| 10 | error('Input argument has wrong size'); |
---|
| 11 | end |
---|
| 12 | u = []; |
---|
| 13 | for i = 1:size(subs.subs{1},2) |
---|
| 14 | self.model.F_struc(1:self.n,1) = subs.subs{1}(:,i); |
---|
| 15 | eval(['output = ' self.model.solver.call '(self.model);']); |
---|
| 16 | u = [u output.Primal(self.map)]; |
---|
| 17 | problem = output.problem; |
---|
| 18 | message = yalmiperror(output.problem); |
---|
| 19 | end |
---|
| 20 | else |
---|
| 21 | error('Reference type not supported') |
---|
| 22 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.