Hi Alex,
Thanks for your help. I think one line is missing in your code though:
mdl.parameters.mip.pool.absgap = 0
Otherwise, the mean of the objective value of the solution pool in my case is higher than that of the optimal solution.
However, is it possible to only the solution value of only the nonzeros binary variables, or at least display the nonzeros solutions values?
Thanks in advance,
best,
Original Message:
Sent: Mon July 06, 2020 06:30 AM
From: ALEX FLEISCHER
Subject: get all optimal solutions
Hi,
I updated my github example so that the settings are taken into account
regards
------------------------------
ALEX FLEISCHER
Original Message:
Sent: Mon July 06, 2020 03:36 AM
From: s charaf
Subject: get all optimal solutions
Hi Alex,
the code that you suggested, it is possible to get all the feasible solutions, right? because the objective function that I get without using cpx.populate_solution_pool() is not the same as the mean objective value of the solution pool (also the number of solutions is 2 without the solution pool and is equal to 23 with the solution pool).
Do you know how to modify this to get only the "optimal" solutions?
best,
Original Message:
Sent: Fri July 03, 2020 11:49 AM
From: s charaf
Subject: get all optimal solutions
Thanks a lot!
best,
Original Message:
Sent: Fri July 03, 2020 11:46 AM
From: ALEX FLEISCHER
Subject: get all optimal solutions
Hi,
solutions pools are available in docplex too
See
solution pools
in
https://www.linkedin.com/pulse/making-optimization-simple-python-alex-fleischer/
regards
------------------------------
ALEX FLEISCHER
Original Message:
Sent: Fri July 03, 2020 10:47 AM
From: s charaf
Subject: get all optimal solutions
Sorry I did not indicate that I am using docplex. Is there an equivalent in docplex?
Original Message:
Sent: Fri July 03, 2020 10:46 AM
From: Daniel Junglas
Subject: get all optimal solutions
Yes, this is possible. See this section in the user manual.
------------------------------
Daniel Junglas
Original Message:
Sent: Fri July 03, 2020 10:42 AM
From: s charaf
Subject: get all optimal solutions
Hi,
I can see in solve details that I sometimes get a few number of solutions, and I want to know if it is possible to collect all the optimal solutions.
Any idea?
best,
#DecisionOptimization