在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:jump-dev/Xpress.jl开源软件地址:https://github.com/jump-dev/Xpress.jl开源编程语言:Julia 100.0%开源软件介绍:Xpress.jl
Xpress.jl is a wrapper for the FICO Xpress Solver. It has two components:
The C API can be accessed via The Xpress wrapper for Julia is community driven and not officially supported by FICO Xpress. If you are a commercial customer interested in official support for Julia from FICO Xpress, let them know! Install:Here is the procedure to setup this package:
You should use the xpress version matching to your julia installation and vice-versa. By default, Use Other PackagesWe highly recommend that you use the Xpress.jl package with higher level packages such as JuMP.jl or MathOptInterface.jl. This can be done using the using JuMP, Xpress
model = Model(()->Xpress.Optimizer(DEFAULTALG=2, PRESOLVE=0, logfile = "output.log")) In order to initialize an optimizer without console printing run
For other parameters use Xpress Optimizer manual
or type If logfile is set to Parameters in a JuMP model can be directly modified: julia> using Xpress, JuMP;
julia> model = Model(()->Xpress.Optimizer());
julia> get_optimizer_attribute(model, "logfile")
julia> set_optimizer_attribute(model, "logfile", "output.log")
julia> get_optimizer_attribute(model, "logfile")
"output.log" If you've already created an instance of an MOI julia> using Xpress, MathOptInterface; const MOI = MathOptInterface;
julia> OPTIMIZER = Xpress.Optimizer();
julia> MOI.get(OPTIMIZER, MOI.RawParameter("logfile"))
""
julia> MOI.set(OPTIMIZER, MOI.RawParameter("logfile"), "output.log")
julia> MOI.get(OPTIMIZER, MOI.RawParameter("logfile"))
"output.log" CallbacksSolver specific and solver independent callbacks are working in MathOptInterface and, consequently, in JuMP. However, the current implementation should be considered experimental. Environement variables
Julia version warningThe Julia versions 1.1.x do not work properly with MOI dues to Julia bugs. Hence, these versions are not supported. BenchmarkingIn the development of Xpress.jl it is useful to benchmark the MOI wrapper code performance. To perform benchmark we recommend you compare the performance of the master branch aggaints your implementation. Here we leave an example on how to perform the benchmarks the correct way.
When you are ready to make a PR please report the Reference: |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论