Thanks Paras.
Yes I did. That is my first troubleshoot.
I don't understand why its working in local docker not in server. I have checked the memory, CPU cores and python libraries in both machine. I couldn't find the difference.
Is there any hardware specification related to this issue? if its there means, how can I find ?
Immediate help will be appreciated. I have been struggling for a week.
Please check the below log which is using 'second-order" derivative.
Forming constraint system for linear solver.
Optimization terminated successfully.
Current function value: -1263783.783784
Iterations: 18
Making constraint system for optimizer.
check derivatives for NaN/inf
List of user-set options:
Name Value used
derivative_test = second-order yes
print_user_options = yes yes
******************************************************************************
This program contains Ipopt, a library for large-scale nonlinear optimization.
Ipopt is released as open source code under the Eclipse Public License (EPL).
For more information visit http://projects.coin-or.org/Ipopt
******************************************************************************
This is Ipopt version 3.12.4, running with linear solver mumps.
NOTE: Other linear solvers might be more efficient (see Ipopt documentation).
Starting derivative checker for first derivatives.
Starting derivative checker for second derivatives.
No errors detected by derivative checker.
Number of nonzeros in equality constraint Jacobian...: 0
Number of nonzeros in inequality constraint Jacobian.: 66
Number of nonzeros in Lagrangian Hessian.............: 33
Total number of variables............................: 33
variables with only lower bounds: 0
variables with lower and upper bounds: 33
variables with only upper bounds: 0
Total number of equality constraints.................: 0
Total number of inequality constraints...............: 34
inequality constraints with only lower bounds: 0
inequality constraints with lower and upper bounds: 34
inequality constraints with only upper bounds: 0
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
0 -2.2187422e+01 0.00e+00 1.57e-06 -1.0 0.00e+00 - 0.00e+00 0.00e+00 0
1 -4.4859492e+01 0.00e+00 5.61e+00 -1.0 2.23e+00 - 1.33e-01 1.00e+00f 1
2 -5.7370545e+01 0.00e+00 2.74e-02 -1.0 2.57e+00 - 9.79e-01 1.00e+00f 1
3 -1.9328700e+02 0.00e+00 6.47e-01 -1.0 1.23e+02 - 4.09e-02 1.00e+00f 1
4 -2.5722470e+02 0.00e+00 5.06e-04 -1.0 1.28e+02 - 9.81e-01 1.00e+00f 1
5 -1.2171548e+03 0.00e+00 1.17e-02 -1.0 6.47e+03 - 3.89e-02 1.00e+00f 1
6 -1.7674873e+03 0.00e+00 8.84e-06 -1.0 6.54e+03 - 9.82e-01 1.00e+00f 1
7 -1.0334649e+04 0.00e+00 1.79e-04 -1.0 2.55e+05 - 5.09e-02 1.00e+00f 1
8 -1.3990191e+04 0.00e+00 8.31e-07 -1.0 1.77e+05 - 9.90e-01 1.00e+00f 1
9 -2.3893696e+04 0.00e+00 6.28e-07 -1.0 7.81e+05 - 4.90e-01 1.00e+00f 1
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
10 -2.3429114e+04 0.00e+00 4.86e-09 -1.0 3.12e+04 - 9.93e-01 1.00e+00f 1
11 -2.3429187e+04 0.00e+00 1.53e-16 -1.7 9.88e+01 - 1.00e+00 1.00e+00h 1
12 -2.3431034e+04 0.00e+00 1.40e-17 -3.8 2.82e+01 - 1.00e+00 1.00e+00h 1
13 -2.3674418e+04 0.00e+00 5.74e-08 -5.7 3.88e+03 - 9.58e-01 1.00e+00h 1
14 -2.7007527e+04 0.00e+00 1.38e-08 -8.6 5.91e+04 - 8.12e-01 9.90e-01f 1
15 -2.9146468e+04 0.00e+00 4.80e-09 -8.6 6.12e+04 - 6.56e-01 1.00e+00f 1
16 -2.9962451e+04 0.00e+00 1.37e-09 -8.6 2.57e+04 - 7.15e-01 1.00e+00f 1
17 -3.0164781e+04 0.00e+00 3.30e-10 -8.6 1.32e+04 - 7.59e-01 1.00e+00h 1
18 -3.0200785e+04 0.00e+00 8.27e-11 -8.6 6.30e+03 - 7.49e-01 1.00e+00h 1
19 -3.0207674e+04 0.00e+00 2.47e-12 -8.6 2.53e+03 - 1.00e+00 1.00e+00h 1
In iteration 19, 1 Slack too small, adjusting variable bound
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
20 -3.0213890e+04 0.00e+00 2.70e-12 -12.9 1.58e+03 - 4.73e-01 9.94e-01f 1
21 -nan 0.00e+00 1.07e-13 -12.9 4.59e+02 - 9.67e-01 9.95e-01h 1
WARNING: Problem in step computation; switching to emergency mode.
Restoration phase is called at point that is almost feasible,
with constraint violation 0.000000e+00. Abort.
Number of Iterations....: 21
(scaled) (unscaled)
Objective...............: -nan -nan
Dual infeasibility......: 1.0671229803429667e-13 1.0671229803429666e-05
Constraint violation....: 0.0000000000000000e+00 0.0000000000000000e+00
Complementarity.........: 5.0894571745858957e-10 5.0894571745858957e-02
Overall NLP error.......: 5.0894571745858957e-10 5.0894571745858957e-02
Number of objective function evaluations = 22
Number of objective gradient evaluations = 22
Number of equality constraint evaluations = 0
Number of inequality constraint evaluations = 22
Number of equality constraint Jacobian evaluations = 0
Number of inequality constraint Jacobian evaluations = 22
Number of Lagrangian Hessian evaluations = 22
Total CPU secs in IPOPT (w/o function evaluations) = 0.032
Total CPU secs in NLP function evaluations = 0.000
EXIT: Restoration Failed!
irrelevant_keys []
keys_to_ignore []
first_pass_spends {(5152,): 58497.163779327173, (5116,): 0.0, (5143,): 25864.105465434968, (5154,): 18350.519755692094, (5118,): 21782.197162133925, (5129,): 946.76139106706364, (5156,): 130067.56817085089, (5131,): 8410.0427112657162, (5158,): 35472.557118652163, (5121,): 70945.225211223107, (5148,): 10681.558729465383, (5123,): 62713.311945559057, (5150,): 112235.35462301216, (5161,): 14189.18915642108, (5125,): 2837.8376675429026, (5136,): 2364.8645180980207, (5138,): 9135.0943804430553, (5115,): 79317.656528686508, (5142,): 1965.4728434628942, (5153,): 117633.05536988769, (5117,): 6848.5409452111408, (5119,): 5314.7311784192461, (5130,): 3260.6642555865692, (5157,): 17213.447898561404, (5134,): 44723.307722005164, (5145,): 7094.5940937729611, (5147,): 118027.81749455762, (5122,): 3362.9311640433921, (5160,): 56756.75633403039, (5124,): 189189.13454155941, (5126,): 9783.9034442970078, (5137,): 14188.970578843124, (5139,): 4609.4586518808801}
initial_promote_keys [(5152,), (5143,), (5154,), (5156,), (5158,), (5121,), (5148,), (5150,), (5161,), (5136,), (5138,), (5142,), (5153,), (5157,), (5134,), (5145,), (5147,), (5160,), (5124,), (5137,), (5139,)]
knapsack_keys [(5118,), (5123,), (5130,), (5122,)]
knapsack_spend_keys [(5130,), (5123,), (5118,), (5122,)]
spend_for_knapsack 91119.1045273
included_tactics [0, 2, 3]
total_spend 69192.5346922
included_knapsack_keys [(5118,), (5130,), (5122,)]
max_spend 91119.1045273
knapsack_spend_dict {(5130,): 14988.447581081082, (5123,): 101449.98159694197, (5118,): 38616.681745171445, (5122,): 15587.405365897703}
demotion_keys [(5123,)]
final constraint_dict {(5130,): {'peg': None, 'bounds': (14988.447581081082, 59953.79032432433)}, (5123,): {'peg': None, 'bounds': (0, 0)}, (5118,): {'peg': None, 'bounds': (38616.681745171445, 154466.72698068578)}, (5122,): {'peg': None, 'bounds': (15587.405365897703, 236486.4864864865)}}
Making constraint system for optimizer.
check derivatives for NaN/inf
List of user-set options:
Name Value used
derivative_test = second-order yes
print_user_options = yes yes
This is Ipopt version 3.12.4, running with linear solver mumps.
NOTE: Other linear solvers might be more efficient (see Ipopt documentation).
Starting derivative checker for first derivatives.
Starting derivative checker for second derivatives.
No errors detected by derivative checker.
Number of nonzeros in equality constraint Jacobian...: 1
Number of nonzeros in inequality constraint Jacobian.: 66
Number of nonzeros in Lagrangian Hessian.............: 33
Total number of variables............................: 33
variables with only lower bounds: 0
variables with lower and upper bounds: 33
variables with only upper bounds: 0
Total number of equality constraints.................: 1
Total number of inequality constraints...............: 34
inequality constraints with only lower bounds: 0
inequality constraints with lower and upper bounds: 34
inequality constraints with only upper bounds: 0
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
0 -2.2187422e+01 3.97e+04 1.57e-06 -1.0 0.00e+00 - 0.00e+00 0.00e+00 0
1 -2.4449351e+01 3.97e+04 1.54e+00 -1.0 4.01e+04 - 6.30e-03 9.80e-03h 1
2 -2.3133309e+01 3.97e+04 1.95e+00 -1.0 3.97e+04 - 2.33e-06 9.90e-05h 1
3 -2.6047654e+01 3.97e+04 2.05e+00 -1.0 1.82e+05 - 8.64e-07 1.01e-06f 2
4 -3.5209622e+01 3.97e+04 2.75e+00 -1.0 2.74e+05 - 9.68e-07 3.94e-06f 2
5 -5.4709651e+01 3.97e+04 4.07e+00 -1.0 3.10e+05 - 4.84e-06 1.81e-05h 1
6 -9.5900584e+01 3.97e+04 5.24e+00 -1.0 3.31e+05 - 2.27e-05 9.51e-05f 1
7 -5.7803492e+02 3.94e+04 2.13e+01 -1.0 3.33e+05 - 1.18e-04 7.75e-03f 1
8 -9.8166833e+03 3.94e+02 9.99e+00 -1.0 3.31e+05 - 7.79e-03 9.90e-01f 1
9 -9.8851832e+03 3.83e+00 2.01e-01 -1.0 3.31e+03 - 9.90e-01 9.90e-01h 1
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
10 -9.9470365e+03 0.00e+00 inf -1.0 1.55e+02 - 9.87e-01 1.00e+00f 1
11 -nan 0.00e+00 nan -1.0 nan - 1.00e+00 1.00e+00 0
WARNING: Problem in step computation; switching to emergency mode.
12r -nan 0.00e+00 nan nan 0.00e+00 20.0 0.00e+00 0.00e+00R 1
WARNING: Problem in step computation; switching to emergency mode.
13r -nan 0.00e+00 nan nan 0.00e+00 20.0 0.00e+00 0.00e+00R 1
WARNING: Problem in step computation; switching to emergency mode.
14r -nan 0.00e+00 nan nan 0.00e+00 - 0.00e+00 0.00e+00R 1
WARNING: Problem in step computation; switching to emergency mode.
15r -nan 0.00e+00 nan nan 0.00e+00 - 0.00e+00 0.00e+00R 1
Regards,
Parthipan.E