Skip to content

Solver doesn't terminate with defined time limit  #79

Open
@amininilooffar

Description

Hi, Thanks for the code provided for Google Colab.
I am trying to solve my MINLP problem using 'couenne'. It takes a long time until it gives me the result; however, I want it to stop computations after a defined time frame. I tried this code: from pyomo.opt import SolverFactory, SolverManagerFactory
solver = SolverFactory('couenne')
solver_manager = SolverManagerFactory('serial')
results = solver_manager.solve(model, opt=solver, tee=True, timelimit=600)
But I face an error: 'TimeoutExpired: Command '['/content/bin/couenne', '/tmp/tmp4ceh948b.pyomo.nl', '-AMPL']' timed out after 600.99996879700029 seconds' without having any results.
Could you please help me in this regard?
Thanks,
Niloofar

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions