You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
model =Model(() -> AmplNLWriter.Optimizer("/Users/xxx/Downloads/AMPL/gurobi"))
set_time_limit_sec(model, 600.0)
When using gurobi with AMPL, set_time_limit_sec will raise
MathOptInterface.UnsupportedAttribute{MathOptInterface.TimeLimitSec}: Attribute MathOptInterface.TimeLimitSec() is not supported by the model
Considering many users may actually use Gurobi/CPLEX/XPRESS/COPT with AMPL license, can we provide a generic attribute TimeLimitSec similar to COPT.jlGurobi.jl?
The text was updated successfully, but these errors were encountered:
Of course I could check the native attribute name for each solvers (most of them are just timelimit), but I am thinking those work might be duplicated (when creating wrappers like COPT.jl and Gurobi.jl you probably already went through the same process).
When using gurobi with AMPL,
set_time_limit_sec
will raiseMathOptInterface.UnsupportedAttribute{MathOptInterface.TimeLimitSec}: Attribute MathOptInterface.TimeLimitSec() is not supported by the model
Considering many users may actually use Gurobi/CPLEX/XPRESS/COPT with AMPL license, can we provide a generic attribute
TimeLimitSec
similar toCOPT.jl
Gurobi.jl
?The text was updated successfully, but these errors were encountered: