[Clp] Fwd: problem with coin-or lp solver library
John Forrest
john.forrest at fastercoin.com
Fri Jan 16 04:17:27 EST 2015
Empty problem warning is fine - just means clp could solve problem
without doing the lp.
It looked at the model and saw that the optimal solution had to be to
set variables to zero - so fixed all variables and deleted all rows.
So
clp opt_prod_mix.mps -solve -solution $
$ will just print solutio, x.sol will write solution to x.sol
John Forrest
On 16/01/15 07:01, haris iqbal wrote:
>
> ---------- Forwarded message ----------
> From: *haris iqbal* <haris.phnx at gmail.com <mailto:haris.phnx at gmail.com>>
> Date: Fri, Jan 16, 2015 at 12:31 PM
> Subject: Re: [Clp] problem with coin-or lp solver library
> To: Babak Moazzez <bmoazzez at ucdavis.edu
> <mailto:bmoazzez at ucdavis.edu>>, deinst at gmail.com <mailto:deinst at gmail.com>
>
>
> what i am doing is solving a 2 variable lp problem by writing a .mps
> file and then running it through the terminal by
>
> clp filename.mps
>
> i am attaching the .mps file also.. this problem gives the correct
> answer using other tool but gives an empty problem warning using clp.
>
> On Fri, Jan 16, 2015 at 6:54 AM, Babak Moazzez <bmoazzez at ucdavis.edu
> <mailto:bmoazzez at ucdavis.edu>> wrote:
>
> If you are using clp api, use the command
>
> solu results.txt
>
> Clp will write the solution to a text file named results.txt
>
> On Jan 15, 2015 6:05 AM, "haris iqbal" <haris.phnx at gmail.com
> <mailto:haris.phnx at gmail.com>> wrote:
>
> Hello,
> I am trying to solve some lp problems using the clp library.
> But i am facing some problems.
>
> 1) The optimal solution that i am getting is just the value..
> is there a way to get the value of the co-ordinates also
> (value of the variables for that optimal solution)..?
>
> 2) The problems gives the empty problem warning for some valid
> solution.. those problem i have checked using some other lp
> problem solver, and they were all valid..
>
> _______________________________________________
> Clp mailing list
> Clp at list.coin-or.org <mailto:Clp at list.coin-or.org>
> http://list.coin-or.org/mailman/listinfo/clp
>
>
>
>
>
> _______________________________________________
> Clp mailing list
> Clp at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/clp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/clp/attachments/20150116/474e842f/attachment.html>
More information about the Clp
mailing list