I solved an optimal power flow (OPF) problem modeled as a second-order cone programming (SOCP). At first I solved using solver CPLEX in AMPL lenguage, and took 0.08s; then I solved the same problem with CPLEX for Matlab (command cplexqcp) and took 0.86s. Times shown correspond only to the times demand by the solver (CPLEX). Does anyone know what makes such a time difference?
Time results for CPLEX/AMPL:
Elapsed AMPL time : 0.430s
Elapsed Solve time : 0.080s
Elapsed CPU time: 0.510s
Time results for CPLEX/MATLAB:
tic
[x,fval]=cplexqcp([],f,[],[],Aeq,beq,l,Qc,r,Li,Ls);
toc
:
Elapsed time is 0.860856 seconds.
Note: The problem has 542 variables.
------------------------------
Jonathan Ayala Marcelo
------------------------------
#DecisionOptimization