On entry, | , |
or | , |
or | . |
Open in the MATLAB editor: h02bv_example
function h02bv_example fprintf('h02bv example results\n\n'); n = int64(6); m = int64(3); big = 1e+20; a = [ 110, 205, 160, 160, 420, 260; 4, 32, 13, 8, 4, 14; 2, 12, 54, 285, 22, 80]; cvec = [ 3; 24; 13; 9; 20; 19]; bl = [ 0; 0; 0; 0; 0; 0; 2000; 55; 800]; bu = [ 4; 3; 2; 8; 2; 2; big; big; big]; intvar(1:n) = int64(1); crname = {'Oatmeal ';'Chicken ';'Eggs ';'Milk ';'Pie ';'Bacon '; 'Energy ';'Protein ';'Calcium '}; itmax = int64(0); msglvl = int64(1); maxnod = int64(0); intfst = int64(0); toliv = 0; tolfes = 0; x = zeros(n,1); [itmax, toliv, tolfes, big, x, objmip, iwork, rwork, ifail] = ... h02bb( ... itmax, msglvl, a, bl, bu, intvar, cvec, maxnod, intfst, toliv, ... tolfes, big, x); [bl, bu, clamda, istate, ifail] = ... h02bz(n, m, iwork, rwork); [ifail] = h02bv( ... a, bl, bu, x, clamda, istate, crname);
h02bv example results *** IP solver Parameters ---------- Linear constraints...... 3 First integer solution.. OFF Variables............... 6 Max depth of the tree... 9 Feasibility tolerance... 1.05E-08 Print level............. 1 Infinite bound size..... 1.00E+20 EPS (machine precision). 1.11E-16 Integer feasibility tol. 1.00E-05 Iteration limit......... 50 Max number of nodes..... NONE ** Workspace provided with MAXDPT = 9: LRWORK = 215 LIWORK = 343 ** Workspace required with MAXDPT = 9: LRWORK = 215 LIWORK = 343 Total of 43 nodes investigated. Exit IP solver - Optimum IP solution found. Final IP objective value = 97.00000 Varbl State Value Lower Bound Upper Bound Lagr Mult Residual V 1 EQ 4.00000 4.00000 4.00000 3.000 0.000 V 2 LL 0.00000 0.00000 3.00000 24.00 0.000 V 3 LL 0.00000 0.00000 2.00000 13.00 0.000 V 4 LL 5.00000 5.00000 8.00000 9.000 0.000 V 5 EQ 2.00000 2.00000 2.00000 20.00 0.000 V 6 LL 0.00000 0.00000 2.00000 19.00 0.000 L Con State Value Lower Bound Upper Bound Lagr Mult Residual L 1 FR 2080.00 2000.00 None 0.000 80.00 L 2 FR 64.0000 55.0000 None 0.000 9.000 L 3 FR 1477.00 800.000 None 0.000 677.0 Varbl State Value Lower Bound Upper Bound Lagr Mult Residual Oatmeal EQ 4.00000 4.00000 4.00000 3.000 0.000 Chicken LL 0.00000 0.00000 3.00000 24.00 0.000 Eggs LL 0.00000 0.00000 2.00000 13.00 0.000 Milk LL 5.00000 5.00000 8.00000 9.000 0.000 Pie EQ 2.00000 2.00000 2.00000 20.00 0.000 Bacon LL 0.00000 0.00000 2.00000 19.00 0.000 L Con State Value Lower Bound Upper Bound Lagr Mult Residual Energy FR 2080.00 2000.00 None 0.000 80.00 Protein FR 64.0000 55.0000 None 0.000 9.000 Calcium FR 1477.00 800.000 None 0.000 677.0