1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
/* automatically generated by rust-bindgen 0.57.0 */

extern "C" {
    pub fn Highs_call(
        numcol: ::std::os::raw::c_int,
        numrow: ::std::os::raw::c_int,
        numnz: ::std::os::raw::c_int,
        colcost: *mut f64,
        collower: *mut f64,
        colupper: *mut f64,
        rowlower: *mut f64,
        rowupper: *mut f64,
        astart: *mut ::std::os::raw::c_int,
        aindex: *mut ::std::os::raw::c_int,
        avalue: *mut f64,
        colvalue: *mut f64,
        coldual: *mut f64,
        rowvalue: *mut f64,
        rowdual: *mut f64,
        colbasisstatus: *mut ::std::os::raw::c_int,
        rowbasisstatus: *mut ::std::os::raw::c_int,
        modelstatus: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn Highs_create() -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn Highs_destroy(highs: *mut ::std::os::raw::c_void);
}
extern "C" {
    pub fn Highs_readModel(
        highs: *mut ::std::os::raw::c_void,
        filename: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn Highs_writeModel(
        highs: *mut ::std::os::raw::c_void,
        filename: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn Highs_clearModel(highs: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn Highs_runQuiet(highs: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn Highs_setHighsLogfile(
        highs: *mut ::std::os::raw::c_void,
        logfile: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn Highs_setHighsOutput(
        highs: *mut ::std::os::raw::c_void,
        outputfile: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn Highs_run(highs: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn Highs_writeSolution(
        highs: *mut ::std::os::raw::c_void,
        filename: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn Highs_passLp(
        highs: *mut ::std::os::raw::c_void,
        numcol: ::std::os::raw::c_int,
        numrow: ::std::os::raw::c_int,
        numnz: ::std::os::raw::c_int,
        colcost: *const f64,
        collower: *const f64,
        colupper: *const f64,
        rowlower: *const f64,
        rowupper: *const f64,
        astart: *const ::std::os::raw::c_int,
        aindex: *const ::std::os::raw::c_int,
        avalue: *const f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn Highs_setHighsBoolOptionValue(
        highs: *mut ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        value: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn Highs_setHighsIntOptionValue(
        highs: *mut ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        value: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn Highs_setHighsDoubleOptionValue(
        highs: *mut ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        value: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn Highs_setHighsStringOptionValue(
        highs: *mut ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        value: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn Highs_setHighsOptionValue(
        highs: *mut ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        value: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn Highs_getHighsBoolOptionValue(
        highs: *mut ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        value: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn Highs_getHighsIntOptionValue(
        highs: *mut ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        value: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn Highs_getHighsDoubleOptionValue(
        highs: *mut ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        value: *mut f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn Highs_getHighsStringOptionValue(
        highs: *mut ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        value: *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn Highs_getHighsOptionType(
        highs: *mut ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        type_: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn Highs_resetHighsOptions(highs: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn Highs_getHighsIntInfoValue(
        highs: *mut ::std::os::raw::c_void,
        info: *const ::std::os::raw::c_char,
        value: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn Highs_getHighsDoubleInfoValue(
        highs: *mut ::std::os::raw::c_void,
        info: *const ::std::os::raw::c_char,
        value: *mut f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn Highs_getSolution(
        highs: *mut ::std::os::raw::c_void,
        colvalue: *mut f64,
        coldual: *mut f64,
        rowvalue: *mut f64,
        rowdual: *mut f64,
    );
}
extern "C" {
    pub fn Highs_getBasis(
        highs: *mut ::std::os::raw::c_void,
        colstatus: *mut ::std::os::raw::c_int,
        rowstatus: *mut ::std::os::raw::c_int,
    );
}
extern "C" {
    #[doc = " @brief Returns the status of the (scaled) model"]
    pub fn Highs_getModelStatus(
        highs: *mut ::std::os::raw::c_void,
        scaled_model: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Returns an unbounded dual ray that is a certificate of primal"]
    #[doc = " infeasibility."]
    pub fn Highs_getDualRay(
        highs: *mut ::std::os::raw::c_void,
        has_dual_ray: *mut ::std::os::raw::c_int,
        dual_ray_value: *mut f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Returns an unbounded primal ray that is a certificate of dual"]
    #[doc = " infeasibility."]
    pub fn Highs_getPrimalRay(
        highs: *mut ::std::os::raw::c_void,
        has_primal_ray: *mut ::std::os::raw::c_int,
        primal_ray_value: *mut f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Returns the objective function value (if known)"]
    pub fn Highs_getObjectiveValue(highs: *mut ::std::os::raw::c_void) -> f64;
}
extern "C" {
    #[doc = " @brief Returns the simplex iteration count (if known)"]
    pub fn Highs_getIterationCount(highs: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Returns the simplex iteration count (if known)"]
    pub fn Highs_getSimplexIterationCount(
        highs: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Gets the basic variables in the order corresponding to"]
    #[doc = " calls to getBasisInverseRow, getBasisInverseCol, getBasisSolve,"]
    #[doc = " getBasisTransposeSolve, getReducedRow and getReducedColumn. As"]
    #[doc = " required by SCIP, non-negative entries are indices of columns,"]
    #[doc = " and negative entries are -(row_index+1)."]
    pub fn Highs_getBasicVariables(
        highs: *mut ::std::os::raw::c_void,
        basic_variables: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Gets a row of \\f$B^{-1}\\f$ for basis matrix \\f$B\\f$"]
    pub fn Highs_getBasisInverseRow(
        highs: *mut ::std::os::raw::c_void,
        row: ::std::os::raw::c_int,
        row_vector: *mut f64,
        row_num_nz: *mut ::std::os::raw::c_int,
        row_indices: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Gets a column of \\f$B^{-1}\\f$ for basis matrix \\f$B\\f$"]
    pub fn Highs_getBasisInverseCol(
        highs: *mut ::std::os::raw::c_void,
        col: ::std::os::raw::c_int,
        col_vector: *mut f64,
        col_num_nz: *mut ::std::os::raw::c_int,
        col_indices: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Forms \\f$\\mathbf{x}=B^{-1}\\mathbf{b}\\f$ for a given vector"]
    #[doc = " \\f$\\mathbf{b}\\f$"]
    pub fn Highs_getBasisSolve(
        highs: *mut ::std::os::raw::c_void,
        rhs: *const f64,
        solution_vector: *mut f64,
        solution_num_nz: *mut ::std::os::raw::c_int,
        solution_indices: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Forms \\f$\\mathbf{x}=B^{-T}\\mathbf{b}\\f$ for a given vector"]
    #[doc = " \\f$\\mathbf{b}\\f$"]
    pub fn Highs_getBasisTransposeSolve(
        highs: *mut ::std::os::raw::c_void,
        rhs: *const f64,
        solution_vector: *mut f64,
        solution_nz: *mut ::std::os::raw::c_int,
        solution_indices: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Forms a row of \\f$B^{-1}A\\f$"]
    pub fn Highs_getReducedRow(
        highs: *mut ::std::os::raw::c_void,
        row: ::std::os::raw::c_int,
        row_vector: *mut f64,
        row_num_nz: *mut ::std::os::raw::c_int,
        row_indices: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Forms a column of \\f$B^{-1}A\\f$"]
    pub fn Highs_getReducedColumn(
        highs: *mut ::std::os::raw::c_void,
        col: ::std::os::raw::c_int,
        col_vector: *mut f64,
        col_num_nz: *mut ::std::os::raw::c_int,
        col_indices: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Passes a basis to HiGHS"]
    pub fn Highs_setBasis(
        highs: *mut ::std::os::raw::c_void,
        colstatus: *const ::std::os::raw::c_int,
        rowstatus: *const ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Sets up a logical basis in HiGHS"]
    pub fn Highs_setLogicalBasis(highs: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Returns the cumulative wall-clock time spent in Highs_run();"]
    pub fn Highs_getHighsRunTime(highs: *mut ::std::os::raw::c_void) -> f64;
}
extern "C" {
    #[doc = " @brief Adds a row to the model"]
    pub fn Highs_addRow(
        highs: *mut ::std::os::raw::c_void,
        lower: f64,
        upper: f64,
        num_new_nz: ::std::os::raw::c_int,
        indices: *const ::std::os::raw::c_int,
        values: *const f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Adds multiple rows to the model"]
    pub fn Highs_addRows(
        highs: *mut ::std::os::raw::c_void,
        num_new_row: ::std::os::raw::c_int,
        lower: *const f64,
        upper: *const f64,
        num_new_nz: ::std::os::raw::c_int,
        starts: *const ::std::os::raw::c_int,
        indices: *const ::std::os::raw::c_int,
        values: *const f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Adds a column to the model"]
    pub fn Highs_addCol(
        highs: *mut ::std::os::raw::c_void,
        cost: f64,
        lower: f64,
        upper: f64,
        num_new_nz: ::std::os::raw::c_int,
        indices: *const ::std::os::raw::c_int,
        values: *const f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Adds multiple columns to the model"]
    pub fn Highs_addCols(
        highs: *mut ::std::os::raw::c_void,
        num_new_col: ::std::os::raw::c_int,
        costs: *const f64,
        lower: *const f64,
        upper: *const f64,
        num_new_nz: ::std::os::raw::c_int,
        starts: *const ::std::os::raw::c_int,
        indices: *const ::std::os::raw::c_int,
        values: *const f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Change the objective sense of the model"]
    pub fn Highs_changeObjectiveSense(
        highs: *mut ::std::os::raw::c_void,
        sense: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Change the cost of a column"]
    pub fn Highs_changeColCost(
        highs: *mut ::std::os::raw::c_void,
        col: ::std::os::raw::c_int,
        cost: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Change the cost of multiple columns given by a set of indices"]
    pub fn Highs_changeColsCostBySet(
        highs: *mut ::std::os::raw::c_void,
        num_set_entries: ::std::os::raw::c_int,
        set: *const ::std::os::raw::c_int,
        cost: *const f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Change the cost of multiple columns given by a mask"]
    pub fn Highs_changeColsCostByMask(
        highs: *mut ::std::os::raw::c_void,
        mask: *const ::std::os::raw::c_int,
        cost: *const f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Change the bounds of a column"]
    pub fn Highs_changeColBounds(
        highs: *mut ::std::os::raw::c_void,
        col: ::std::os::raw::c_int,
        lower: f64,
        upper: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Change the bounds of multiple columns given by an interval"]
    pub fn Highs_changeColsBoundsByRange(
        highs: *mut ::std::os::raw::c_void,
        from_col: ::std::os::raw::c_int,
        to_col: ::std::os::raw::c_int,
        lower: *const f64,
        upper: *const f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Change the bounds of multiple columns given by a set of indices"]
    pub fn Highs_changeColsBoundsBySet(
        highs: *mut ::std::os::raw::c_void,
        num_set_entries: ::std::os::raw::c_int,
        set: *const ::std::os::raw::c_int,
        lower: *const f64,
        upper: *const f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Change the cost of multiple columns given by a mask"]
    pub fn Highs_changeColsBoundsByMask(
        highs: *mut ::std::os::raw::c_void,
        mask: *const ::std::os::raw::c_int,
        lower: *const f64,
        upper: *const f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Change the bounds of a row"]
    pub fn Highs_changeRowBounds(
        highs: *mut ::std::os::raw::c_void,
        row: ::std::os::raw::c_int,
        lower: f64,
        upper: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Change the bounds of multiple rows given by a set of indices"]
    pub fn Highs_changeRowsBoundsBySet(
        highs: *mut ::std::os::raw::c_void,
        num_set_entries: ::std::os::raw::c_int,
        set: *const ::std::os::raw::c_int,
        lower: *const f64,
        upper: *const f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Change the cost of multiple rows given by a mask"]
    pub fn Highs_changeRowsBoundsByMask(
        highs: *mut ::std::os::raw::c_void,
        mask: *const ::std::os::raw::c_int,
        lower: *const f64,
        upper: *const f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Change a coefficient in the constraint matrix."]
    pub fn Highs_changeCoeff(
        highs: *mut ::std::os::raw::c_void,
        row: ::std::os::raw::c_int,
        col: ::std::os::raw::c_int,
        value: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Get the objective sense"]
    pub fn Highs_getObjectiveSense(
        highs: *mut ::std::os::raw::c_void,
        sense: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Get multiple columns from the model given by an interval"]
    pub fn Highs_getColsByRange(
        highs: *mut ::std::os::raw::c_void,
        from_col: ::std::os::raw::c_int,
        to_col: ::std::os::raw::c_int,
        num_col: *mut ::std::os::raw::c_int,
        costs: *mut f64,
        lower: *mut f64,
        upper: *mut f64,
        num_nz: *mut ::std::os::raw::c_int,
        matrix_start: *mut ::std::os::raw::c_int,
        matrix_index: *mut ::std::os::raw::c_int,
        matrix_value: *mut f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Get multiple columns from the model given by a set"]
    pub fn Highs_getColsBySet(
        highs: *mut ::std::os::raw::c_void,
        num_set_entries: ::std::os::raw::c_int,
        set: *const ::std::os::raw::c_int,
        num_col: *mut ::std::os::raw::c_int,
        costs: *mut f64,
        lower: *mut f64,
        upper: *mut f64,
        num_nz: *mut ::std::os::raw::c_int,
        matrix_start: *mut ::std::os::raw::c_int,
        matrix_index: *mut ::std::os::raw::c_int,
        matrix_value: *mut f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Get multiple columns from the model given by a mask"]
    pub fn Highs_getColsByMask(
        highs: *mut ::std::os::raw::c_void,
        mask: *const ::std::os::raw::c_int,
        num_col: *mut ::std::os::raw::c_int,
        costs: *mut f64,
        lower: *mut f64,
        upper: *mut f64,
        num_nz: *mut ::std::os::raw::c_int,
        matrix_start: *mut ::std::os::raw::c_int,
        matrix_index: *mut ::std::os::raw::c_int,
        matrix_value: *mut f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Get multiple rows from the model given by an interval"]
    pub fn Highs_getRowsByRange(
        highs: *mut ::std::os::raw::c_void,
        from_row: ::std::os::raw::c_int,
        to_row: ::std::os::raw::c_int,
        num_row: *mut ::std::os::raw::c_int,
        lower: *mut f64,
        upper: *mut f64,
        num_nz: *mut ::std::os::raw::c_int,
        matrix_start: *mut ::std::os::raw::c_int,
        matrix_index: *mut ::std::os::raw::c_int,
        matrix_value: *mut f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Get multiple rows from the model given by a set"]
    pub fn Highs_getRowsBySet(
        highs: *mut ::std::os::raw::c_void,
        num_set_entries: ::std::os::raw::c_int,
        set: *const ::std::os::raw::c_int,
        num_row: *mut ::std::os::raw::c_int,
        lower: *mut f64,
        upper: *mut f64,
        num_nz: *mut ::std::os::raw::c_int,
        matrix_start: *mut ::std::os::raw::c_int,
        matrix_index: *mut ::std::os::raw::c_int,
        matrix_value: *mut f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Get multiple rows from the model given by a mask"]
    pub fn Highs_getRowsByMask(
        highs: *mut ::std::os::raw::c_void,
        mask: *const ::std::os::raw::c_int,
        num_row: *mut ::std::os::raw::c_int,
        lower: *mut f64,
        upper: *mut f64,
        num_nz: *mut ::std::os::raw::c_int,
        matrix_start: *mut ::std::os::raw::c_int,
        matrix_index: *mut ::std::os::raw::c_int,
        matrix_value: *mut f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Delete multiple columns from the model given by an interval"]
    pub fn Highs_deleteColsByRange(
        highs: *mut ::std::os::raw::c_void,
        from_col: ::std::os::raw::c_int,
        to_col: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Delete multiple columns from the model given by a set"]
    pub fn Highs_deleteColsBySet(
        highs: *mut ::std::os::raw::c_void,
        num_set_entries: ::std::os::raw::c_int,
        set: *const ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Delete multiple columns from the model given by a mask"]
    pub fn Highs_deleteColsByMask(
        highs: *mut ::std::os::raw::c_void,
        mask: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Delete multiple rows from the model given by an interval"]
    pub fn Highs_deleteRowsByRange(
        highs: *mut ::std::os::raw::c_void,
        from_row: ::std::os::raw::c_int,
        to_row: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Delete multiple rows from the model given by a set"]
    pub fn Highs_deleteRowsBySet(
        highs: *mut ::std::os::raw::c_void,
        num_set_entries: ::std::os::raw::c_int,
        set: *const ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Delete multiple rows from the model given by a mask"]
    pub fn Highs_deleteRowsByMask(
        highs: *mut ::std::os::raw::c_void,
        mask: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Returns the value of infinity used by HiGHS"]
    pub fn Highs_getHighsInfinity(highs: *mut ::std::os::raw::c_void) -> f64;
}
extern "C" {
    #[doc = " @brief Returns the number of columns of the current model"]
    pub fn Highs_getNumCols(highs: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Returns the number of rows of the current model"]
    pub fn Highs_getNumRows(highs: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Returns the number of nonzeroes of the current model"]
    pub fn Highs_getNumNz(highs: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Returns a pointer to a character representation of a HiGHS model"]
    #[doc = " status"]
    pub fn Highs_highsModelStatusToChar(
        highs: *mut ::std::os::raw::c_void,
        int_highs_model_status: ::std::os::raw::c_int,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @brief Returns a pointer to a character representation of a primal/dual"]
    #[doc = " status"]
    pub fn Highs_primalDualStatusToChar(
        highs: *mut ::std::os::raw::c_void,
        int_primal_dual_status: ::std::os::raw::c_int,
    ) -> *const ::std::os::raw::c_char;
}