为matlab设置gurobi

为matlab设置gurobi

首先,您需要告诉Matlab在哪里找到Gurobi例程。我们提供了一个脚本来帮助您解决此问题。gurobi matlab设置脚本,gurobi_setup.m.,可以在里面找到 / matlabGurobi安装的目录(默认值对于Gurobi 8.1.1是C:\ gurobi811 \ win64对于64位窗口)。要开始,请在matlab中键入以下命令以更改为马铃薯草目录和呼叫gurobi_setup.

>> CD.C:\ gurobi811 \ win64\ matlab.
>> gurobi_setup.

您需要小心Matlab二进制和您安装的GuRobi包都使用相同的指令集。For example, if you are using the 64-bit version of MATLAB, you'll need to install the 64-bit version of Gurobi, and you'll need to use the 64-bit Gurobi MATLAB libraries (i.e., the ones included with the 64-bit version of Gurobi). This is particularly important on Windows systems, where the error messages that result from instruction set mismatches can be quite cryptic.