Originally posted by: SystemAdmin
Hello,
I'm currently trying to solve a mixed integer programs with Python and CPLEX.
With the following code, I am able to solve my problem and I also get the correct result.
> import cplex
>
> c = cplex.Cplex()
> c.read("MasterBIP.txt")
> c.solve()
> x = c.solution.get_values()
In the output, I can see the elapsed time but since I want to solve the problem in a subroutine without output, I wanted to ask how I can access the solution time.
I am happy for every answer,
Best regards,
BobGr
#CPLEXOptimizers#DecisionOptimization