i've setted my IntVars, but i need Jacop to give the max values of them, in order to ahve the max value of determine function
for example i got:
Xa,Xb,Xc as intVars
i set some constraints
and i need this function to maximize
I am sorry, but I do not understand your post.
Please have a look at the examples provided with the solver. It should give you a good introduction how to use JaCoP and CP.
You probably will need Sum constraint, and use search with optimization variable.
In short, i need to know how to use "cost" var, in optimizations problems .
For details on optimization ans search, please refer to JaCoP Guide, section 5.1 (http://jacopguide.osolpro.com/guideJaCoP.html#x1-430001).
"The minimization in JaCoP is achieved by defining variable for cost and using branch-and-bound (B&B) search, as specified below.
boolean result = label.labeling(store, select, cost);
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.