Skip to content

Commit bb35caf

Browse files
authored
Merge pull request #2101 from ERGO-Code/fix-2065
Fix 2065
2 parents 6889c0d + 3fa558e commit bb35caf

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

FEATURES.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11
## Build changes
22

33
## Code changes
4+
5+
Any LP offset is communicated to the IPM solver, and used in logging and primal/dual objective calculations.
6+
7+
If there is a valid basis when Highs::run() is called, presolve isn't skipped unless the solver option is "simplex" or "choose" (when simplex will always be chosen if there is an advanced basis).
8+
9+
Added basis solve methods to highspy
10+
11+
Added methods to get primal/dual ray and dual unboundedness direction to highspy
12+
13+

src/Highs.h

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -510,29 +510,31 @@ class Highs {
510510
}
511511

512512
/**
513-
* @brief Indicate whether a dual unbounded ray exists, and gets
514-
* it if it does and dual_ray is not nullptr
513+
* @brief Indicate whether a dual unbounded ray exists, and (at the
514+
* expense of solving an LP) gets it if it does not and
515+
* dual_ray_value is not nullptr
515516
*/
516517
HighsStatus getDualRay(bool& has_dual_ray, double* dual_ray_value = nullptr);
517518

518519
/**
519-
* @brief Indicate whether a dual unbounded ray exists, and gets
520-
* it if it does
520+
* @brief Indicate whether a dual unbounded ray exists, and gets it
521+
* if it does
521522
*/
522523
HighsStatus getDualRaySparse(bool& has_dual_ray, HVector& row_ep_buffer);
523524

524525
/**
525526
* @brief Indicate whether a dual unboundedness direction exists,
526-
* and gets it if it does and dual_unboundedness_direction is not
527-
* nullptr
527+
* and (at the expense of solving an LP) gets it if
528+
* dual_unboundedness_direction is not nullptr
528529
*/
529530
HighsStatus getDualUnboundednessDirection(
530531
bool& has_dual_unboundedness_direction,
531532
double* dual_unboundedness_direction_value = nullptr);
532533

533534
/**
534-
* @brief Indicate whether a primal unbounded ray exists, and gets
535-
* it if it does and primal_ray is not nullptr
535+
* @brief Indicate whether a primal unbounded ray exists, and (at
536+
* the expense of solving an LP) gets it if primal_ray is not
537+
* nullptr
536538
*/
537539
HighsStatus getPrimalRay(bool& has_primal_ray,
538540
double* primal_ray_value = nullptr);

0 commit comments

Comments
 (0)