Dear Sir,
I'm trying to compile a standalone executable which is to be send to an external server for calculations.
I'm using matlab R2016b and the latest CPLEX and YALMIP
mcc -mv Scenario2.m -I /allyalmipdirectories/ -I /CPLEX_Studio/cplex/matlab/x86-64_linux -a /call_cplexibm_qcmiqp.m -a /cplexqcp.m -a /cplexlink1271.mexa64
Compiling creates no errors, also
which cplex
which cplex1271.mexa64
which yalmip
produce the following:
/CPLEX_Studio/cplex/matlab/x86-64_linux/@Cplex/Cplex.p % Cplex constructor
/CPLEX_Studio/cplex/matlab/x86-64_linux/cplexlink1271.mexa64
yalmip-master/extras/yalmip.m
It seems at least both YALMIP and CPLEX are located in the compiled program.
However, the solver is not working
./Scenario2
sol =
struct with fields:
yalmiptime: NaN
solvertime: NaN
info: 'Unknown problem in solver (Turn on 'debug' in sdpsettings...'
problem: 9
Mincosts =
NaN
Debug results point towards the following:
Undefined function or variable 'handleparams'.
Error in cplexmilp
Error in call_cplexibm_miqp>localSolverCall (line 164)
Error in call_cplexibm_miqp (line 27)
Error in call_cplexibm_qcmiqp (line 11)
Error in solvesdp (line 350)
Error in optimize (line 31)
Error in Scenario2 (line 231)
Am I missing a path here? I don't really know what handleparams means in this case. Could you help me?