Originally posted by: SystemAdmin
[dgravot@noos.fr said:]
Looking at the oil project and the "Better database reading" configuration, you can see that something like
Library,BM from DBRead(db,"select Library_name,Book_name")
would be closer to what you expect, but once again, you would probably face the fact that "databases donot support data sets of type {int}[{int}]"
You could nevertheless use a workaround with tuples :
tuple BookLibrary
{
int book;
int library;
}
{BookLibrary} bls = ...;
{int} BM[l in library]= {<b,l> | <b,l> in bls};
and the tuple collection would be read from the DB :
bls from DBread(db, "SELECT Book_Name , Library_Name FROM BLTable");
Anyway, I would be curious to see if a simple query could match that also
#DecisionOptimization#OPLusingCPLEXOptimizer