I'm a person who is programming using Python recently.
We are optimizing using the 'Discovery of the Sun' function in Excel.
Among Python libraries, the nlopt library performs similar functions and is working with that library.
The following sites describe nlopt:
http://ab-initio.mit.edu/wiki/index.php/NLopt
There are several types of solution search algorithms in nlopt, the most similar algorithm to Excel.
As I know, I programmed using the function. (COBYLA)
To utilize functions from sources in Python
http://ab-initio.mit.edu/wiki/index.php/NLopt_Python_Reference
The function is being used by calling the function in url above.
What I'm curious about here is whether the shutdown tolerance is not working properly, and most of the input values work properly, but when you enter a certain value, you fall into a roundoff-limited state, and the program stops with an error.
(1/3 = Judging from a similar situation to 0.3333333)
I want to know how to prevent that error from appearing when programming using the library. (How to modify the library or how to use the shutdown tolerance to prevent the error from appearing...)
Please give me advice from other masters.
nlopt cobyla round-off-error round-off
http://ab-initio.mit.edu/wiki/index.php/NLopt_Python_Reference#Exceptions I think it's because of an exception called RoundoffLimited. Shouldn't we make an exception for the exception called Roundoff Limited?
The exception handling in Python is as follows.
try:
# Code with potential for error
exceptionException: #ErrorType
#Code to be processed in the event of an error
If you don't know how to handle exceptions, see This lecture .
© 2024 OneMinuteCode. All rights reserved.