2
$\begingroup$

I have an Integer Linear Problem which is solved quickly when I change my variable type to double. now I'm developing a fix and relax algorithm and I used conversion to change data type which takes a long time. Does it mean that I made a mistake? how could I reduce the solving time?

$\endgroup$
5
  • $\begingroup$ By "conversion" do you mean instances of IloConversion (the Java class name)? If so, what is it that takes a long time: adding the conversions, deleting the conversions, or something else? $\endgroup$
    – prubin
    Aug 25 '20 at 15:46
  • $\begingroup$ yes.that's it. I mean solving the problem takes along time when I add "conversion" $\endgroup$
    – fhm.ider
    Aug 26 '20 at 13:57
  • $\begingroup$ Are you converting from double to integer or from integer to double? $\endgroup$
    – prubin
    Aug 27 '20 at 14:51
  • $\begingroup$ I'm converting from double to integer $\endgroup$
    – fhm.ider
    Aug 28 '20 at 6:20
  • $\begingroup$ When you say "takes a long time", you mean it takes CPLEX a long time to return from the command to add the conversions (as opposed to takes a long time to solve the converted model, which is to be expected)? $\endgroup$
    – prubin
    Aug 29 '20 at 16:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.