Skip to content

Commit

Permalink
Merge branch '3646-3647-highs-remove-vars' into 'v92-bugfix'
Browse files Browse the repository at this point in the history
remove nsolvecalls and ck_ca_n

See merge request integer/scip!3671
  • Loading branch information
svigerske committed Feb 17, 2025
2 parents 3df90b3 + 8449bcc commit 1ee0ee4
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions src/lpi/lpi_highs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,6 @@
} \
while( FALSE )

/**@todo make thread-safe */
int nsolvecalls = 0;

/** SCIP's HiGHS class */
class HighsSCIP : public Highs
{
Expand Down Expand Up @@ -437,12 +434,6 @@ SCIP_RETCODE lpiSolve(
{
std::string presolvestring;

nsolvecalls++;
int ck_ca_n = -99999;
const bool check_lp = nsolvecalls == ck_ca_n;

SCIPdebugMessage("HiGHS LP solve is called for the %d time\n", nsolvecalls);

assert(lpi != NULL);
assert(lpi->highs != NULL);

Expand Down Expand Up @@ -523,14 +514,13 @@ SCIP_RETCODE lpiSolve(
SCIP_CALL( retcode );
}

if( check_lp )
{
int highs_iterations;
HIGHS_CALL( lpi->highs->getInfoValue("simplex_iteration_count", highs_iterations) );
SCIPdebugMessage("After call %d o solve() f=%15g; Iter = %d; Status = %s\n", nsolvecalls,
lpi->highs->getObjectiveValue(), highs_iterations,
lpi->highs->modelStatusToString(lpi->highs->getModelStatus()).c_str());
}
#if SCIP_DISABLED_CODE
int highs_iterations;
HIGHS_CALL( lpi->highs->getInfoValue("simplex_iteration_count", highs_iterations) );
SCIPdebugMessage("After call of solve() f=%15g; Iter = %d; Status = %s\n",
lpi->highs->getObjectiveValue(), highs_iterations,
lpi->highs->modelStatusToString(lpi->highs->getModelStatus()).c_str());
#endif

lpi->solved = TRUE;
return SCIP_OKAY;
Expand Down

0 comments on commit 1ee0ee4

Please sign in to comment.