https://github.com/juliasmoothoptimizers/solverparameters.jl
https://github.com/juliasmoothoptimizers/solverparameters.jl
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/juliasmoothoptimizers/solverparameters.jl
- Owner: JuliaSmoothOptimizers
- License: mpl-2.0
- Created: 2022-01-19T22:32:02.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-05-24T13:31:54.000Z (about 1 month ago)
- Last Synced: 2025-06-06T18:12:23.446Z (18 days ago)
- Language: Julia
- Size: 1.1 MB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Citation: CITATION.cff
Awesome Lists containing this project
README
# SolverParameters
[](https://JuliaSmoothOptimizers.github.io/SolverParameters.jl/stable)
[](https://JuliaSmoothOptimizers.github.io/SolverParameters.jl/dev)
[](https://github.com/JuliaSmoothOptimizers/SolverParameters.jl/actions)
[](https://cirrus-ci.com/github/JuliaSmoothOptimizers/SolverParameters.jl)
[](https://github.com/JuliaSmoothOptimizers/SolverParameters.jl/actions/workflows/Docs.yml?query=branch%3Amain)
[](https://codecov.io/gh/JuliaSmoothOptimizers/SolverParameters.jl)Tools to manage set of parameters.
Our primary target is to provide an abstract interface to handle parameters in solvers.## How to Cite
If you use SolverParameters.jl in your work, please cite using the format given in [CITATION.cff](https://github.com/JuliaSmoothOptimizers/SolverParameters.jl/blob/main/CITATION.cff).
## Installation
SolverParameters is a
![]()
Julia Language
package. To install SolverParameters,
please open
Julia's interactive session (known as REPL) and press ] key in the REPL to use the package mode, then type the following command```julia
pkg> add SolverParameters
```## Example
The main feature of this package is to define a Julia type to handle set of parameters.
The following example is a brief illustration showing how to define a new set of parameters.```julia
using SolverParametersstruct CatMockSolverParamSet{I, F} <: AbstractParameterSet
real_inf::Parameter{F, RealInterval{F}}
real::Parameter{String, CategoricalSet{String}}
int_r::Parameter{I, IntegerRange{I}}
endfunction CatMockSolverParamSet() # add a default constructor
CatMockSolverParamSet(
Parameter(Float64(42)),
Parameter("A", CategoricalSet(["A", "B", "C", "D"])),
Parameter(Int32(5), IntegerRange(Int32(5), Int32(20))),
)
endparam_set = CatMockSolverParamSet()
```It is then possible to use all the API defined in this package and described in the documentation on `param_set`.
## Bug reports and discussions
If you think you found a bug, feel free to open an [issue](https://github.com/JuliaSmoothOptimizers/SolverParameters.jl/issues).
Focused suggestions and requests can also be opened as issues. Before opening a pull request, start an issue or a discussion on the topic, please.If you want to ask a question not suited for a bug report, feel free to start a discussion [here](https://github.com/JuliaSmoothOptimizers/Organization/discussions). This forum is for general discussion about this repository and the [JuliaSmoothOptimizers](https://github.com/JuliaSmoothOptimizers) organization, so questions about any of our packages are welcome.