You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/gen/libhighs.jl
+111-20
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,11 @@
8
8
9
9
const HighsInt = Cint
10
10
11
+
"""
12
+
HighsCallbackDataOut
13
+
14
+
Struct to handle callback output data
15
+
"""
11
16
struct HighsCallbackDataOut
12
17
log_type::Cint
13
18
running_time::Cdouble
@@ -16,6 +21,7 @@ struct HighsCallbackDataOut
16
21
pdlp_iteration_count::HighsInt
17
22
objective_function_value::Cdouble
18
23
mip_node_count::Int64
24
+
mip_total_lp_iterations::Int64
19
25
mip_primal_bound::Cdouble
20
26
mip_dual_bound::Cdouble
21
27
mip_gap::Cdouble
@@ -97,8 +103,8 @@ The signature of this method is identical to [`Highs_lpCall`](@ref), except that
97
103
### Parameters
98
104
* `q_num_nz`: The number of nonzeros in the Hessian matrix.
99
105
* `q_format`: The format of the Hessian matrix in the form of a `kHighsHessianStatus` constant. If q\\_num\\_nz > 0, this must be `kHighsHessianFormatTriangular`.
100
-
* `q_start`: The Hessian matrix is provided in the same format as the constraint matrix, using `q_start`, `q_index`, and `q_value` in the place of `a_start`, `a_index`, and `a_value`.
101
-
* `q_index`: An array of length [q\\_num\\_nz] with indices of matrix sentries.
106
+
* `q_start`: The Hessian matrix is provided to HiGHS as the lower triangular component in compressed sparse column form (or, equivalently, as the upper triangular component in compressed sparse row form). The sparse matrix consists of three arrays, `q_start`, `q_index`, and `q_value`. `q_start` is an array of length [num\\_col].
107
+
* `q_index`: An array of length [q\\_num\\_nz] with indices of matrix entries.
102
108
* `q_value`: An array of length [q\\_num\\_nz] with values of matrix entries.
103
109
### Returns
104
110
A `kHighsStatus` constant indicating whether the call succeeded.
@@ -413,7 +422,7 @@ Pass a model to HiGHS in a single function call. This is faster than constructin
413
422
* `a_start`: The constraint matrix is provided to HiGHS in compressed sparse column form (if `a_format` is `kHighsMatrixFormatColwise`, otherwise compressed sparse row form). The sparse matrix consists of three arrays, `a_start`, `a_index`, and `a_value`. `a_start` is an array of length [num\\_col] containing the starting index of each column in `a_index`. If `a_format` is `kHighsMatrixFormatRowwise` the array is of length [num\\_row] corresponding to each row.
414
423
* `a_index`: An array of length [num\\_nz] with indices of matrix entries.
415
424
* `a_value`: An array of length [num\\_nz] with values of matrix entries.
416
-
* `q_start`: The Hessian matrix is provided in the same format as the constraint matrix, using `q_start`, `q_index`, and `q_value` in the place of `a_start`, `a_index`, and `a_value`. If the model is linear, pass NULL.
425
+
* `q_start`: The Hessian matrix is provided to HiGHS as the lower triangular component in compressed sparse column form (or, equivalently, as the upper triangular component in compressed sparse row form). The sparse matrix consists of three arrays, `q_start`, `q_index`, and `q_value`. `q_start` is an array of length [num\\_col]. If the model is linear, pass NULL.
417
426
* `q_index`: An array of length [q\\_num\\_nz] with indices of matrix entries. If the model is linear, pass NULL.
418
427
* `q_value`: An array of length [q\\_num\\_nz] with values of matrix entries. If the model is linear, pass NULL.
419
428
* `integrality`: An array of length [num\\_col] containing a `kHighsVarType` constant for each column.
@@ -434,7 +443,7 @@ Set the Hessian matrix for a quadratic objective.
434
443
* `dim`: The dimension of the Hessian matrix. Should be [num\\_col].
435
444
* `num_nz`: The number of non-zero elements in the Hessian matrix.
436
445
* `format`: The format of the Hessian matrix as a `kHighsHessianFormat` constant. This must be `kHighsHessianFormatTriangular`.
437
-
* `start`: The Hessian matrix is provided to HiGHS as the upper triangular component in compressed sparse column form. The sparse matrix consists of three arrays, `start`, `index`, and `value`. `start` is an array of length [num\\_col] containing the starting index of each column in `index`.
446
+
* `start`: The Hessian matrix is provided to HiGHS as the lower triangular component in compressed sparse column form (or, equivalently, as the upper triangular component in compressed sparse row form), using `q_start`, `q_index`, and `q_value`.The Hessian matrix is provided to HiGHS as the lower triangular component in compressed sparse column form. The sparse matrix consists of three arrays, `start`, `index`, and `value`. `start` is an array of length [num\\_col] containing the starting index of each column in `index`.
438
447
* `index`: An array of length [num\\_nz] with indices of matrix entries.
439
448
* `value`: An array of length [num\\_nz] with values of matrix entries.
440
449
### Returns
@@ -476,6 +485,21 @@ function Highs_passColName(highs, col, name)
Compute the solution corresponding to a (possibly weighted) sum of (allowable) infeasibilities in an LP/MIP.
2289
+
2290
+
If local penalties are not defined, pass NULL, and the global penalty will be used. Negative penalty values imply that the bound or RHS value cannot be violated
2291
+
2292
+
### Parameters
2293
+
* `highs`: A pointer to the Highs instance.
2294
+
* `const`: double global\\_lower\\_penalty The penalty for violating lower bounds on variables
2295
+
* `const`: double global\\_upper\\_penalty The penalty for violating upper bounds on variables
2296
+
* `const`: double global\\_rhs\\_penalty The penalty for violating constraint RHS values
2297
+
* `const`: double* local\\_lower\\_penalty The penalties for violating specific lower bounds on variables
2298
+
* `const`: double* local\\_upper\\_penalty The penalties for violating specific upper bounds on variables
2299
+
* `const`: double* local\\_rhs\\_penalty The penalties for violating specific constraint RHS values
2300
+
### Returns
2301
+
A `kHighsStatus` constant indicating whether the call succeeded.
0 commit comments