Ask Your Question

Revision history [back]

solver_parameter('timelimit') doesnt work

Hi,

I have an MILP problem and trying to solve it with sage, GLPK solver. As I want to terminate the problem before getting the optimum answer, I am using the p.solver_parameter("timelimit", 60). I have also used

     try :
           p.solve() 
    except MIPSolverException:
           b= p.get_backend()
           print ('best known opjective bound',b.best_known_objective_bound())

However, the solver doesnt stop!!! It keeps runing. I guess the timelimit part doesnt work. I tried to chage it to p.solver_parameter("timelimit_intopt", 60000 ). I am getting the ValueError: This parameter is not available.

Could anyone help me for this issue?

Thakns in advance,

Cheers, Aissan

solver_parameter('timelimit') doesnt work

Hi,

I have an MILP problem and trying to solve it with sage, Sage, GLPK solver. As I want to terminate the problem before getting the optimum answer, I am using the p.solver_parameter("timelimit", 60). 60). I have also used used

  try :
   try:
        p.solve() 
    except MIPSolverException:
           b= b = p.get_backend()
           print ('best print('best known opjective bound',b.best_known_objective_bound())
bound', b.best_known_objective_bound())

However, the solver doesnt doesn't stop!!! It keeps runing. I guess the timelimit timelimit part doesnt work. doesn't work. I tried to chage it to p.solver_parameter("timelimit_intopt", 60000 ). 60000). I am getting the ValueError: This parameter is not available.available.

Could anyone help me for with this issue? issue?

Thakns Thanks in advance,

Cheers, Aissan Aissan

solver_parameter('timelimit') doesnt work

Hi,

I have an MILP problem and trying to solve it with Sage, GLPK solver. As I want to terminate the problem before getting the optimum answer, I am using the p.solver_parameter("timelimit", 60). I have also used

    try:
        p.solve() 
    except MIPSolverException:
        b = p.get_backend()
        print('best known opjective bound', b.best_known_objective_bound())

However, the solver doesn't stop!!! It keeps runing. I guess the timelimittime limit part doesn't work. I Its interesting that the p.solver_parameter("time limit") its affected, as I am printing its value before passing the p.solve(). I have also tried to chage p.solver_parameter( backend.glp_simplex_or_intopt, backend.glp_intopt_only) and printed the p.solver_parameter("time limit_intopt"). It's printing 60000 which is right. I have no idea why it to p.solver_parameter("timelimit_intopt", 60000). I am getting ValueError: This parameter is not available.keeps running.

Could anyone help me with this issue?

Thanks in advance,

Cheers, Aissan