Originally posted by: TF87
Hello.
I want to build a QP. I've read the documentation for cplex.addQCs
http://www-01.ibm.com/support/knowledgecenter/SSSA5P_12.6.0/ilog.odms.cplex.help/refmatlabcplex/html/classCplex.html%23a21779992067abbd5fceb8df298322e51?lang=de
but when I use the given example
cplex.addQCs([0 0 0]',[1 0 0;0 1 0;0 0 1],'L',1,{'qc1'});
I get the following error
Error using Cplex/addQCs (line 3378)
Cplex.addQCs Error: a has incompatible dimensions.
Error in Cplex/subsref (line 3852)
Do you know what is wrong, since it is just the example from the documentation?
I'm using MATLAB R2014a & CPLEX Studio 12.5
Thanks in advance.
Best regards.
#CPLEXOptimizers#DecisionOptimization