Accessing a MIP solution as values in an array

Describes access to the solution of a MIP optimization as values in an array.

After you have solved a MIP, you will usually want to make use of the solution in some way. If you are interested only in the values of the variables at the optimum, then you can perform some simple steps to get that information:

  • In Concert Technology, the method getValues accesses this information.

  • In the Callable Library, use the routine CPXgetx.

After your program has placed the solution values into arrays in this way, it can print the values to the screen, write the values to a file, perform computations using the values, and so forth.