HI I have a cplex code with c . This is the main function:

int main()


………….. // variable declaration…

readData(D); // read data from a file

nb = lp (D);// solve model with instances from D with cplex routines and return the result to our main function


which time shall i use the cpu time?

  • with the function clock() because i read the data in the main function ?

  • with the routine of cplex?

asked 13 Nov '15, 04:07

fathese's gravatar image

accept rate: 0%

As I understand, your CPLEX routine is responsible for both building the model and solving it (i.e., the readData routine just reads data into predefined data structure but doesn't create a model understandable by CPLEX). In that case, you should just use the CPU time of the CPLEX routine.

PS. Please don't repeat your already asked question. If you don't get a timely answer, it's probably because your question is not clear enough. You should try clarifying your previously-asked question, not adding a new one.


answered 13 Nov '15, 04:18

Ehsan's gravatar image

Ehsan ♦
accept rate: 16%

thanks a lot i just thought i should reformulate the question for more comprehension

(13 Nov '15, 04:38) fathese

You're welcome. You can edit your own questions or add comment to the original question to clarify them.

(13 Nov '15, 04:56) Ehsan ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 13 Nov '15, 04:07

Seen: 517 times

Last updated: 13 Nov '15, 04:56

OR-Exchange! Your site for questions, answers, and announcements about operations research.