-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite and overhaul of AmplNLWriter. (#125)
* WIP: begin a rewrite and overhaul of AmplNLWriter. Ideally, some, or all of this would be migrated into MOI.FileFormats as an NL submodule. This needs many more tests before merging. This implementation is simplier than the current one, because it doesn't try to detect or simplify linear expressions. * Remove MathProgBase * More updates * More fixes * More fixes * More fixes * More fixes * Fix on Julia 1.0 and add comments * More fixes * More fixes * Delete rev_opcode.jl * More fixes * Typos * Add another test * Update MOI_wrapper.jl * Check ExprGraph available * features_available * Fix typo * Change Optimizer to the copy_to interface * Fix MINLPTests * Fix part II
- Loading branch information
Showing
20 changed files
with
2,281 additions
and
2,292 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# This script builds the list of recognized ASL opcodes using the header files | ||
# in ASL_jll. Only re-run it if AMPL adds new opcodes (which is unlikely). | ||
|
||
using ASL_jll | ||
|
||
open(joinpath(dirname(@__DIR__), "src", "opcode.jl"), "w") do io | ||
println(""" | ||
# Do not modify. This file is automatically created by the script in `gen.jl`. | ||
""") | ||
filename = joinpath(ASL_jll.artifact_dir, "include", "opcode.hd") | ||
for line in readlines(filename) | ||
items = split(line, c -> c == '\t' || c == ' '; keepempty = false) | ||
println(io, "const ", items[2], " = ", items[3]) | ||
end | ||
end |
Oops, something went wrong.