I am very new to Julia and JuMP. I am using CPLEX 12.8 together with my optimization problem.
Instead of using self-defined time function to capture the total time spent in the optimization process, is there a direct way to print out the total time (root+branch-and-cut) of CPLEX?
I try to use SolveTime() in MathOptInterface (v0.8.4) but it didn’t work.
When I typed MathOptInterface.SolveTime(), the result just give me
And when I typed MathOptInterface.SolveTime(problem1), the error said
MethodError: no method matching MathOptInterface.SolveTime(::Model)
Closest candidates are:
MathOptInterface.SolveTime() at path
It would be nice if someone can show me how to correctly use the code since I also need to get the information of relative gap as well.
Thank you so much.