Skip to main content

ERROR: Solver log: 'xx' is not recognized as an internal or external command, operable program or batch file.

Answered

Comments

4 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff Gurobi Staff
    This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?.
  • Silke Horn
    • Gurobi Staff Gurobi Staff

    How do you run the solver? Could you give us more information?

    0
  • Rizqi Ilma Nugroho
    • Gurobi-versary
    • First Question
    • First Comment

    I run it like this

     

    starttime = time.time()
    from pyomo.util.infeasible import log_infeasible_constraints

    slvr = SolverFactory('gurobi')
    slvr.options["MIPGap"] = 0.01
    results = slvr.solve(model)

    results.write()
    model.solutions.load_from(results)
    log_infeasible_constraints(model)
    print("%s seconds" %(time.time() - starttime))

    0
  • Tobias Achterberg
    • Gurobi Staff Gurobi Staff

    I fear that you have to ask this question in the Pyomo community. Gurobi does not try to call any program that is called "xx". I think this must come from Pyomo.

    0

Post is closed for comments.