[Clp] Setting equality constraints in CLP/OSI
Ashutosh Mahajan
asm4 at lehigh.edu
Sun Feb 7 19:51:40 EST 2010
you can write the LP formulation to a file and then manually check the model.
si->writeLp("filename");
--
regards
Ashutosh Mahajan
http://coral.ie.lehigh.edu/~asm4
On Sun, Feb 07, 2010 at 10:39:44AM -0800, Paul De La Musica wrote:
> Hi,
>
> I am testing out a small problem with known solution by modifying
> build.cpp in the OSI example directory. My modified problem has a couple of
> equality constraints of the form
>
> xi-xj=L
>
> which I implemented using the pair
>
> xi-xj <= L and -xi+xj <= -L
>
> Somehow, the program keeps telling me that optimized solution cannot be
> found. I reduced the number of equality constraints to one and it worked
> fine.
>
> Is there an example on how to set equality constraints?
>
> Anything else I should do besides checking code?
>
> Paul
> _______________________________________________
> Clp mailing list
> Clp at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/clp
More information about the Clp
mailing list