[Bonmin] reading bonmin output .sol, accessing optimal solution

Martin Mevissen1 MARTMEVI at ie.ibm.com
Tue Jan 10 05:19:00 EST 2012


Dear Pierre,

Thanks for the reply. I have a problem with running bonmin from inside
ampl. When invoking
> option solver bonmin;
> solve;

in ampl, I get the error
> "Cannot invoke bonmin: no such program"

However, I have added the directory with bonmin.exe to my $PATH, and I do
not have a problem calling bonmin from cygwin command line.
Are you familiar with this error and how to overcome it?

Thanks and best regards,

Martin




From:	Pierre Bonami <pierre.bonami at gmail.com>
To:	Martin Mevissen1/Ireland/IBM at IBMIE,
Cc:	"bonmin at list.coin-or.org" <bonmin at list.coin-or.org>
Date:	07/01/2012 20:13
Subject:	Re: [Bonmin] reading bonmin output .sol, accessing optimal
            solution



Dear Martin,
You should better run bonmin from inside ampl that knows how to read the
output sol file generated by bonmin.
In ampl just use:
option solver bonmin;
to choose bonmin as the solver.
I hope this helps. Best,
Pierre

On Thursday, January 5, 2012, Martin Mevissen1 wrote:

  Hi everyone,

  I have the following problem, for which I could not find an answer in the
  bonmin manual (and checking the available online support):

  I am running bonmin from command line in cygwin with an *.nl file
  (generated via ampl as outlined in the tutorial by David Gay) as input.
  Bonmin does terminate successfully and prints the correct minimum.
  However,
  the optimal solution for which this minimum is achieved is not reported.
  How can I access the full optimal vector of continuous and binary
  variables? I put the print level = 8 in bonmin.opt, but the stated primal
  solution vector $x$ is too short to be the full optimal solution. In the
  case it is contained in the *.sol file generated by bonmin, how can I
  read/access this file?

  It would be great, if someone could help me with this.

  Best regards,

  Martin

  _______________________________________________
  Bonmin mailing list
  Bonmin at list.coin-or.org
  http://list.coin-or.org/mailman/listinfo/bonmin



More information about the Bonmin mailing list