R/RcppExports.R

Defines functions solver_set_solution_vec solver_set_solution_obj solver_get_solution solver_get_vartype solver_get_constraint_matrix solver_get_integrality solver_get_row_upper solver_get_row_lower solver_get_col_upper solver_get_col_lower solver_get_col_cost solver_get_constraint_bounds solver_get_variable_bounds solver_get_lp_costs solver_add_cols solver_add_rows solver_change_constraint_bounds solver_change_variable_bounds solver_get_str_option solver_get_dbl_option solver_get_int_option solver_get_bool_option solver_info reset_global_scheduler solver_infinity solver_status solver_status_message solver_write_solution solver_write_basis solver_write_model solver_get_num_row solver_get_num_col solver_get_model solver_run solver_clear_solver solver_clear_model solver_clear solver_set_option solver_add_vars solver_mip_postsolve solver_postsolve solver_scale_row solver_scale_col solver_delete_rows solver_delete_cols solver_get_coeff solver_get_rows solver_get_col_integrality solver_get_cols solver_get_objective_offset solver_get_objective_sense solver_set_coeff solver_set_constraint_bounds solver_set_variable_bounds solver_set_objective solver_set_integrality solver_set_offset solver_set_sense solver_get_sense solver_pass_constraints solver_pass_hessian highs_pass_model new_solver model_get_ncons model_get_nvars model_set_vartype model_set_hessian_ model_set_rhs model_set_lhs model_set_constraint_matrix_ model_set_upper model_set_lower model_set_objective model_set_offset model_set_sense model_set_nrow model_set_ncol new_model

# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

new_model <- function() {
    .Call(`_highs_new_model`)
}

model_set_ncol <- function(mpt, ncol) {
    .Call(`_highs_model_set_ncol`, mpt, ncol)
}

model_set_nrow <- function(mpt, nrow) {
    .Call(`_highs_model_set_nrow`, mpt, nrow)
}

model_set_sense <- function(mpt, maximum) {
    .Call(`_highs_model_set_sense`, mpt, maximum)
}

model_set_offset <- function(mpt, offset) {
    .Call(`_highs_model_set_offset`, mpt, offset)
}

model_set_objective <- function(mpt, objective) {
    .Call(`_highs_model_set_objective`, mpt, objective)
}

model_set_lower <- function(mpt, lower) {
    .Call(`_highs_model_set_lower`, mpt, lower)
}

model_set_upper <- function(mpt, upper) {
    .Call(`_highs_model_set_upper`, mpt, upper)
}

model_set_constraint_matrix_ <- function(mpt, format, start, index, value) {
    .Call(`_highs_model_set_constraint_matrix_`, mpt, format, start, index, value)
}

model_set_lhs <- function(mpt, lower) {
    .Call(`_highs_model_set_lhs`, mpt, lower)
}

model_set_rhs <- function(mpt, upper) {
    .Call(`_highs_model_set_rhs`, mpt, upper)
}

model_set_hessian_ <- function(mpt, format, dim, start, index, value) {
    .Call(`_highs_model_set_hessian_`, mpt, format, dim, start, index, value)
}

model_set_vartype <- function(mpt, type) {
    .Call(`_highs_model_set_vartype`, mpt, type)
}

model_get_nvars <- function(mpt) {
    .Call(`_highs_model_get_nvars`, mpt)
}

model_get_ncons <- function(mpt) {
    .Call(`_highs_model_get_ncons`, mpt)
}

new_solver <- function(mpt) {
    .Call(`_highs_new_solver`, mpt)
}

highs_pass_model <- function(hi, num_col, num_row, num_nz, a_format, sense, offset, col_cost, col_lower, col_upper, row_lower, row_upper, a_start, a_index, a_value, integrality) {
    .Call(`_highs_highs_pass_model`, hi, num_col, num_row, num_nz, a_format, sense, offset, col_cost, col_lower, col_upper, row_lower, row_upper, a_start, a_index, a_value, integrality)
}

