Skip to content

Commit d0db680

Browse files
committed
Check pointer to original lp
1 parent 0bf94bf commit d0db680

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

highs/ipm/hipo/ipm/Model.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,8 @@ Int Model::loadIntoIpx(ipx::LpSolver& lps) const {
518518
std::vector<char> ipx_constraints;
519519
double ipx_offset;
520520

521+
if (!lp_orig_) return kStatusError;
522+
521523
fillInIpxData(*lp_orig_, ipx_n, ipx_m, ipx_offset, ipx_c, ipx_lower,
522524
ipx_upper, ipx_A_ptr, ipx_A_rows, ipx_A_vals, ipx_b,
523525
ipx_constraints);

0 commit comments

Comments
 (0)