11 namespace org.gnu.glpk {
27 global::System.IntPtr cPtr =
GLPKPINVOKE.new_doubleArray(nelements);
87 global::System.IntPtr cPtr =
GLPKPINVOKE.new_intArray(nelements);
161 public static void glp_cli_set_numeric_locale(
string locale) {
174 global::System.IntPtr cPtr =
GLPKPINVOKE.glp_cli_arc_get_data(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_arc.getCPtr(arc)));
189 global::System.IntPtr cPtr =
GLPKPINVOKE.glp_cli_vertex_data_get(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), i);
203 global::System.IntPtr cPtr =
GLPKPINVOKE.glp_cli_vertex_get_data(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_vertex.getCPtr(v)));
218 global::System.IntPtr cPtr =
GLPKPINVOKE.glp_cli_vertex_get(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), i);
220 return (cPtr == global::System.IntPtr.Zero) ? null :
new glp_vertex(cPtr,
false);
226 public static glp_prob glp_create_prob() {
227 global::System.IntPtr cPtr =
GLPKPINVOKE.glp_create_prob();
228 glp_prob ret = (cPtr == global::System.IntPtr.Zero) ? null :
new glp_prob(cPtr,
false);
516 public static void glp_erase_prob(
glp_prob P) {
524 public static void glp_delete_prob(
glp_prob P) {
965 public static void glp_adv_basis(
glp_prob P,
int flags) {
1181 public static int glp_get_it_cnt(
glp_prob P) {
1190 public static void glp_set_it_cnt(
glp_prob P,
int it_cnt) {
1451 public static int glp_print_sol(
glp_prob P,
string fname) {
1506 public static int glp_print_ipt(
glp_prob P,
string fname) {
1552 public static int glp_print_mip(
glp_prob P,
string fname) {
1612 public static int glp_factorize(
glp_prob P) {
1999 global::System.IntPtr cPtr =
GLPKPINVOKE.glp_npp_alloc_wksp();
2062 glp_prob ret = (cPtr == global::System.IntPtr.Zero) ? null :
new glp_prob(cPtr,
false);
2245 public static int glp_ios_pool_size(
glp_tree T) {
2263 public static void glp_ios_del_row(
glp_tree T,
int i) {
2271 public static void glp_ios_clear_pool(
glp_tree T) {
2366 public static int glp_read_mps(
glp_prob P,
int fmt,
glp_mpscp parm,
string fname) {
2375 public static int glp_write_mps(
glp_prob P,
int fmt,
glp_mpscp parm,
string fname) {
2445 public static glp_tran glp_mpl_alloc_wksp() {
2446 global::System.IntPtr cPtr =
GLPKPINVOKE.glp_mpl_alloc_wksp();
2447 glp_tran ret = (cPtr == global::System.IntPtr.Zero) ? null :
new glp_tran(cPtr,
false);
2452 public static void glp_mpl_init_rand(
glp_tran tran,
int seed) {
2460 public static int glp_mpl_read_model(
glp_tran tran,
string fname,
int skip) {
2469 public static int glp_mpl_read_data(
glp_tran tran,
string fname) {
2478 public static int glp_mpl_generate(
glp_tran tran,
string fname) {
2495 public static int glp_mpl_postsolve(
glp_tran tran,
glp_prob prob,
int sol) {
2504 public static void glp_mpl_free_wksp(
glp_tran tran) {
2512 public static int glp_read_cnfsat(
glp_prob P,
string fname) {
2521 public static int glp_check_cnfsat(
glp_prob P) {
2530 public static int glp_write_cnfsat(
glp_prob P,
string fname) {
2539 public static int glp_minisat1(
glp_prob P) {
2548 public static int glp_intfeas1(
glp_prob P,
int use_bound,
int obj_bound) {
2585 public static string glp_config(
string option) {
2716 global::System.IntPtr cPtr =
GLPKPINVOKE.glp_error_(file, line);
2778 global::System.IntPtr cPtr =
GLPKPINVOKE.glp_alloc(n, size);
2840 public static double glp_time() {
2863 public static glp_graph glp_create_graph(
int v_size,
int a_size) {
2864 global::System.IntPtr cPtr =
GLPKPINVOKE.glp_create_graph(v_size, a_size);
2866 return (cPtr == global::System.IntPtr.Zero) ? null :
new glp_graph(cPtr,
false);
2879 GLPKPINVOKE.glp_set_graph_name(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), name);
2895 int ret =
GLPKPINVOKE.glp_add_vertices(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), nadd);
2903 public static void glp_set_vertex_name(
glp_graph G,
int i,
string name) {
2904 GLPKPINVOKE.glp_set_vertex_name(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), i, name);
2920 global::System.IntPtr cPtr =
GLPKPINVOKE.glp_add_arc(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), i, j);
2922 return (cPtr == global::System.IntPtr.Zero) ? null :
new glp_arc(cPtr,
false);
2948 GLPKPINVOKE.glp_del_arc(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_arc.getCPtr(a)));
2955 public static void glp_erase_graph(
glp_graph G,
int v_size,
int a_size) {
2956 GLPKPINVOKE.glp_erase_graph(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), v_size, a_size);
2969 GLPKPINVOKE.glp_delete_graph(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)));
2976 public static void glp_create_v_index(
glp_graph G) {
2977 GLPKPINVOKE.glp_create_v_index(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)));
2984 public static int glp_find_vertex(
glp_graph G,
string name) {
2985 int ret =
GLPKPINVOKE.glp_find_vertex(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), name);
2993 public static void glp_delete_v_index(
glp_graph G) {
2994 GLPKPINVOKE.glp_delete_v_index(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)));
3009 int ret =
GLPKPINVOKE.glp_read_graph(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), fname);
3025 int ret =
GLPKPINVOKE.glp_write_graph(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), fname);
3039 GLPKPINVOKE.glp_mincost_lp(
glp_prob.getCPtr(P), global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), names, v_rhs, a_low, a_cap, a_cost);
3046 public static int glp_mincost_okalg(
glp_graph G,
int v_rhs,
int a_low,
int a_cap,
int a_cost,
SWIGTYPE_p_double sol,
int a_x,
int v_pi) {
3047 int ret =
GLPKPINVOKE.glp_mincost_okalg(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), v_rhs, a_low, a_cap, a_cost,
SWIGTYPE_p_double.getCPtr(sol), a_x, v_pi);
3055 public static int glp_mincost_relax4(
glp_graph G,
int v_rhs,
int a_low,
int a_cap,
int a_cost,
int crash,
SWIGTYPE_p_double sol,
int a_x,
int a_rc) {
3056 int ret =
GLPKPINVOKE.glp_mincost_relax4(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), v_rhs, a_low, a_cap, a_cost, crash,
SWIGTYPE_p_double.getCPtr(sol), a_x, a_rc);
3070 GLPKPINVOKE.glp_maxflow_lp(
glp_prob.getCPtr(P), global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), names, s, t, a_cap);
3092 int ret =
GLPKPINVOKE.glp_check_asnprob(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), v_set);
3108 int ret =
GLPKPINVOKE.glp_asnprob_lp(
glp_prob.getCPtr(P), form, global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), names, v_set, a_cost);
3137 int ret =
GLPKPINVOKE.glp_asnprob_hall(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), v_set, a_x);
3145 public static double glp_cpp(
glp_graph G,
int v_t,
int v_es,
int v_ls) {
3146 double ret =
GLPKPINVOKE.glp_cpp(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), v_t, v_es, v_ls);
3162 int ret =
GLPKPINVOKE.glp_read_mincost(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), v_rhs, a_low, a_cap, a_cost, fname);
3178 int ret =
GLPKPINVOKE.glp_write_mincost(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), v_rhs, a_low, a_cap, a_cost, fname);
3210 int ret =
GLPKPINVOKE.glp_write_maxflow(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), s, t, a_cap, fname);
3226 int ret =
GLPKPINVOKE.glp_read_asnprob(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), v_set, a_cost, fname);
3242 int ret =
GLPKPINVOKE.glp_write_asnprob(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), v_set, a_cost, fname);
3258 int ret =
GLPKPINVOKE.glp_read_ccdata(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), v_wgt, fname);
3274 int ret =
GLPKPINVOKE.glp_write_ccdata(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), v_wgt, fname);
3283 int ret =
GLPKPINVOKE.glp_netgen(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), v_rhs, a_cap, a_cost,
SWIGTYPE_p_int.getCPtr(parm));
3291 public static void glp_netgen_prob(
int nprob,
SWIGTYPE_p_int parm) {
3300 int ret =
GLPKPINVOKE.glp_gridgen(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), v_rhs, a_cap, a_cost,
SWIGTYPE_p_int.getCPtr(parm));
3327 int ret =
GLPKPINVOKE.glp_weak_comp(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), v_num);
3345 int ret =
GLPKPINVOKE.glp_strong_comp(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), v_num);
3353 public static int glp_top_sort(
glp_graph G,
int v_num) {
3354 int ret =
GLPKPINVOKE.glp_top_sort(global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_graph.getCPtr(G)), v_num);
3368 public static readonly
int GLP_CLI_A_CAP =
GLPKPINVOKE.GLP_CLI_A_CAP_get();
3369 public static readonly
int GLP_CLI_A_COST =
GLPKPINVOKE.GLP_CLI_A_COST_get();
3370 public static readonly
int GLP_CLI_A_LOW =
GLPKPINVOKE.GLP_CLI_A_LOW_get();
3371 public static readonly
int GLP_CLI_A_RC =
GLPKPINVOKE.GLP_CLI_A_RC_get();
3372 public static readonly
int GLP_CLI_A_X =
GLPKPINVOKE.GLP_CLI_A_X_get();
3373 public static readonly
int GLP_CLI_A_SIZE =
GLPKPINVOKE.GLP_CLI_A_SIZE_get();
3374 public static readonly
int GLP_CLI_V_CUT =
GLPKPINVOKE.GLP_CLI_V_CUT_get();
3375 public static readonly
int GLP_CLI_V_PI =
GLPKPINVOKE.GLP_CLI_V_PI_get();
3376 public static readonly
int GLP_CLI_V_RHS =
GLPKPINVOKE.GLP_CLI_V_RHS_get();
3377 public static readonly
int GLP_CLI_V_SET =
GLPKPINVOKE.GLP_CLI_V_SET_get();
3378 public static readonly
int GLP_CLI_V_SIZE =
GLPKPINVOKE.GLP_CLI_V_SIZE_get();
3379 public static readonly
int GLP_CLI_MSG_LVL_OFF =
GLPKPINVOKE.GLP_CLI_MSG_LVL_OFF_get();
3380 public static readonly
int GLP_CLI_MSG_LVL_ALL =
GLPKPINVOKE.GLP_CLI_MSG_LVL_ALL_get();
3381 public static readonly
int GLP_MAJOR_VERSION =
GLPKPINVOKE.GLP_MAJOR_VERSION_get();
3382 public static readonly
int GLP_MINOR_VERSION =
GLPKPINVOKE.GLP_MINOR_VERSION_get();
3383 public static readonly
int GLP_MIN =
GLPKPINVOKE.GLP_MIN_get();
3384 public static readonly
int GLP_MAX =
GLPKPINVOKE.GLP_MAX_get();
3385 public static readonly
int GLP_CV =
GLPKPINVOKE.GLP_CV_get();
3386 public static readonly
int GLP_IV =
GLPKPINVOKE.GLP_IV_get();
3387 public static readonly
int GLP_BV =
GLPKPINVOKE.GLP_BV_get();
3388 public static readonly
int GLP_FR =
GLPKPINVOKE.GLP_FR_get();
3389 public static readonly
int GLP_LO =
GLPKPINVOKE.GLP_LO_get();
3390 public static readonly
int GLP_UP =
GLPKPINVOKE.GLP_UP_get();
3391 public static readonly
int GLP_DB =
GLPKPINVOKE.GLP_DB_get();
3392 public static readonly
int GLP_FX =
GLPKPINVOKE.GLP_FX_get();
3393 public static readonly
int GLP_BS =
GLPKPINVOKE.GLP_BS_get();
3394 public static readonly
int GLP_NL =
GLPKPINVOKE.GLP_NL_get();
3395 public static readonly
int GLP_NU =
GLPKPINVOKE.GLP_NU_get();
3396 public static readonly
int GLP_NF =
GLPKPINVOKE.GLP_NF_get();
3397 public static readonly
int GLP_NS =
GLPKPINVOKE.GLP_NS_get();
3398 public static readonly
int GLP_SF_GM =
GLPKPINVOKE.GLP_SF_GM_get();
3399 public static readonly
int GLP_SF_EQ =
GLPKPINVOKE.GLP_SF_EQ_get();
3400 public static readonly
int GLP_SF_2N =
GLPKPINVOKE.GLP_SF_2N_get();
3401 public static readonly
int GLP_SF_SKIP =
GLPKPINVOKE.GLP_SF_SKIP_get();
3402 public static readonly
int GLP_SF_AUTO =
GLPKPINVOKE.GLP_SF_AUTO_get();
3403 public static readonly
int GLP_SOL =
GLPKPINVOKE.GLP_SOL_get();
3404 public static readonly
int GLP_IPT =
GLPKPINVOKE.GLP_IPT_get();
3405 public static readonly
int GLP_MIP =
GLPKPINVOKE.GLP_MIP_get();
3406 public static readonly
int GLP_UNDEF =
GLPKPINVOKE.GLP_UNDEF_get();
3407 public static readonly
int GLP_FEAS =
GLPKPINVOKE.GLP_FEAS_get();
3408 public static readonly
int GLP_INFEAS =
GLPKPINVOKE.GLP_INFEAS_get();
3409 public static readonly
int GLP_NOFEAS =
GLPKPINVOKE.GLP_NOFEAS_get();
3410 public static readonly
int GLP_OPT =
GLPKPINVOKE.GLP_OPT_get();
3411 public static readonly
int GLP_UNBND =
GLPKPINVOKE.GLP_UNBND_get();
3412 public static readonly
int GLP_BF_LUF =
GLPKPINVOKE.GLP_BF_LUF_get();
3413 public static readonly
int GLP_BF_BTF =
GLPKPINVOKE.GLP_BF_BTF_get();
3414 public static readonly
int GLP_BF_FT =
GLPKPINVOKE.GLP_BF_FT_get();
3415 public static readonly
int GLP_BF_BG =
GLPKPINVOKE.GLP_BF_BG_get();
3416 public static readonly
int GLP_BF_GR =
GLPKPINVOKE.GLP_BF_GR_get();
3417 public static readonly
int GLP_MSG_OFF =
GLPKPINVOKE.GLP_MSG_OFF_get();
3418 public static readonly
int GLP_MSG_ERR =
GLPKPINVOKE.GLP_MSG_ERR_get();
3419 public static readonly
int GLP_MSG_ON =
GLPKPINVOKE.GLP_MSG_ON_get();
3420 public static readonly
int GLP_MSG_ALL =
GLPKPINVOKE.GLP_MSG_ALL_get();
3421 public static readonly
int GLP_MSG_DBG =
GLPKPINVOKE.GLP_MSG_DBG_get();
3422 public static readonly
int GLP_PRIMAL =
GLPKPINVOKE.GLP_PRIMAL_get();
3423 public static readonly
int GLP_DUALP =
GLPKPINVOKE.GLP_DUALP_get();
3424 public static readonly
int GLP_DUAL =
GLPKPINVOKE.GLP_DUAL_get();
3425 public static readonly
int GLP_PT_STD =
GLPKPINVOKE.GLP_PT_STD_get();
3426 public static readonly
int GLP_PT_PSE =
GLPKPINVOKE.GLP_PT_PSE_get();
3427 public static readonly
int GLP_RT_STD =
GLPKPINVOKE.GLP_RT_STD_get();
3428 public static readonly
int GLP_RT_HAR =
GLPKPINVOKE.GLP_RT_HAR_get();
3429 public static readonly
int GLP_RT_FLIP =
GLPKPINVOKE.GLP_RT_FLIP_get();
3430 public static readonly
int GLP_USE_AT =
GLPKPINVOKE.GLP_USE_AT_get();
3431 public static readonly
int GLP_USE_NT =
GLPKPINVOKE.GLP_USE_NT_get();
3432 public static readonly
int GLP_ORD_NONE =
GLPKPINVOKE.GLP_ORD_NONE_get();
3433 public static readonly
int GLP_ORD_QMD =
GLPKPINVOKE.GLP_ORD_QMD_get();
3434 public static readonly
int GLP_ORD_AMD =
GLPKPINVOKE.GLP_ORD_AMD_get();
3435 public static readonly
int GLP_ORD_SYMAMD =
GLPKPINVOKE.GLP_ORD_SYMAMD_get();
3436 public static readonly
int GLP_BR_FFV =
GLPKPINVOKE.GLP_BR_FFV_get();
3437 public static readonly
int GLP_BR_LFV =
GLPKPINVOKE.GLP_BR_LFV_get();
3438 public static readonly
int GLP_BR_MFV =
GLPKPINVOKE.GLP_BR_MFV_get();
3439 public static readonly
int GLP_BR_DTH =
GLPKPINVOKE.GLP_BR_DTH_get();
3440 public static readonly
int GLP_BR_PCH =
GLPKPINVOKE.GLP_BR_PCH_get();
3441 public static readonly
int GLP_BT_DFS =
GLPKPINVOKE.GLP_BT_DFS_get();
3442 public static readonly
int GLP_BT_BFS =
GLPKPINVOKE.GLP_BT_BFS_get();
3443 public static readonly
int GLP_BT_BLB =
GLPKPINVOKE.GLP_BT_BLB_get();
3444 public static readonly
int GLP_BT_BPH =
GLPKPINVOKE.GLP_BT_BPH_get();
3445 public static readonly
int GLP_PP_NONE =
GLPKPINVOKE.GLP_PP_NONE_get();
3446 public static readonly
int GLP_PP_ROOT =
GLPKPINVOKE.GLP_PP_ROOT_get();
3447 public static readonly
int GLP_PP_ALL =
GLPKPINVOKE.GLP_PP_ALL_get();
3448 public static readonly
int GLP_RF_REG =
GLPKPINVOKE.GLP_RF_REG_get();
3449 public static readonly
int GLP_RF_LAZY =
GLPKPINVOKE.GLP_RF_LAZY_get();
3450 public static readonly
int GLP_RF_CUT =
GLPKPINVOKE.GLP_RF_CUT_get();
3451 public static readonly
int GLP_RF_GMI =
GLPKPINVOKE.GLP_RF_GMI_get();
3452 public static readonly
int GLP_RF_MIR =
GLPKPINVOKE.GLP_RF_MIR_get();
3453 public static readonly
int GLP_RF_COV =
GLPKPINVOKE.GLP_RF_COV_get();
3454 public static readonly
int GLP_RF_CLQ =
GLPKPINVOKE.GLP_RF_CLQ_get();
3455 public static readonly
int GLP_ON =
GLPKPINVOKE.GLP_ON_get();
3456 public static readonly
int GLP_OFF =
GLPKPINVOKE.GLP_OFF_get();
3457 public static readonly
int GLP_IROWGEN =
GLPKPINVOKE.GLP_IROWGEN_get();
3458 public static readonly
int GLP_IBINGO =
GLPKPINVOKE.GLP_IBINGO_get();
3459 public static readonly
int GLP_IHEUR =
GLPKPINVOKE.GLP_IHEUR_get();
3460 public static readonly
int GLP_ICUTGEN =
GLPKPINVOKE.GLP_ICUTGEN_get();
3461 public static readonly
int GLP_IBRANCH =
GLPKPINVOKE.GLP_IBRANCH_get();
3462 public static readonly
int GLP_ISELECT =
GLPKPINVOKE.GLP_ISELECT_get();
3463 public static readonly
int GLP_IPREPRO =
GLPKPINVOKE.GLP_IPREPRO_get();
3464 public static readonly
int GLP_NO_BRNCH =
GLPKPINVOKE.GLP_NO_BRNCH_get();
3465 public static readonly
int GLP_DN_BRNCH =
GLPKPINVOKE.GLP_DN_BRNCH_get();
3466 public static readonly
int GLP_UP_BRNCH =
GLPKPINVOKE.GLP_UP_BRNCH_get();
3467 public static readonly
int GLP_EBADB =
GLPKPINVOKE.GLP_EBADB_get();
3468 public static readonly
int GLP_ESING =
GLPKPINVOKE.GLP_ESING_get();
3469 public static readonly
int GLP_ECOND =
GLPKPINVOKE.GLP_ECOND_get();
3470 public static readonly
int GLP_EBOUND =
GLPKPINVOKE.GLP_EBOUND_get();
3471 public static readonly
int GLP_EFAIL =
GLPKPINVOKE.GLP_EFAIL_get();
3472 public static readonly
int GLP_EOBJLL =
GLPKPINVOKE.GLP_EOBJLL_get();
3473 public static readonly
int GLP_EOBJUL =
GLPKPINVOKE.GLP_EOBJUL_get();
3474 public static readonly
int GLP_EITLIM =
GLPKPINVOKE.GLP_EITLIM_get();
3475 public static readonly
int GLP_ETMLIM =
GLPKPINVOKE.GLP_ETMLIM_get();
3476 public static readonly
int GLP_ENOPFS =
GLPKPINVOKE.GLP_ENOPFS_get();
3477 public static readonly
int GLP_ENODFS =
GLPKPINVOKE.GLP_ENODFS_get();
3478 public static readonly
int GLP_EROOT =
GLPKPINVOKE.GLP_EROOT_get();
3479 public static readonly
int GLP_ESTOP =
GLPKPINVOKE.GLP_ESTOP_get();
3480 public static readonly
int GLP_EMIPGAP =
GLPKPINVOKE.GLP_EMIPGAP_get();
3481 public static readonly
int GLP_ENOFEAS =
GLPKPINVOKE.GLP_ENOFEAS_get();
3482 public static readonly
int GLP_ENOCVG =
GLPKPINVOKE.GLP_ENOCVG_get();
3483 public static readonly
int GLP_EINSTAB =
GLPKPINVOKE.GLP_EINSTAB_get();
3484 public static readonly
int GLP_EDATA =
GLPKPINVOKE.GLP_EDATA_get();
3485 public static readonly
int GLP_ERANGE =
GLPKPINVOKE.GLP_ERANGE_get();
3486 public static readonly
int GLP_KKT_PE =
GLPKPINVOKE.GLP_KKT_PE_get();
3487 public static readonly
int GLP_KKT_PB =
GLPKPINVOKE.GLP_KKT_PB_get();
3488 public static readonly
int GLP_KKT_DE =
GLPKPINVOKE.GLP_KKT_DE_get();
3489 public static readonly
int GLP_KKT_DB =
GLPKPINVOKE.GLP_KKT_DB_get();
3490 public static readonly
int GLP_KKT_CS =
GLPKPINVOKE.GLP_KKT_CS_get();
3491 public static readonly
int GLP_MPS_DECK =
GLPKPINVOKE.GLP_MPS_DECK_get();
3492 public static readonly
int GLP_MPS_FILE =
GLPKPINVOKE.GLP_MPS_FILE_get();
3493 public static readonly
int GLP_ASN_MIN =
GLPKPINVOKE.GLP_ASN_MIN_get();
3494 public static readonly
int GLP_ASN_MAX =
GLPKPINVOKE.GLP_ASN_MAX_get();
3495 public static readonly
int GLP_ASN_MMP =
GLPKPINVOKE.GLP_ASN_MMP_get();
static void glp_set_obj_name(glp_prob P, string name)
glp_set_obj_name - assign (change) objective function name .
static int glp_ios_up_node(glp_tree T, int p)
glp_ios_up_node - determine parent subproblem .
static void glp_del_vertices(glp_graph G, int ndel, SWIGTYPE_p_int num)
glp_del_vertices - delete vertices from graph .
static void glp_del_rows(glp_prob P, int nrs, SWIGTYPE_p_int num)
glp_del_rows - delete rows from problem object .
static int glp_get_obj_dir(glp_prob P)
glp_get_obj_dir - retrieve optimization direction flag .
static double glp_mip_col_val(glp_prob P, int j)
glp_mip_col_val - retrieve column value (MIP solution) .
static void glp_init_mpscp(glp_mpscp parm)
glp_init_mpscp - initialize MPS format control parameters .
static int glp_read_maxflow(glp_graph G, SWIGTYPE_p_int s, SWIGTYPE_p_int t, int a_cap, string fname)
glp_read_maxflow - read maximum flow problem data in DIMACS format .
static void glp_puts(string s)
glp_puts - write string on terminal .
static int glp_transform_row(glp_prob P, int len, SWIGTYPE_p_int ind, SWIGTYPE_p_double val)
glp_transform_row - transform explicitly specified row .
static glp_vertex glp_cli_vertex_get(glp_graph G, int i)
Get vertex.
static void intArray_setitem(SWIGTYPE_p_int ary, int index, int value)
Sets the value of an element of an array of int.
static void glp_delete_graph(glp_graph G)
glp_delete_graph - delete graph .
static void glp_set_col_bnds(glp_prob P, int j, int type, double lb, double ub)
glp_set_col_bnds - set (change) column bounds .
static void glp_create_index(glp_prob P)
glp_create_index - create the name index .
static int glp_bf_exists(glp_prob P)
glp_bf_exists - check if the basis factorization exists .
static int glp_term_out(int flag)
glp_term_out - enable/disable terminal output .
static double glp_ipt_row_prim(glp_prob P, int i)
glp_ipt_row_prim - retrieve row primal value (interior point) .
static int glp_get_mat_row(glp_prob P, int i, SWIGTYPE_p_int ind, SWIGTYPE_p_double val)
glp_get_mat_row - retrieve row of the constraint matrix .
static void glp_printf(string fmt)
glp_printf - write formatted output on terminal .
static int glp_dual_rtest(glp_prob P, int len, SWIGTYPE_p_int ind, SWIGTYPE_p_double val, int dir, double eps)
glp_dual_rtest - perform dual ratio test .
static int glp_check_dup(int m, int n, int ne, SWIGTYPE_p_int ia, SWIGTYPE_p_int ja)
glp_check_dup - check for duplicate elements in sparse matrix .
static int glp_prim_rtest(glp_prob P, int len, SWIGTYPE_p_int ind, SWIGTYPE_p_double val, int dir, double eps)
glp_prim_rtest - perform primal ratio test .
static double glp_get_sjj(glp_prob P, int j)
glp_get_sjj - retrieve column scale factor .
static double glp_get_obj_val(glp_prob P)
glp_get_obj_val - retrieve objective value (basic solution) .
static void glp_vprintf(string fmt, SWIGTYPE_p_va_list arg)
glp_vprintf - write formatted output on terminal .
static void glp_ios_select_node(glp_tree T, int p)
glp_ios_select_node - select subproblem to continue the search .
static int glp_read_sol(glp_prob P, string fname)
glp_read_sol - read basic solution from text file .
static int glp_write_prob(glp_prob P, int flags, string fname)
glp_write_prob - write problem data in GLPK format .
static void glp_init_cpxcp(glp_cpxcp parm)
glp_init_cpxcp - initialize CPLEX LP format control parameters .
static void glp_set_obj_dir(glp_prob P, int dir)
glp_set_obj_dir - set (change) optimization direction flag .
static int glp_get_bhead(glp_prob P, int k)
glp_get_bhead - retrieve the basis header information .
static void glp_load_matrix(glp_prob P, int ne, SWIGTYPE_p_int ia, SWIGTYPE_p_int ja, SWIGTYPE_p_double ar)
glp_load_matrix - load (replace) the whole constraint matrix .
static void glp_ios_terminate(glp_tree T)
glp_ios_terminate - terminate the solution process.
static int glp_read_ipt(glp_prob P, string fname)
glp_read_ipt - read interior-point solution from text file .
static string glp_get_obj_name(glp_prob P)
glp_get_obj_name - retrieve objective function name .
static int glp_add_rows(glp_prob P, int nrs)
glp_add_rows - add new rows to problem object .
static void glp_set_sjj(glp_prob P, int j, double sjj)
glp_set sjj - set (change) column scale factor .
static int intArray_getitem(SWIGTYPE_p_int ary, int index)
Retrieves an element of an array of int.
static void glp_set_rii(glp_prob P, int i, double rii)
glp_set_rii - set (change) row scale factor .
static void glp_analyze_bound(glp_prob P, int k, SWIGTYPE_p_double value1, SWIGTYPE_p_int var1, SWIGTYPE_p_double value2, SWIGTYPE_p_int var2)
glp_analyze_bound - analyze active bound of non-basic variable .
static void glp_unscale_prob(glp_prob P)
glp_unscale_prob - unscale problem data .
static void glp_mincost_lp(glp_prob P, glp_graph G, int names, int v_rhs, int a_low, int a_cap, int a_cost)
glp_mincost_lp - convert minimum cost flow problem to LP .
static void glp_set_col_name(glp_prob P, int j, string name)
glp_set_col_name - assign (change) column name .
static double glp_get_col_ub(glp_prob P, int j)
glp_get_col_ub - retrieve column upper bound .
static glp_cli_vertex_data glp_cli_vertex_data_get(glp_graph G, int i)
Get vertex data.
static int glp_eval_tab_row(glp_prob P, int k, SWIGTYPE_p_int ind, SWIGTYPE_p_double val)
glp_eval_tab_row - compute row of the simplex tableau .
static glp_cli_vertex_data glp_cli_vertex_get_data(glp_vertex v)
Get vertex data.
static int glp_read_asnprob(glp_graph G, int v_set, int a_cost, string fname)
glp_read_asnprob - read assignment problem data in DIMACS format .
static void glp_init_iocp(glp_iocp parm)
glp_init_iocp - initialize integer optimizer control parameters .
static int glp_write_maxflow(glp_graph G, int s, int t, int a_cap, string fname)
glp_write_maxflow - write maximum flow problem data in DIMACS format .
static void glp_get_bfcp(glp_prob P, glp_bfcp parm)
glp_get_bfcp - retrieve basis factorization control parameters .
static void glp_del_arc(glp_graph G, glp_arc a)
glp_del_arc - delete arc from graph .
static double glp_ipt_row_dual(glp_prob P, int i)
glp_ipt_row_dual - retrieve row dual value (interior point) .
static int glp_get_num_nz(glp_prob P)
glp_get_num_nz - retrieve number of constraint coefficients .
static void glp_cli_set_msg_lvl(int msg_lvl)
Sets the message level.
static string glp_get_prob_name(glp_prob P)
glp_get_prob_name - retrieve problem name .
static void glp_copy_prob(glp_prob dest, glp_prob prob, int names)
glp_copy_prob - copy problem object content .
static void glp_set_row_name(glp_prob P, int i, string name)
glp_set_row_name - assign (change) row name .
static void glp_set_prob_name(glp_prob P, string name)
glp_set_prob_name - assign (change) problem name .
static int glp_ios_can_branch(glp_tree T, int j)
glp_ios_can_branch - check if can branch upon specified variable .
static int glp_read_mincost(glp_graph G, int v_rhs, int a_low, int a_cap, int a_cost, string fname)
glp_read_mincost - read min-cost flow problem data in DIMACS format .
static int glp_transform_col(glp_prob P, int len, SWIGTYPE_p_int ind, SWIGTYPE_p_double val)
glp_transform_col - transform explicitly specified column .
static int glp_strong_comp(glp_graph G, int v_num)
glp_strong_comp - find all strongly connected components of graph .
static double glp_get_row_ub(glp_prob P, int i)
glp_get_row_ub - retrieve row upper bound .
static int glp_ipt_status(glp_prob P)
glp_ipt_status - retrieve status of interior-point solution .
static int glp_at_error()
glp_at_error - check for error state .
static int glp_get_col_stat(glp_prob P, int j)
glp_get_col_stat - retrieve column status .
static int glp_get_num_rows(glp_prob P)
glp_get_num_rows - retrieve number of rows .
static void glp_cpx_basis(glp_prob P)
glp_cpx_basis - construct Bixby's initial LP basis .
static void glp_set_obj_coef(glp_prob P, int j, double coef)
glp_set_obj_coef - set (change) obj.
static int glp_ios_best_node(glp_tree T)
glp_ios_best_node - find active subproblem with best local bound .
static glp_cli_arc_data glp_cli_arc_get_data(glp_arc arc)
Get arc data.
static double glp_difftime(double t1, double t0)
glp_difftime - compute difference between two time values .
static string glp_get_col_name(glp_prob P, int j)
glp_get_col_name - retrieve column name .
static int glp_open_tee(string name)
glp_open_tee - start copying terminal output to text file .
static int glp_asnprob_lp(glp_prob P, int form, glp_graph G, int names, int v_set, int a_cost)
glp_asnprob_lp - convert assignment problem to LP .
static int glp_find_row(glp_prob P, string name)
glp_find_row - find row by its name .
static int glp_init_env()
glp_init_env - initialize GLPK environment .
static void glp_ios_branch_upon(glp_tree T, int j, int sel)
glp_ios_branch_upon - choose variable to branch upon .
static double glp_get_col_lb(glp_prob P, int j)
glp_get_col_lb - retrieve column lower bound .
static int glp_get_col_bind(glp_prob P, int j)
glp_get_col_bind - retrieve column index in the basis header .
static int glp_ios_curr_node(glp_tree T)
glp_ios_curr_node - determine current active subproblem .
static int glp_add_cols(glp_prob P, int ncs)
glp_add_cols - add new columns to problem object .
static double glp_mip_row_val(glp_prob P, int i)
glp_mip_row_val - retrieve row value (MIP solution) .
static int glp_write_asnprob(glp_graph G, int v_set, int a_cost, string fname)
glp_write_asnprob - write assignment problem data in DIMACS format .
static void glp_delete_index(glp_prob P)
glp_delete_index - delete the name index .
static int glp_ios_prev_node(glp_tree T, int p)
glp_ios_prev_node - determine previous active subproblem .
static void glp_ftran(glp_prob P, SWIGTYPE_p_double x)
glp_ftran - perform forward transformation (solve system B*x = b) .
static void glp_analyze_coef(glp_prob P, int k, SWIGTYPE_p_double coef1, SWIGTYPE_p_int var1, SWIGTYPE_p_double value1, SWIGTYPE_p_double coef2, SWIGTYPE_p_int var2, SWIGTYPE_p_double value2)
glp_analyze_coef - analyze objective coefficient at basic variable .
static int glp_get_mat_col(glp_prob P, int j, SWIGTYPE_p_int ind, SWIGTYPE_p_double val)
glp_get_mat_col - retrieve column of the constraint matrix .
static void glp_set_mat_col(glp_prob P, int j, int len, SWIGTYPE_p_int ind, SWIGTYPE_p_double val)
glp_set_mat_col - set (replace) column of the constraint matrix .
static double glp_get_col_prim(glp_prob P, int j)
glp_get_col_prim - retrieve column primal value (basic solution) .
static void glp_set_row_bnds(glp_prob P, int i, int type, double lb, double ub)
glp_set_row_bnds - set (change) row bounds .
static void glp_cli_error(string message)
Abort GLPK library with error message.
static int glp_free_env()
glp_free_env - free GLPK environment .
static int glp_write_sol(glp_prob P, string fname)
glp_write_sol - write basic solution to text file .
static int glp_write_ipt(glp_prob P, string fname)
glp_write_ipt - write interior-point solution to text file .
static int glp_ios_next_node(glp_tree T, int p)
glp_ios_next_node - determine next active subproblem .
static double glp_ipt_obj_val(glp_prob P)
glp_ipt_obj_val - retrieve objective value (interior point) .
static void glp_init_smcp(glp_smcp parm)
glp_init_smcp - initialize simplex method control parameters .
static double glp_get_rii(glp_prob P, int i)
glp_get_rii - retrieve row scale factor .
static void glp_mem_usage(SWIGTYPE_p_int count, SWIGTYPE_p_int cpeak, SWIGTYPE_p_size_t total, SWIGTYPE_p_size_t tpeak)
glp_mem_usage - get memory usage information .
static int glp_read_mip(glp_prob P, string fname)
glp_read_mip - read MIP solution from text file .
static void glp_set_col_kind(glp_prob P, int j, int kind)
glp_set_col_kind - set (change) column kind .
static int glp_read_prob(glp_prob P, int flags, string fname)
glp_read_prob - read problem data in GLPK format .
static int glp_ios_node_level(glp_tree T, int p)
glp_ios_node_level - determine subproblem level .
static int glp_bf_updated(glp_prob P)
glp_bf_updated - check if the basis factorization has been updated .
static void glp_free(SWIGTYPE_p_void ptr)
glp_free - free (deallocate) memory block .
static int glp_write_mincost(glp_graph G, int v_rhs, int a_low, int a_cap, int a_cost, string fname)
glp_write_mincost - write min-cost flow problem data in DIMACS format .
static int glp_find_col(glp_prob P, string name)
glp_find_col - find column by its name .
static void glp_set_col_stat(glp_prob P, int j, int stat)
glp_set_col_stat - set (change) column status .
static int glp_read_ccdata(glp_graph G, int v_wgt, string fname)
glp_read_ccdata - read graph in DIMACS clique/coloring format .
static void glp_scale_prob(glp_prob P, int flags)
glp_scale_prob - scale problem data .
static int glp_write_mip(glp_prob P, string fname)
glp_write_mip - write MIP solution to text file .
static double glp_get_col_dual(glp_prob P, int j)
glp_get_col_dual - retrieve column dual value (basic solution) .
static int glp_get_num_bin(glp_prob P)
glp_get_num_bin - retrieve number of binary columns .
static void glp_btran(glp_prob P, SWIGTYPE_p_double x)
glp_btran - perform backward transformation (solve system B'*x = b) .
static void glp_sort_matrix(glp_prob P)
glp_sort_matrix - sort elements of the constraint matrix .
static int glp_ios_reason(glp_tree T)
glp_ios_reason - determine reason for calling the callback routine .
static double glp_get_row_lb(glp_prob P, int i)
glp_get_row_lb - retrieve row lower bound .
static glp_arc glp_add_arc(glp_graph G, int i, int j)
glp_add_arc - add new arc to graph .
static void glp_assert_(string expr, string file, int line)
glp_assert - check for logical condition .
static int glp_get_dual_stat(glp_prob P)
glp_get_dual_stat - retrieve status of dual basic solution .
static int glp_get_row_stat(glp_prob P, int i)
glp_get_row_stat - retrieve row status .
static int glp_get_num_int(glp_prob P)
glp_get_num_int - retrieve number of integer columns .
static double glp_mip_obj_val(glp_prob P)
glp_mip_obj_val - retrieve objective value (MIP solution) .
static int glp_weak_comp(glp_graph G, int v_num)
glp_weak_comp - find all weakly connected components of graph .
static int glp_ios_heur_sol(glp_tree T, SWIGTYPE_p_double x)
glp_ios_heur_sol - provide solution found by heuristic .
static void glp_std_basis(glp_prob P)
glp_std_basis - construct standard initial LP basis .
static int glp_get_row_type(glp_prob P, int i)
glp_get_row_type - retrieve row type .
static void glp_set_graph_name(glp_graph G, string name)
glp_set_graph_name - assign (change) graph name .
static void glp_set_mat_row(glp_prob P, int i, int len, SWIGTYPE_p_int ind, SWIGTYPE_p_double val)
glp_set_mat_row - set (replace) row of the constraint matrix .
static void glp_error_hook(SWIGTYPE_p_f_p_void__void func, SWIGTYPE_p_void info)
glp_error_hook - install hook to intercept abnormal termination .
static void glp_del_cols(glp_prob P, int ncs, SWIGTYPE_p_int num)
glp_del_cols - delete columns from problem object .
static int glp_add_vertices(glp_graph G, int nadd)
glp_add_vertices - add new vertices to graph .
static void glp_maxflow_lp(glp_prob P, glp_graph G, int names, int s, int t, int a_cap)
glp_maxflow_lp - convert maximum flow problem to LP .
static void glp_set_bfcp(glp_prob P, glp_bfcp parm)
glp_set_bfcp - change basis factorization control parameters .
static int glp_mip_status(glp_prob P)
glp_mip_status - retrieve status of MIP solution .
static string glp_version()
glp_version - determine library version .
static glp_prob glp_ios_get_prob(glp_tree T)
glp_ios_get_prob - access the problem object .
static int glp_get_prim_stat(glp_prob P)
glp_get_prim_stat - retrieve status of primal basic solution .
static int glp_eval_tab_col(glp_prob P, int k, SWIGTYPE_p_int ind, SWIGTYPE_p_double val)
glp_eval_tab_col - compute column of the simplex tableau .
static void doubleArray_setitem(SWIGTYPE_p_double ary, int index, double value)
Sets the value of an element of an array of double.
static void delete_intArray(SWIGTYPE_p_int ary)
Deletes an array of int.
static SWIGTYPE_p_int new_intArray(int nelements)
Creates a new array of int.
static void glp_term_hook(SWIGTYPE_p_f_p_void_p_q_const__char__int func, SWIGTYPE_p_void info)
glp_term_hook - install hook to intercept terminal output .
static double glp_ios_node_bound(glp_tree T, int p)
glp_ios_node_bound - determine subproblem local bound .
static int glp_get_num_cols(glp_prob P)
glp_get_num_cols - retrieve number of columns .
static int glp_warm_up(glp_prob P)
glp_warm_up - "warm up" LP basis .
static int glp_get_status(glp_prob P)
glp_get_status - retrieve generic status of basic solution .
static int glp_get_row_bind(glp_prob P, int i)
glp_get_row_bind - retrieve row index in the basis header .
static string glp_get_row_name(glp_prob P, int i)
glp_get_row_name - retrieve row name .
static int glp_write_ccdata(glp_graph G, int v_wgt, string fname)
glp_write_ccdata - write graph in DIMACS clique/coloring format .
static SWIGTYPE_p_double new_doubleArray(int nelements)
Creates a new array of double.
static int glp_read_graph(glp_graph G, string fname)
glp_read_graph - read graph from plain text file .
static SWIGTYPE_p_void glp_ios_node_data(glp_tree T, int p)
glp_ios_node_data - access subproblem application-specific data .
static int glp_close_tee()
glp_close_tee - stop copying terminal output to text file .
static void delete_doubleArray(SWIGTYPE_p_double ary)
Deletes an array of double.
static void glp_ios_row_attr(glp_tree T, int i, glp_attr attr)
glp_ios_row_attr - retrieve additional row attributes .
static int glp_write_graph(glp_graph G, string fname)
glp_write_graph - write graph to plain text file .
static double glp_ios_mip_gap(glp_tree T)
glp_ios_mip_gap - compute relative MIP gap .
static int glp_get_col_kind(glp_prob P, int j)
glp_get_col_kind - retrieve column kind .
static double glp_ipt_col_prim(glp_prob P, int j)
glp_ipt_col_prim - retrieve column primal value (interior point) .
static double glp_get_row_prim(glp_prob P, int i)
glp_get_row_prim - retrieve row primal value (basic solution) .
static void glp_ios_tree_size(glp_tree T, SWIGTYPE_p_int a_cnt, SWIGTYPE_p_int n_cnt, SWIGTYPE_p_int t_cnt)
glp_ios_tree_size - determine size of the branch-and-bound tree .
static void glp_mem_limit(int limit)
glp_mem_limit - set memory usage limit .
static double glp_get_obj_coef(glp_prob P, int j)
glp_get_obj_coef - retrieve obj.
static double glp_ipt_col_dual(glp_prob P, int j)
glp_ipt_col_dual - retrieve column dual value (interior point) .
static double doubleArray_getitem(SWIGTYPE_p_double ary, int index)
Retrieves an element of an array of double.
static void glp_init_iptcp(glp_iptcp parm)
glp_init_iptcp - initialize interior-point solver control parameters .
static int glp_get_col_type(glp_prob P, int j)
glp_get_col_type - retrieve column type .
static int glp_check_asnprob(glp_graph G, int v_set)
glp_check_asnprob - check correctness of assignment problem data .
static void glp_set_row_stat(glp_prob P, int i, int stat)
glp_set_row_stat - set (change) row status .
static double glp_get_row_dual(glp_prob P, int i)
glp_get_row_dual - retrieve row dual value (basic solution) .
static SWIGTYPE_p_void glp_alloc(int n, int size)
glp_alloc - allocate memory block .
static int glp_get_unbnd_ray(glp_prob P)
glp_get_unbnd_ray - determine variable causing unboundedness .
static int glp_asnprob_hall(glp_graph G, int v_set, int a_x)
glp_asnprob_hall - find bipartite matching of maximum cardinality .