<font face="arial,helvetica,sans-serif">Hi Alex,<br><br>You can write your model using the <br><br>LP file format, for instance:<br><br><a href="http://lpsolve.sourceforge.net/5.5/lp-format.htm">http://lpsolve.sourceforge.net/5.5/lp-format.htm</a><br>
<br>It is one of the CBC supported file formats.<br><br>Please keep in mind that CBC only solves integer linear programming models.<br><br>Cheers,<br><br>Haroldo<br></font><br><div class="gmail_quote">On Thu, Aug 4, 2011 at 2:23 PM, Alex Escott <span dir="ltr">&lt;<a href="mailto:AE@malaspina-labs.com">AE@malaspina-labs.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi all, new to CBC and trying to get something simple (I think!) working. I have an objective function and set of parameters which is pretty small in comparison to the 1000s of params that I see people talking about.<br>

<br>
My params will be integer, floating point, or Boolean, and they don&#39;t have any constraints between them. I only have ranges for the values themselves. I have only 10-15 of these. They look something like:<br>
<br>
int     num1, where 0 &lt;= num1 &lt;= 20<br>
float num2, where -1.0 &lt;= num2 &lt;= 1.0<br>
bool num3, where num3 == 0 or 1 (true or false)<br>
<br>
I&#39;ve spent the last day or two going through the code, docs and examples and am still wondering how to get started...<br>
<br>
1. What class do I create for my solution? A CBCSolver?<br>
2. How are these .mps files created... are they a serialized state of the solver, or do I create one from scratch to start?<br>
3. How do I declare my params and their types/bounds and input them to the solver?<br>
4. How do I hook up my objective function?<br>
<br>
Any help is greatly appreciated, thanks a lot!<br>
<br>
-ake<br>
<br>
<br>
_______________________________________________<br>
Cbc mailing list<br>
<a href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/cbc" target="_blank">http://list.coin-or.org/mailman/listinfo/cbc</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>=============================================================<br>Haroldo Gambini Santos<br>Computing Department - Universidade Federal de Ouro Preto - UFOP<br>email: haroldo [at ] <a href="http://iceb.ufop.br" target="_blank">iceb.ufop.br</a><br>
home/research page: <a href="http://www.decom.ufop.br/haroldo/" target="_blank">www.decom.ufop.br/haroldo/</a><br> <br>&quot;Computer science is no more about computers than astronomy <br>is about telescopes.&quot; Edsger Dijkstra<br>
 <br>