MILP-error with constraints
Show older comments
First approach with MILP and intlinprog in R2015a.
I keep having the same error. Here it is an example:
intcon=2;
f=[100;70];
Aeq = [1,1];
beq = 1;
lb = zeros(2,1);
ub = lb+1;
x = intlinprog(f,intcon,Aeq,beq,lb,ub)
The error given is:
Error using intlinprog (line 121)
The number of columns in Aeq must be the same as the number of elements of f.
Error in patient2milp (line 26)
x = intlinprog(f,intcon,Aeq,beq,lb,ub)
What should I change?
Thank you and sorry if it is a silly question!
Accepted Answer
More Answers (0)
Categories
Find more on Linear Programming and Mixed-Integer Linear Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!