solver_pass_hessian <- function() {
    .Call(`_highs_solver_pass_hessian`)
}

solver_pass_constraints <- function() {
    .Call(`_highs_solver_pass_constraints`)
}

solver_get_sense <- function(hi) {
    .Call(`_highs_solver_get_sense`, hi)
}

solver_set_sense <- function(hi, maximum) {
    .Call(`_highs_solver_set_sense`, hi, maximum)
}

solver_set_offset <- function(hi, ext_offset) {
    .Call(`_highs_solver_set_offset`, hi, ext_offset)
}

solver_set_integrality <- function(hi, index, type) {
    .Call(`_highs_solver_set_integrality`, hi, index, type)
}

solver_set_objective <- function(hi, index, obj) {
    .Call(`_highs_solver_set_objective`, hi, index, obj)
}

solver_set_variable_bounds <- function(hi, index, lower, upper) {
    .Call(`_highs_solver_set_variable_bounds`, hi, index, lower, upper)
}

solver_set_constraint_bounds <- function(hi, index, lower, upper) {
    .Call(`_highs_solver_set_constraint_bounds`, hi, index, lower, upper)
}

solver_set_coeff <- function(hi, row, col, val) {
    .Call(`_highs_solver_set_coeff`, hi, row, col, val)
}

solver_get_objective_sense <- function(hi) {
    .Call(`_highs_solver_get_objective_sense`, hi)
}

solver_get_objective_offset <- function(hi) {
    .Call(`_highs_solver_get_objective_offset`, hi)
}

solver_get_cols <- function(hi, col_indices) {
    .Call(`_highs_solver_get_cols`, hi, col_indices)
}

solver_get_col_integrality <- function(hi, col_index) {
    .Call(`_highs_solver_get_col_integrality`, hi, col_index)
}

solver_get_rows <- function(hi, row_indices) {
    .Call(`_highs_solver_get_rows`, hi, row_indices)
}

solver_get_coeff <- function(hi, row_index, col_index) {
    .Call(`_highs_solver_get_coeff`, hi, row_index, col_index)
}

solver_delete_cols <- function(hi, col_indices) {
    .Call(`_highs_solver_delete_cols`, hi, col_indices)
}

solver_delete_rows <- function(hi, row_indices) {
    .Call(`_highs_solver_delete_rows`, hi, row_indices)
}

solver_scale_col <- function(hi, col_index, scale) {
    .Call(`_highs_solver_scale_col`, hi, col_index, scale)
}

solver_scale_row <- function(hi, row_index, scale) {
    .Call(`_highs_solver_scale_row`, hi, row_index, scale)
}

solver_postsolve <- function(hi, solution, basis) {
    .Call(`_highs_solver_postsolve`, hi, solution, basis)
}

solver_mip_postsolve <- function(hi, solution) {
    .Call(`_highs_solver_mip_postsolve`, hi, solution)
}

solver_add_vars <- function(hi, lower, upper) {
    .Call(`_highs_solver_add_vars`, hi, lower, upper)
}

solver_set_option <- function(hi, key, value) {
    .Call(`_highs_solver_set_option`, hi, key, value)
}

solver_clear <- function(hi) {
    .Call(`_highs_solver_clear`, hi)
}

solver_clear_model <- function(hi) {
    .Call(`_highs_solver_clear_model`, hi)
}

solver_clear_solver <- function(hi) {
    .Call(`_highs_solver_clear_solver`, hi)
}

solver_run <- function(hi) {
    .Call(`_highs_solver_run`, hi)
}

solver_get_model <- function(hi) {
    .Call(`_highs_solver_get_model`, hi)
}

solver_get_num_col <- function(hi) {
    .Call(`_highs_solver_get_num_col`, hi)
}

solver_get_num_row <- function(hi) {
    .Call(`_highs_solver_get_num_row`, hi)
}

