Originally posted by: felycite28
I guess I solved it but I am not sure
I tried a few of IBM python examples they worked but since I need the primal solution of cplex I inspired from your admipex6. py example ; anyway and followed the code to do that on python :
import cplex
import sys
def sample1(filename):
c=cplex.Cplex(filename)
try:
c.solve()
except CplexSolverError:
print "Exception raised during solve"
return
status=c.solution.get_status()
print "Solution Status=", status,":",
print c.solution.status[status]
print "Objective value=",c.solution.get_objective_value()
but here , I still can not get the result ,objective value , I should connect with . mod and .dat but I could not achieve it .
Where I should indicate the name of the model and data to get solution ? (If it is filename part, I could not be sure about the extension of them and I am so newly learner , basically it is nightmare)
Thank you in advance
Regards
#CPLEXOptimizers#DecisionOptimization