Thanks for your quick reply.
When I run the command, which('gurobi'), it is unable to find the instance. However, CVX is still able to find gurobi and use it.
I have tried the following:
- Added the gurobi instance to the path. run command savepath.
- Check if the instance can be found (using the which command), and it is found
- Run a simple test case as follows, which works:
sdpvar x
optimize(x>=0,x,sdpsettings('solver','gurobi'))
- Tried running a script which invokes the export command, which does not work (saying solver cannot be found). Here I also try the which command again just to be sure and as expected solver is not found. Prior to running the export command however, in the same script I successfully solve a problem with CVX using Gurobi.
From your tests, it appears the problem is not from Yalmip. Is it possible the issue is coming from Matlab itself, or perhaps with CVX as I run the instance prior to the yalmip commands? Apologies for this, as the issue is not reproducible on your end, but I wasn't sure where to go from here, and thought someone may have also experienced the same issue.
Best.
Rabab