11 mip = glp_create_prob();
12 tran = glp_mpl_alloc_wksp();
13 ret = glp_mpl_read_model(tran, "sudoku.mod", 1);
15 { fprintf(stderr, "Error on translating model\n");
18 ret = glp_mpl_read_data(tran, "sudoku.dat");
20 { fprintf(stderr, "Error on translating data\n");
23 ret = glp_mpl_generate(tran, NULL);
25 { fprintf(stderr, "Error on generating model\n");
28 glp_mpl_build_prob(tran, mip);
29 glp_simplex(mip, NULL);
30 glp_intopt(mip, NULL);
31 ret = glp_mpl_postsolve(tran, mip, GLP_MIP);
33 fprintf(stderr, "Error on postsolving model\n");
34 skip: glp_mpl_free_wksp(tran);