Skip to content

Commit

Permalink
back objsense until C interface fixed and weird Microsoft compiler bug?
Browse files Browse the repository at this point in the history
  • Loading branch information
jjhforrest committed Nov 10, 2023
1 parent 2467a7f commit 4b12929
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Osi/OsiSolverInterface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -613,8 +613,18 @@ class OSILIB_EXPORT OsiSolverInterface {
virtual double getObjSense() const = 0;
/// For getting rid of many getObjSense()'s
/// When known to be minimization
// Put back until errors fixed
inline double getObjSenseInCbc() const
#if 0
/// Looks like weird error as compiler does not like assert
#if defined(_MSC_VER)
{ return 1.0;}
#else
{ assert (getObjSense()==1.0);return 1.0;}
#endif
#else
{ return getObjSense();}
#endif

/// Return true if the variable is continuous
virtual bool isContinuous(int colIndex) const = 0;
Expand Down

0 comments on commit 4b12929

Please sign in to comment.