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
See #231. You cannot directly write an InfiniteOpt model to an NL file, the issue is that the NL file format does not support infinite dimensional formulations.
However, you can write the discretized JuMP version to an NL writer:
model =InfiniteModel()
# define your model herebuild_optimizer_model!(model)
write_to_file(optimizer_model(model), "model.nl")
Once version 0.6 is released, the above will become:
model =InfiniteModel()
# define your model herebuild_transformation_backend!(model)
write_to_file(transformation_model(model), "model.nl")
Answering your other question, InfiniteOpt is compatible with any JuMP solver, this includes AmplNLWriter.
If you just want to interface with a solver executable, then I would most recommend using AmplNLWriter.
Dear InfiniteOpt team,
If there exists a model of like the following
And then can i write the model to File_name.nl with the command of
Dose the alternative method of
works ?
Thanks for your time.
Describe the feature you'd like
I need the feature that i can write the model builded by InfinityOpt.jl to file of File_Name.nl. Thanks.
Sincerely.
Aijune WANG
The text was updated successfully, but these errors were encountered: