Skip to content

Can i write the InfiniteOpt's Model to file of nl? #364

@Aijunly

Description

@Aijunly

Dear InfiniteOpt team,

If there exists a model of like the following

# INITIALIZE THE MODEL
model = InfiniteModel(Ipopt.Optimizer)

And then can i write the model to File_name.nl with the command of

write_to_file(model,"model.nl")

Dose the alternative method of

using AmplNLWriter
model = InfiniteModel(()->AmplNLWriter.Optimizer("Your_path\ipopt.exe"))

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions