[Cbc] Question about number of values when loading a problem

Jack Vreeken jack at vreeken.me
Sat Aug 17 16:32:35 EDT 2019


I think I pressed some random shortcut sending the email a tad too soon. What
I meant to say is:

It can figure out the length because "start" argument is of length numcols+1.
The length of the last column is then start[numcols]-start[numcols-1].

See also:

https://en.wikipedia.org/wiki/Sparse_matrix#Compressed_sparse_column_(CSC_or_CCS)
https://www.coin-or.org/Doxygen/Cbc/classOsiSolverInterface.html#aa90be801bc88d0fc67b7d343ea62f84c

On Sat, Aug 17, 2019, at 8:35 PM, Daniel Grace wrote:
> Hi,
> 
> What I mean is: how does Cbc_loadProblem tell how many values there are in the constraint matrix? The reason I ask this is because I would like to resolve problems with additional constraints, so I would like to use the same arrays over and over i.e. appending the new constraints appropriately.
> 
> Thanks
> _______________________________________________
> Cbc mailing list
> Cbc at list.coin-or.org
> https://list.coin-or.org/mailman/listinfo/cbc
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20190817/12f43297/attachment.html>


More information about the Cbc mailing list