pub enum SolveStatus {
Show 20 variants
SolveSucceeded,
SolvedToAcceptableLevel,
FeasiblePointFound,
InfeasibleProblemDetected,
SearchDirectionBecomesTooSmall,
DivergingIterates,
UserRequestedStop,
MaximumIterationsExceeded,
MaximumCpuTimeExceeded,
RestorationFailed,
ErrorInStepComputation,
InvalidOption,
NotEnoughDegreesOfFreedom,
InvalidProblemDefinition,
InvalidNumberDetected,
UnrecoverableException,
NonIpoptExceptionThrown,
InsufficientMemory,
InternalError,
UnknownError,
}Expand description
Program return status.
Variants§
SolveSucceeded
Console Message: EXIT: Optimal Solution Found.
This message indicates that IPOPT found a (locally) optimal point within the desired tolerances.
SolvedToAcceptableLevel
Console Message: EXIT: Solved To Acceptable Level.
This indicates that the algorithm did not converge to the “desired” tolerances, but that
it was able to obtain a point satisfying the “acceptable” tolerance level as specified by
the acceptable_*
options. This
may happen if the desired tolerances are too small for the current problem.
FeasiblePointFound
Console Message: EXIT: Feasible point for square problem found.
This message is printed if the problem is “square” (i.e., it has as many equality constraints as free variables) and IPOPT found a feasible point.
InfeasibleProblemDetected
Console Message: EXIT: Converged to a point of local infeasibility. Problem may be infeasible.
The restoration phase converged to a point that is a minimizer for the constraint violation (in the l1-norm), but is not feasible for the original problem. This indicates that the problem may be infeasible (or at least that the algorithm is stuck at a locally infeasible point). The returned point (the minimizer of the constraint violation) might help you to find which constraint is causing the problem. If you believe that the NLP is feasible, it might help to start the optimization from a different point.
SearchDirectionBecomesTooSmall
Console Message: EXIT: Search Direction is becoming Too Small.
This indicates that IPOPT is calculating very small step sizes and is making very little progress. This could happen if the problem has been solved to the best numerical accuracy possible given the current scaling.
DivergingIterates
Console Message: EXIT: Iterates diverging; problem might be unbounded.
This message is printed if the max-norm of the iterates becomes larger than the value of
the option diverging_iterates_tol
.
This can happen if the problem is unbounded below and the iterates are diverging.
UserRequestedStop
Console Message: EXIT: Stopping optimization at current point as requested by user.
This message is printed if the user call-back method intermediate_callback returned false (see Section 3.3.4).
MaximumIterationsExceeded
Console Message: EXIT: Maximum Number of Iterations Exceeded.
This indicates that IPOPT has exceeded the maximum number of iterations as specified by the
option max_iter.
MaximumCpuTimeExceeded
Console Message: EXIT: Maximum CPU time exceeded.
This indicates that IPOPT has exceeded the maximum number of CPU seconds as specified by
the option
max_cpu_time.
RestorationFailed
Console Message: EXIT: Restoration Failed!
This indicates that the restoration phase failed to find a feasible point that was acceptable to the filter line search for the original problem. This could happen if the problem is highly degenerate, does not satisfy the constraint qualification, or if your NLP code provides incorrect derivative information.
ErrorInStepComputation
Console Output: EXIT: Error in step computation (regularization becomes too large?)!
This messages is printed if IPOPT is unable to compute a search direction, despite several
attempts to modify the iteration matrix. Usually, the value of the regularization parameter
then becomes too large. One situation where this can happen is when values in the Hessian
are invalid (NaN or Inf). You can check whether this is true by using the
check_derivatives_for_naninf
option.
InvalidOption
Console Message: (details about the particular error will be output to the console)
This indicates that there was some problem specifying the options. See the specific message for details.
NotEnoughDegreesOfFreedom
Console Message: EXIT: Problem has too few degrees of freedom.
This indicates that your problem, as specified, has too few degrees of freedom. This can
happen if you have too many equality constraints, or if you fix too many variables (IPOPT
removes fixed variables by default, see also the fixed_variable_treatment
option).
InvalidProblemDefinition
Console Message: (no console message, this is a return code for the C and Fortran interfaces only.)
This indicates that there was an exception of some sort when building the IpoptProblem structure in the C or Fortran interface. Likely there is an error in your model or the main routine.
InvalidNumberDetected
An invalid number like NaN was detected.
UnrecoverableException
Console Message: (details about the particular error will be output to the console)
This indicates that IPOPT has thrown an exception that does not have an internal return code. See the specific message for details.
NonIpoptExceptionThrown
Console Message: Unknown Exception caught in Ipopt
An unknown exception was caught in IPOPT. This exception could have originated from your model or any linked in third party code.
InsufficientMemory
Console Message: EXIT: Not enough memory.
An error occurred while trying to allocate memory. The problem may be too large for your current memory and swap configuration.
InternalError
Console: EXIT: INTERNAL ERROR: Unknown SolverReturn value - Notify IPOPT Authors.
An unknown internal error has occurred. Please notify the authors of IPOPT via the mailing list.
UnknownError
Unclassified error.
Trait Implementations§
Source§impl Clone for SolveStatus
impl Clone for SolveStatus
Source§fn clone(&self) -> SolveStatus
fn clone(&self) -> SolveStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SolveStatus
impl Debug for SolveStatus
Source§impl Display for SolveStatus
impl Display for SolveStatus
Source§impl PartialEq for SolveStatus
impl PartialEq for SolveStatus
impl Copy for SolveStatus
impl StructuralPartialEq for SolveStatus
Auto Trait Implementations§
impl Freeze for SolveStatus
impl RefUnwindSafe for SolveStatus
impl Send for SolveStatus
impl Sync for SolveStatus
impl Unpin for SolveStatus
impl UnwindSafe for SolveStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.