在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:jump-dev/AmplNLWriter.jl开源软件地址:https://github.com/jump-dev/AmplNLWriter.jl开源编程语言:Julia 100.0%开源软件介绍:AmplNLWriter.jlAmplNLWriter.jl is an interface between MathOptInterface.jl and AMPL-enabled solvers. Note: this wrapper is maintained by the JuMP community and has no official connection with the AMPL modeling language or AMPL Optimization Inc. InstallationInstall AmplNLWriter using import Pkg
Pkg.add("AmplNLWriter") Note: AmplNLWriter requires Julia 1.6 or later. SolversYou also need an AMPL compatible solver. https://github.com/coin-or/Bonmin)Bonmin (To install Bonmin, use: Pkg.add("Bonmin_jll") https://github.com/coin-or/Couenne)Couenne (To install Couenne, use: Pkg.add("Couenne_jll") https://github.com/coin-or/Ipopt)Ipopt (To install Ipopt, use: Pkg.add("Ipopt_jll") https://github.com/coin-or/SHOT)SHOT (To install SHOT, use: Pkg.add("SHOT_jll") Warning: SHOT_jll uses open-source solvers and fails many of our unit tests. You may want to compile your own binary with commercial solvers. UsageJLL packagesTo call Bonmin via AmplNLWriter.jl, use: using JuMP, AmplNLWriter, Bonmin_jll
model = Model(() -> AmplNLWriter.Optimizer(Bonmin_jll.amplexe))
# or equivalently
model = Model() do
AmplNLWriter.Optimizer(Bonmin_jll.amplexe)
end Replace Other binariesYou can also pass a string pointing to an AMPL-compatible solver executable. For
example, if the using JuMP, AmplNLWriter
model = Model(() -> AmplNLWriter.Optimizer("bonmin")) If the solver is not on the path, the full path to the solver will need to be passed in. OptionsA list of available options for each solver can be found here: Set an option using using JuMP, AmplNLWriter, Bonmin_jll
model = Model(() -> AmplNLWriter.Optimizer(Bonmin_jll.amplexe))
set_optimizer_attribute(model, "bonmin.nlp_log_level", 0) opt filesSome of the options need to be specified via an The
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论