[Coin-discuss] Time limit on presolve?

El Dono eldono at libero.it
Sun May 4 13:53:46 EDT 2008


Don't know if that's the problem, because I already use the glpk mps writer to generate the mps file starting from a mod file and a dat file:

#include <iostream>
#include "glpk.h"
#include "OsiClpSolverInterface.hpp"
#include "OsiGlpkSolverInterface.hpp"

int main(void)
{
    OsiSolverInterface *si;
    si = new OsiClpSolverInterface;

    //The behaviour is the same if I use instead
    //si = new OsiGlpkSolverInterface;

    // Call glpk methods
    lpx_write_freemps(lpx_read_model("mymodel.mod","mydata.dat","temp_mps_file.mps") ,"real_mps_file.mps");
    si->readMps("real_mps_file.mps");


    //si->initialSolve();
    si->branchAndBound();
    
    //Never get over there, get "primal infeasible" message
    ...
}

This is (part of) my C file. As already said, if I load "real_mps_file.mps" into glpsolve directly from a shell, it calculates the correct solution of the problem, but using this C-file compiled I get primal infeasible message, both if I try the initialSolve or the branchAndBound.
I'm quite hopeless, can't figure out what's the problem with my file or my model...
Hope someone could help.
Domenico S.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/coin-discuss/attachments/20080504/913f2db3/attachment.html>


More information about the Coin-discuss mailing list