Changeset 2458
 Timestamp:
 Dec 30, 2018 1:55:01 PM (7 weeks ago)
 Location:
 trunk/Cbc/src
 Files:

 2 edited
Legend:
 Unmodified
 Added
 Removed

trunk/Cbc/src/Cbc_C_Interface.cpp
r2456 r2458 798 798 } 799 799 800 COINLIBAPI const double * COINLINKAGE 801 Cbc_getReducedCost(Cbc_Model * model) 802 { 803 if ( Cbc_getNumIntegers(model)==0  model>relax_==1 ) 804 return (model>solver_>getReducedCost()); 805 806 return model>model_>getReducedCost(); 807 } 808 809 810 COINLIBAPI const double * COINLINKAGE 811 Cbc_getColSolution(Cbc_Model * model) 812 { 813 if ( Cbc_getNumIntegers(model)==0  model>relax_==1 ) 814 return (model>solver_>getColSolution()); 815 816 return model>model_>getColSolution(); 817 } 818 800 819 801 820 CbcGetProperty(int, isContinuousUnbounded) … … 816 835 817 836 CbcGetProperty(const double*, getRowActivity) 818 CbcGetProperty(const double*, getColSolution)819 837 820 838 CbcGetProperty(const double*, getRowLower) 
trunk/Cbc/src/Cbc_C_Interface.h
r2457 r2458 563 563 /*@{*/ 564 564 565 /** @brief Best feasible solution vector 566 * 567 * @param model problem object 568 * @return vector with best solution found 569 **/ 570 COINLIBAPI const double * COINLINKAGE 571 Cbc_getColSolution(Cbc_Model * model) 572 ; 573 574 /** @brief Queries vector of reduced costs 575 * 576 * @param model problem object 577 * @return reduced cost vector 578 **/ 579 COINLIBAPI const double * COINLINKAGE 580 Cbc_getReducedCost(Cbc_Model * model) 581 ; 582 565 583 /** Sum of primal infeasibilities */ 566 584 COINLIBAPI double COINLINKAGE 567 585 Cbc_sumPrimalInfeasibilities(Cbc_Model * model) 568 586 ; 587 569 588 /** Number of primal infeasibilities */ 570 589 COINLIBAPI int COINLINKAGE … … 627 646 COINLIBAPI const double * COINLINKAGE 628 647 Cbc_getRowActivity(Cbc_Model * model) 629 ;630 /** Best feasible solution vector */631 COINLIBAPI const double * COINLINKAGE632 Cbc_getColSolution(Cbc_Model * model)633 648 ; 634 649 /** Objective value of best feasible solution */
Note: See TracChangeset
for help on using the changeset viewer.