[Osi] CPLEX Error 1217: No solution exists.

Matthew Galati magh at lehigh.edu
Mon Jun 2 11:37:35 EDT 2008


> This might be related to an old discussion...
>
> Using OsiCpx, I do
>   initialSolve()
>   getObjValue()
>   addCols()
>   getObjValue()  --> returns CPLEX Error  1217: No solution exists
>
> This is just an LP. Earlier issues with caching seem to have to do 
> with switching from MIP to LP, etc.
>
> It looks like some attempt to keep cache was already made. Any ideas? 
> If needed, I can create a driver program to show this issue.
>
> int err = CPXaddcols(env_, 
> getLpPtr(OsiCpxSolverInterface::KEEPCACHED_ROW),
>                       numcols, nz, const_cast<double*>(obj),
>                       start, index, elem,
>                       const_cast<double*>(collb),
>                       const_cast<double*>(colub), NULL );
>
>

Note, I tried changing to KEEPCACHED_ALL, but same problem.

  printf("MVG obj = %g", getObjValue());

  //int err = CPXaddcols(env_, 
getLpPtr(OsiCpxSolverInterface::KEEPCACHED_ROW),
  int err = CPXaddcols(env_, 
getLpPtr(OsiCpxSolverInterface::KEEPCACHED_ALL),
                       numcols, nz, const_cast<double*>(obj),
                       start, index, elem,
                       const_cast<double*>(collb),
                       const_cast<double*>(colub), NULL );

  printf("MVG obj = %g", getObjValue());



MVG obj = -12.5581 CPLEX Error  1217: No solution exists.
MVG obj = 0






More information about the Osi mailing list