Reference
Contents
Index
NLPModelsKnitro.KnitroSolver — Type
KnitroSolver(::Val{Bool}, nlp; kwargs...,)Returns a KnitroSolver structure to solve the problem nlp with knitro!.
Knitro does not accept least-squares problems with constraints other than bounds. If an NLSModel has constraints other than bounds, we convert it to a FeasibilityFormNLS. The first argument is Val(false) if the problem has been converted, and Val(true) otherwise.
For the possible kwargs, we refer to knitro.
NLPModelsKnitro.knitro — Function
output = knitro(nlp; kwargs...)Solves the NLPModel problem nlp using KNITRO.
For advanced usage, first define a KnitroSolver to preallocate the memory used in the algorithm, and then call solve!:
solver = KnitroSolver(nlp)
solve!(solver, nlp; kwargs...)
solve!(solver, nlp, stats; kwargs...)Optional keyword arguments
x0: a vector of sizenlp.meta.nvarto specify an initial primal guessy0: a vector of sizenlp.meta.nconto specify an initial dual guess for the general constraintsz0: a vector of sizenlp.meta.nvarto specify initial multipliers for the bound constraintscallback: a user-definedFunctioncalled by KNITRO at each iteration.
For more information on callbacks, see https://www.artelys.com/docs/knitro/2userGuide/callbacks.html and the docstring of `KNITRO.KNsetnewptcallback`.
All other keyword arguments will be passed to KNITRO as an option. See https://www.artelys.com/docs/knitro/3_referenceManual/userOptions.html for the list of options accepted.