Originally posted by: Swisscube
First of all: thank you for your quick response!
>
> First, part of your code is illegible -- the forum software interpreted it as a hyperlink. Bracketing code with the {code} tag (see markup help to the right) would avoid this. Using the Preview tab would let you know if you were successful.
>
Yes, you're right - sorry
> Second, there needs to be something between the declaration of the two vectors and their use in addMIPStart -- you need to put the variables
used in your model into the variable vector and the corresponding values for them in the initial solution into the double vector.
Well, the variable y (IloIntVar vector) is used in the model and I surely would have to put the values of the initial solution into the yValuesExtended double vector. However, it throws a null pointer exception so as I understand it, this cannot be due to providing the wrong values in the values vector ... ? In each case the variables and the values vector have the same size. (I assigned the yValuesExtended vector to the right solution values in the previous version of the code but now I simplified it a lot in order to find the bug)
Could you maybe provide a very simple code example for the use of addMIPStart? Just for assigning lets say two IloIntVars to two values using addMIPStart. This would be great!
Thanks.
>
> /Paul
>
> Mathematicians are like Frenchmen: whenever you say something to them, they translate it into their own language, and at once it is something entirely different. (Goethe)
#CPLEXOptimizers#DecisionOptimization