メインコンテンツへスキップ

How to change gurobi's feasibility tolerance within cobratoolbox?

回答済み

コメント

1件のコメント

  • Vassilios Yfantis
    • Gurobi Staff

    Hi Janavi,

    The COBRA Toolbox is a third-party tool, so we are not familiar with the inner workings. According to the documentation you can set parameters with the setGurobiParam(param) function, where param is a Matlab struct. So it seems you would need to set param.feasTol=1e-8 and then call this function:
    https://opencobra.github.io/cobratoolbox/stable/modules/base/solvers/gurobi/index.html#src.base.solvers.gurobi.setGurobiParam

    Alternatively, you can set parameters by providing them in a Gurobi environment file, which should be called gurobi.env. If this file is present in the directory from which Gurobi is called it will be read and used for the creation of the environment. The environment file is a simple text file and should contain a list of your set parameters:

    FeasibilityTol 1e-8

    Best regards,

    Vassilios

    0

サインインしてコメントを残してください。