#CódigoMatlab del video: a = optimvar('a','Type','integer'); b = optimvar('b','Type','integer'); c = optimvar('c','Type','integer'); d = optimvar('d','Type','integer'); e = optimvar('e','Type','integer'); f = optimvar('f','Type','integer'); g = optimvar('g','Type','integer'); h = optimvar('h','Type','integer'); i = optimvar('i','Type','integer'); j = optimvar('j','Type','integer'); p = optimproblem("ObjectiveSense","minimize"); p.Objective = a+b+c+d+e+f+g+h+i+j; p.Constraints.Medida4 = a + b + 2*d + 4*e + 2*f + 3*h + 3*i >= 12; p.Constraints.Medida5 = 3*b + 2*c + d + 2*f + g + i >= 15; p.Constraints.Medida6 = 2*a + c + d + 2*g + h + 3*j >= 22; p.Constraints.R1 = a >= 0; p.Constraints.R2 = b >= 0; p.Constraints.R3 = c >= 0; p.Constraints.R4 = d >= 0; p.Constraints.R5 = e >= 0; p.Constraints.R6 = f >= 0; p.Constraints.R7 = g >= 0; p.Constraints.R8 = h >= 0; p.Constraints.R9 = i >= 0; p.Constraints.R10 = j >= 0; Sol = solve(p, 'Solver', 'intlinprog');