[Coin-announce] A new library for algebraic modeling in C++ : Rehearse
Onur Çelebi
onur.celebi at nereo.fr
Tue May 5 04:16:37 EDT 2015
I am happy to announce the release of Rehearse, an algebraic modeling
library in C++,
that has been added to the COIN-OR repository :
https://projects.coin-or.org/Rehearse
It works in a very similar way to the equivalent proprietary ILOG Concert ©
library.
In particular :
* It helps you to build your model using native C++ expressions, for
example :
CelNumVar x1;
CelNumVar x2;
model.setObjective ( 7 * x1 + 9 * x2 );
model.addConstraint( 1 * x1 + x2 == 18 );
model.addConstraint( x2 <= 14 );
model.addConstraint( 2 * x1 + 3 * x2 <= 50 );
* It supports multi dimensional variable arrays, for example : x[i][j][k]
<= 3
* Expressions are interpreted dynamically so you can build them in C++
CelExpression expr;
for (int j=0; j<L; j++){
expr += x[i][j];
}
model.addConstraint( expr <= 1 );
* It is released under MIT license.
The source code and some examples are available on COIN-OR's github page :
https://github.com/coin-or/Rehearse
If you want to try it, download_dependencies.sh will download other COIN-OR
projects
dependencies via svn, then you can use the classical ./configure, make,
make test, make install.
Regards,
Onur Celebi
Nᴇʀᴇᴏ <http://nereo.com/>
Onur Çelebi
Responsable Technique - Co-fondateur
onur.celebi at nereo.fr
Tél : +33 4 28 04 00 98
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/coin-announce/attachments/20150505/91ff7095/attachment.html>
More information about the Coin-announce
mailing list