Re: [eclipse-users] Maximization.

From: Kish Shen <kisshen_at_cisco.com>
Date: Sun, 04 Nov 2007 19:56:55 +0000
Hi Amine,

You are using lib(fd), the old finite domain solver. You may want to 
consider using the newer lib(ic) instead.

Also, as the problm you are solving is an  integer problem, and you say 
that the problem is solved efficiently with IP solver, you may want to 
try using lib(eplex) to solve your problem. This uses an external MP 
solver such as COIN-OR's CLP/CBC solvers or CPLEX, to solve your 
problem. In this case, you can specify either max or min for the 
objective function.

Chagining the sign of the objective is the way to change the direction 
of optimisation. Using this should not affect the efficiency of solving 
your problem.-- many integer problems cannot be solved efficiently using 
finite domain solver.

Cheers,

Kish

Amine Marref wrote:
> Hi,
>
> I am new to Eclipse. Is it possible to maximize as opposed to minimize 
> an objective function? I have a problem that is solved efficiently 
> with an integer programming solver but does not seem to work in Eclipse.
>
> I want to use minimize/2 in order to maximize, for this I invert the 
> sign of the cost variable. In the file I attach, the objective is to 
> maximize the linear expression "Sum".
>
> Any help?
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ECLiPSe-Users mailing list
> ECLiPSe-Users_at_crosscoreop.com
> http://www.crosscoreop.com/mailman/options/eclipse-users
Received on Sun Nov 04 2007 - 19:57:25 CET

This archive was generated by hypermail 2.2.0 : Thu Feb 02 2012 - 02:31:58 CET