Changeset 2331


Ignore:
Timestamp:
May 23, 2017 6:44:42 PM (19 months ago)
Author:
unxusr
Message:

overloaded method to enter mipstart

Location:
trunk/Cbc/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/CbcModel.cpp

    r2328 r2331  
    1936819368  return cut;
    1936919369}
     19370
     19371void CbcModel::setMIPStart( int count, const char **colNames, const double colValues[] )
     19372{
     19373    mipStart_.clear();
     19374    for ( int i=0 ; (i<count) ; ++i )
     19375        mipStart_.push_back( std::pair<std::string, double>( std::string(colNames[i]), colValues[i]) );
     19376}
     19377
  • trunk/Cbc/src/CbcModel.hpp

    r2314 r2331  
    23992399       this->mipStart_ = mips;
    24002400    }
     2401
     2402    /** may be safer to use this overload method: c++ string libraries
     2403     * implementation may not be binary compatible */
     2404    void setMIPStart( int count, const char **colNames, const double colValues[] );
    24012405
    24022406    const std::vector< std::pair< std::string, double > > &getMIPStart() {
Note: See TracChangeset for help on using the changeset viewer.