JuliaOpt / MathProgBase.jl

DEPRECATED: Solver-independent functions (i.e. linprog and mixintprog) and low-level interface for Mathematical Programming
Other
80 stars 38 forks source link

Create a model with CPLEX as a solver #240

Closed ZacharieALES closed 1 year ago

ZacharieALES commented 1 year ago

Hello,

It is more a question than a bug sorry about that but I don't know where to get an answer... I would like to create a simple model with CPLEX as a solver. What I hoped would work was: julia> model = MPB.linprog([-1,0],[2 1],'<',1.5, CPLEX.Optimizer) but it returns the error: ERROR: MethodError: no method matching linprog(::Array{Int64,1}, ::Array{Int64,2}, ::Char, ::Float64, ::CPLEX.Optimizer)

Could you tell me how I can do that?

ZacharieALES commented 1 year ago

I did not realise that the package was not maintained anymore.

mlubin commented 1 year ago

Yes, please use JuMP instead.