MCPcopy Create free account
hub / github.com/ERGO-Code/HiGHS / addCols

Method addCols

highs/lp_data/Highs.cpp:2855–2870  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2853}
2854
2855HighsStatus Highs::addCols(const HighsInt num_new_col, const double* costs,
2856 const double* lower_bounds,
2857 const double* upper_bounds,
2858 const HighsInt num_new_nz, const HighsInt* starts,
2859 const HighsInt* indices, const double* values) {
2860 this->logHeader();
2861 HighsStatus return_status = HighsStatus::kOk;
2862 clearDerivedModelProperties();
2863 return_status = interpretCallStatus(
2864 options_.log_options,
2865 addColsInterface(num_new_col, costs, lower_bounds, upper_bounds,
2866 num_new_nz, starts, indices, values),
2867 return_status, "addCols");
2868 if (return_status == HighsStatus::kError) return HighsStatus::kError;
2869 return returnFromHighs(return_status);
2870}
2871
2872HighsStatus Highs::addVars(const HighsInt num_new_var, const double* lower,
2873 const double* upper) {

Callers 3

elasticityFilterMethod · 0.95
test_numpy_sliceMethod · 0.95
addColsInterfaceMethod · 0.45

Calls 2

logHeaderMethod · 0.95
interpretCallStatusFunction · 0.85

Tested by 1

test_numpy_sliceMethod · 0.76