Skip to content

Commit 3564f69

Browse files
committed
Merge remote-tracking branch 'origin/v10-minor'
2 parents 1926685 + 49b373e commit 3564f69

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

doc/xternal.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@
5151
* - is a framework for branch-cut-and-price.
5252
*
5353
* Since version 10, \SCIP can optionally be configured to solve mixed-integer linear programs in a numerically exact
54-
* solving mode and produce certificates that can be independently verified, see \ref EXACT "How to use the numerically
55-
* exact solving mode" for details.
54+
* solving mode and produce certificates that can be independently verified, see \ref EXACT "How to use the numerically exact solving mode" for details.
5655
*
5756
* See the web site of <a href="http://scipopt.org">\SCIP</a> for more information about licensing and how to download \SCIP.
5857
*

src/scip/nlpi_conopt.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -723,11 +723,11 @@ static int COI_CALLCONV FDEval(
723723

724724
/** CONOPT callback to pass some of the options (not supported via COIDEF_* functions) to CONOPT */
725725
static int COI_CALLCONV Option(
726-
int NCALL, /** number of callback call (provided by CONOPT) */
727-
double* RVAL, /** pointer to set the value of a real option */
728-
int* IVAL, /** pointer to set the value of an integer option */
729-
int* LVAL, /** pointer to set the value of a binary option */
730-
char* NAME, /** pointer to set the name of the option */
726+
int NCALL, /**< number of callback call (provided by CONOPT) */
727+
double* RVAL, /**< pointer to set the value of a real option */
728+
int* IVAL, /**< pointer to set the value of an integer option */
729+
int* LVAL, /**< pointer to set the value of a binary option */
730+
char* NAME, /**< pointer to set the name of the option */
731731
void* USRMEM /**< user memory pointer (i.e. pointer to SCIP_NLPIPROBLEM) */
732732
)
733733
{

src/scip/rational.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2253,10 +2253,10 @@ void chooseSemiconv(
22532253
scip::Integer* p, /**< the last 3 numerators of convergents */
22542254
scip::Integer* q, /**< the last 3 denominators of convergents */
22552255
const scip::Integer& ai, /**< the coefficient in the continuous fraction */
2256-
SCIP_Longint maxdenom /**< the maximal denominator */
2256+
const scip::Integer& maxdenom /**< the maximal denominator */
22572257
)
22582258
{
2259-
scip::Integer j = (scip::Integer(maxdenom) - q[0]) / q[1];
2259+
scip::Integer j = (maxdenom - q[0]) / q[1];
22602260

22612261
if( j >= ai / 2 )
22622262
{
@@ -2635,7 +2635,7 @@ void SCIPrationalComputeApproximation(
26352635
else
26362636
{
26372637
SCIPdebug(std::cout << " picking semiconvergent " << std::endl);
2638-
chooseSemiconv(resnum, resden, p, q, 1, maxdenom);
2638+
chooseSemiconv(resnum, resden, p, q, 1, scip::Integer(maxdenom));
26392639
SCIPdebug(std::cout << " use " << resnum << "/" << resden << std::endl);
26402640
res->val = scip::Rational(resnum,resden) * sign;
26412641
}
@@ -2644,9 +2644,9 @@ void SCIPrationalComputeApproximation(
26442644
else
26452645
{
26462646
if( forcegreater != 0 )
2647-
chooseSemiconv(resnum, resden, p, q, 1, maxdenom);
2647+
chooseSemiconv(resnum, resden, p, q, 1, scip::Integer(maxdenom));
26482648
else
2649-
chooseSemiconv(resnum, resden, p, q, ai, maxdenom);
2649+
chooseSemiconv(resnum, resden, p, q, ai, scip::Integer(maxdenom));
26502650
SCIPdebug(std::cout << " picking semiconvergent " << std::endl);
26512651
SCIPdebug(std::cout << " use " << resnum << "/" << resden << std::endl);
26522652
res->val = scip::Rational(resnum,resden) * sign;

0 commit comments

Comments
 (0)