Originally posted by: felycite28
Hello everyone ,
I am coding my heuristic algorithm on python . I got confused a bit with changing the variable for objective function. Basically what I am trying to do is . I have an objective function value already and trying to do
def (objective value)
do task a
calculate objcetive function again lets say new value will be newobj
if newobj<objective value
do task a
else :
do not do anything
I should change the objective function at each iteration by decreasing it and compare it with the previous value of objective value . As long as obj.value decreases , I should do task a basically.
I tried to change the variables but did not work somehow;
Thank you so much for any help in advance
#DecisionOptimization#MathematicalProgramming-General