[eclipse-clp-users] How to get non-optimal solution from eplex with timeout

From: Sergii Dymchenko <kit1980_at_...6...>
Date: Sun, 14 Jul 2013 12:48:53 -0700
Hi,

How can I get non-optimal solution from eplex with timeout?

I setup eplex with:
    eplex_solver_setup(min(Obj), _, [timeout(10), abort_handler(ab)], []),
and after timeout my handler `ab` is called.

But what to do in `ab` handler to get non-optimal solution?

I can get best or worst objective bounds with `eplex_get(best_bound, X)`,
but `eplex_get(typed_solution, Vars)` just fails.

Or maybe using abort_handler for getting non-optimal solution is not a good
idea and there is a better way?

Sergii.
Received on Sun Jul 14 2013 - 19:49:00 CEST

This archive was generated by hypermail 2.3.0 : Tue Apr 16 2024 - 09:13:20 CEST