solver_write_model <- function(hi, filename) {
    .Call(`_highs_solver_write_model`, hi, filename)
}

solver_write_basis <- function(hi, filename) {
    .Call(`_highs_solver_write_basis`, hi, filename)
}

solver_write_solution <- function(hi, filename, style) {
    .Call(`_highs_solver_write_solution`, hi, filename, style)
}

solver_status_message <- function(hi) {
    .Call(`_highs_solver_status_message`, hi)
}

solver_status <- function(hi) {
    .Call(`_highs_solver_status`, hi)
}

solver_infinity <- function() {
    .Call(`_highs_solver_infinity`)
}

reset_global_scheduler <- function(blocking) {
    .Call(`_highs_reset_global_scheduler`, blocking)
}

solver_info <- function(hi) {
    .Call(`_highs_solver_info`, hi)
}

solver_get_bool_option <- function(hi, key) {
    .Call(`_highs_solver_get_bool_option`, hi, key)
}

solver_get_int_option <- function(hi, key) {
    .Call(`_highs_solver_get_int_option`, hi, key)
}

solver_get_dbl_option <- function(hi, key) {
    .Call(`_highs_solver_get_dbl_option`, hi, key)
}

solver_get_str_option <- function(hi, key) {
    .Call(`_highs_solver_get_str_option`, hi, key)
}

solver_change_variable_bounds <- function(hi, idx, lower, upper) {
    .Call(`_highs_solver_change_variable_bounds`, hi, idx, lower, upper)
}

solver_change_constraint_bounds <- function(hi, idx, lhs, rhs) {
    .Call(`_highs_solver_change_constraint_bounds`, hi, idx, lhs, rhs)
}

solver_add_rows <- function(hi, lhs, rhs, start, index, value) {
    .Call(`_highs_solver_add_rows`, hi, lhs, rhs, start, index, value)
}

solver_add_cols <- function(hi, costs, lower, upper, start, index, value) {
    .Call(`_highs_solver_add_cols`, hi, costs, lower, upper, start, index, value)
}

solver_get_lp_costs <- function(hi) {
    .Call(`_highs_solver_get_lp_costs`, hi)
}

solver_get_variable_bounds <- function(hi) {
    .Call(`_highs_solver_get_variable_bounds`, hi)
}

solver_get_constraint_bounds <- function(hi) {
    .Call(`_highs_solver_get_constraint_bounds`, hi)
}

solver_get_col_cost <- function(hi) {
    .Call(`_highs_solver_get_col_cost`, hi)
}

solver_get_col_lower <- function(hi) {
    .Call(`_highs_solver_get_col_lower`, hi)
}

solver_get_col_upper <- function(hi) {
    .Call(`_highs_solver_get_col_upper`, hi)
}

solver_get_row_lower <- function(hi) {
    .Call(`_highs_solver_get_row_lower`, hi)
}

solver_get_row_upper <- function(hi) {
    .Call(`_highs_solver_get_row_upper`, hi)
}

solver_get_integrality <- function(hi) {
    .Call(`_highs_solver_get_integrality`, hi)
}

solver_get_constraint_matrix <- function(hi) {
    .Call(`_highs_solver_get_constraint_matrix`, hi)
}

solver_get_vartype <- function(hi) {
    .Call(`_highs_solver_get_vartype`, hi)
}

solver_get_solution <- function(hi) {
    .Call(`_highs_solver_get_solution`, hi)
}

solver_set_solution_obj <- function(hi, value_valid, dual_valid, col_value, col_dual, row_value, row_dual) {
    .Call(`_highs_solver_set_solution_obj`, hi, value_valid, dual_valid, col_value, col_dual, row_value, row_dual)
}

solver_set_solution_vec <- function(hi, idx, val) {
    .Call(`_highs_solver_set_solution_vec`, hi, idx, val)
}

Try the highs package in your browser

Any scripts or data that you put into this service are public.

highs documentation built on June 8, 2025, 10:36 a.m.