sol (format)
{{Short description|File format for representing solutions of mathematical programming problems}}
{{Other uses|.sol (disambiguation){{!}}.sol}}
{{Infobox file format
| icon =
| logo =
| screenshot =
| extension = .sol
| mime =
| type code =
| uniform type =
| magic =
| owner = Robert Fourer
David Gay
Brian Kernighan
Bell Labs
| genre = mathematical programming
| container for =
| contained by =
| extended from =
| extended to =
| standard x=
| free =
}}
{{lowercase|nl}}
sol is a file format for representing solutions of mathematical programming problems.
{{cite tech report
| author=David Gay
| title=Writing .nl Files
| institution=Sandia National Laboratories
| year=2005
| location=Albuquerque, NM
| citeseerx = 10.1.1.60.9659
}} It is often used in conjunction with the nl format to return solutions from the solvers. Initially this format has been invented for connecting solvers to AMPL
{{cite tech report
| author=David Gay
| title=Hooking Your Solver to AMPL
| institution=Bell Laboratories
| year=1993
| number=97-4-06
| location=Murray Hill, NJ
| url = https://www.ampl.com/REFS/hooking2.pdf
}} but then it has been adopted by other systems such as FortSP for interacting with external solvers.
The sol format is low-level and is designed for compactness not for readability. It has both binary and textual representation.
Many solvers such as CPLEX and MOSEK can produce files in this format either directly or through special driver programs.
The AMPL Solver Library (ASL) which allows among other things to read and write the sol files is open-source. It is used in many solvers to implement AMPL connection.
AMPL/MP Library{{Citation |title=AMPL/MP |url=https://github.com/ampl/mp |access-date=2023-10-24 |publisher=AMPL}} contains an NL writer and SOL reader.
See also
- nl (format) – a file format for presenting mathematical programming problems
References
{{Reflist}}
{{Mathematical optimization software}}
{{DEFAULTSORT:Sol (Format)}}