Ignore:
Timestamp:
Jan 31, 2014 12:18:01 AM (6 years ago)
Author:
stefan
Message:

add function Clp_freeRay to C interface to free a ray given by Clp_infeasibility/unboundedRay; add functions to get Clp version number from library

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/src/Clp_C_Interface.cpp

    r1926 r2019  
    1111
    1212#include "CoinHelperFunctions.hpp"
     13#include "ClpConfig.h"
    1314#include "ClpSimplex.hpp"
    1415#include "ClpInterior.hpp"
     
    198199#pragma export on
    199200#endif
     201
     202
     203COINLIBAPI const char* COINLINKAGE
     204Clp_Version(void)
     205{
     206   return CLP_VERSION;
     207}
     208COINLIBAPI int COINLINKAGE
     209Clp_VersionMajor(void)
     210{
     211   return CLP_VERSION_MAJOR;
     212}
     213COINLIBAPI int COINLINKAGE Clp_VersionMinor(void)
     214{
     215   return CLP_VERSION_MINOR;
     216}
     217COINLIBAPI int COINLINKAGE Clp_VersionRelease(void)
     218{
     219   return CLP_VERSION_RELEASE;
     220}
     221
    200222/* Default constructor */
    201223COINLIBAPI Clp_Simplex *  COINLINKAGE
     
    668690     }
    669691     return array;
     692}
     693COINLIBAPI void COINLINKAGE
     694Clp_freeRay(Clp_Simplex * model, double * ray)
     695{
     696     free(ray);
    670697}
    671698/* See if status array exists (partly for OsiClp) */
Note: See TracChangeset for help on using the changeset viewer.