Originally posted by: Mambo12345
Hello everyone,
I am new in the world of Cplex and Matlab and I apologize for every easy question I ask or for every mistake I do.
I have a quadratic program with linear constraints.
[x,fval] = cplexmiqp(H, f, A, b', Aeq, beq', [], [], [], lb, ub, 'B' ,[],options)
my matrix H is actually not symmetric but I fixed this with setting H = H+H'.
Now I would like to say Cplex/matlab that every of my variables x should be binary but I dont know how.
Actually I dont even need my function f but when I write [] instead of f it always says:
Error using cplexmiqp
CPLEX encountered arrays with inconsistent lengths.
Can please anybody help me ?
I am thankful for every advice.
Best regards !
#CPLEXOptimizers#DecisionOptimization