problem about yalmiptime of model

45 views
Skip to first unread message

Ziliang Lin

unread,
Aug 29, 2018, 3:49:54 AM8/29/18
to YALMIP
Dear Prof. Lofberg:
          i established a model about electric power system, this model is trying to solve a socp problem and contains about 3000 constraints and 300 variables. When i use yalmip to solve this problem, the process of calculation is very slow. yalmiptime in the result is about 22 seconds  and solvetime is about 0.3second. according to the information in yalmipsite, the yalmiptime should be a fraction of the total problem, is this result normal? and what can i do to accelerate the calculation?   
         By the way, when i operate the model, there're several tips inform that 'please preallocating memories to accelerate the calculation',how to preallocate memories for constraints?   this model have 3000 constraints,how can i preallocate memories ?
         please help me ,i am very confused!
Best regards.
caculation.m

Johan Löfberg

unread,
Aug 29, 2018, 4:14:50 AM8/29/18
to YALMIP
A first step would be to vectorize the code. It is very inefficiently written at the moment

Johan Löfberg

unread,
Aug 29, 2018, 4:15:49 AM8/29/18
to YALMIP
btw, solvesdp is an obsolete command. It is called optimize

Ziliang Lin

unread,
Aug 29, 2018, 4:48:08 AM8/29/18
to YALMIP
thank u very much,i'll have a try .
Reply all
Reply to author
Forward
0 new messages