-
Notifications
You must be signed in to change notification settings - Fork 63
/
CPLEX.jl
95 lines (87 loc) · 2.37 KB
/
CPLEX.jl
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
module CPLEX
@osx_only dlopen("libstdc++",RTLD_GLOBAL)
include("../deps/deps.jl")
### imports
import Base.convert, Base.show, Base.copy
# Standard LP interface
require(joinpath(Pkg.dir("MathProgBase"),"src","MathProgSolverInterface.jl"))
importall MathProgSolverInterface
# exported functions
# export is_valid,
# set_logfile,
# get_error_msg,
# read_model,
# write_model,
# get_sense,
# set_sense!,
# get_obj,
# set_obj!,
# set_warm_start!,
# free_problem,
# close_CPLEX,
# get_param_type,
# set_param!,
# get_param,
# add_vars!,
# add_var!,
# get_varLB,
# set_varLB!,
# get_varUB,
# set_varUB!,
# set_vartype!,
# get_vartype,
# num_var,
# add_constrs!,
# add_constrs_t!,
# add_rangeconstrs!,
# add_rangeconstrs_t!,
# num_constr,
# get_constr_senses,
# set_constr_senses!,
# get_rhs,
# set_rhs!,
# get_constrLB,
# get_constrUB,
# set_constrLB!,
# set_constrUB!,
# get_nnz,
# get_constr_matrix,
# set_sos!,
# add_qpterms!,
# add_diag_qpterms!,
# add_qconstr!,
# optimize!,
# get_objval,
# get_solution,
# get_reduced_costs,
# get_constr_duals,
# get_constr_solution,
# get_infeasibility_ray,
# get_unbounded_ray,
# get_status,
# get_status_code,
# setcallbackcut,
# cbcut,
# cblazy,
# cbget_mipnode_rel,
# cbget_mipsol_sol,
# cplex_model
include("full_defines.jl")
include("cpx_common.jl")
include("cpx_env.jl")
include("cpx_model.jl")
include("cpx_params.jl")
include("cpx_vars.jl")
include("cpx_constrs.jl")
include("cpx_quad.jl")
include("cpx_solve.jl")
include("cpx_callbacks.jl")
include("cpx_highlevel.jl")
if isdir(Pkg.dir("JuMP"))
try
eval(Expr(:import,:JuMP))
include("JuMPfunctions.jl")
end
end
include("CplexSolverInterface.jl")
end