How to change gurobi's feasibility tolerance within cobratoolbox?
AnsweredI am trying to lower my default feasible tolerance from 1e-6 to 1e-8 using the cobratoolbox function changecobrasolverparam function in matlab. The change is not getting updated .Why is this happening and how to fix this? P.S. I have an academic license to gurobi.
-
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-8Best regards,
Vassilios
0
Please sign in to leave a comment.
Comments
1 comment