Here is all the output of the solver.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Path 4.7.01 (Thu Aug 2 10:31:46 2007)
Written by Todd Munson, Steven Dirkse, and Michael Ferris
INITIAL POINT STATISTICS
Maximum of X. . . . . . . . . . 0.0000e+00 var: (_svar[1])
Maximum of F. . . . . . . . . . 1.0000e+12 eqn: (_scon[94])
Maximum of Grad F . . . . . . . 1.0000e+00 eqn: (_scon[120])
var: (_svar[1])
INITIAL JACOBIAN NORM STATISTICS
Maximum Row Norm. . . . . . . . 6.0000e+00 eqn: (_scon[106])
Minimum Row Norm. . . . . . . . 1.0000e+00 eqn: (_scon[1])
Maximum Column Norm . . . . . . 5.0000e+00 var: (_svar[1])
Minimum Column Norm . . . . . . 1.0000e+00 var: (_svar[31])
Crash Log
major func diff size residual step prox (label)
0 0 4.2435e+12 0.0e+00 (_scon[94])
pn_search terminated: no progress.
Major Iteration Log
major minor func grad residual step type prox inorm (label)
0 0 13 1 4.2435e+12 I 1.0e+01 1.0e+12 (_scon[94])
1 39 14 2 4.6311e+12 1.0e+00 SO 4.0e+00 1.1e+12 (_scon[96])
2 46 15 3 1.5057e+13 1.0e+00 RO 1.6e+00 3.4e+12 (_scon[24])
3 1 16 4 1.5057e+13 1.0e+00 RO 6.4e-01 3.4e+12 (_scon[24])
4 26 17 5 1.5191e+13 1.0e+00 RO 2.6e-01 3.2e+12 (_scon[117])
5 35 18 6 1.5191e+13 1.0e+00 CO 1.0e-01 3.2e+12 (_scon[117])
6 3 19 7 1.5191e+13 1.0e+00 RO 4.1e-02 3.2e+12 (_scon[117])
7 2 25 8 3.5928e+12 2.6e-01 RG 4.0e+00 8.2e+11 (_scon[104])
8 30 26 9 3.5551e+12 1.0e+00 RO 1.6e+00 8.1e+11 (_scon[104])
9 183 27 10 3.5523e+12 1.0e+00 CO 6.4e-01 8.1e+11 (_scon[104])
10 133 28 11 3.5457e+12 1.0e+00 CO 2.6e-01 8.1e+11 (_scon[104])
11 4 29 12 3.5450e+12 1.0e+00 RO 1.0e-01 8.1e+11 (_scon[104])
12 5 43 13 3.7393e+12 1.2e-06 RB 4.1e-02 8.1e+11 (_scon[104])
13 44 48 14 3.0558e+12 4.1e-01 RG 1.0e-01 6.2e+11 (_scon[29])
14 20 49 15 3.0224e+12 1.0e+00 SO 1.0e+01 5.9e+11 (_scon[29])
15 13 50 16 3.1479e+12 1.0e+00 RO 4.0e+00 6.4e+11 (_scon[102])
16 5 51 17 3.1770e+12 1.0e+00 RO 1.6e+00 6.5e+11 (_scon[96])
17 6 52 18 2.8418e+12 1.0e+00 RO 6.4e-01 6.0e+11 (_scon[102])
18 26 53 19 2.2508e+12 1.0e+00 RO 2.6e-01 4.9e+11 (_scon[102])
19 10 54 20 8.9054e+11 1.0e+00 RO 1.0e-01 2.0e+11 (_scon[101])
20 2 61 21 6.7533e+11 1.7e-01 RG 4.1e-02 1.8e+11 (_scon[123])
21 20 62 22 1.9355e+12 1.0e+00 RM 1.6e-02 5.5e+11 (_scon[80])
22 3 67 23 3.1198e+12 3.3e-01 RB 6.6e-03 6.7e+11 (_scon[95])
23 1 68 24 3.1198e+12 1.0e+00 RO 2.6e-03 6.7e+11 (_scon[95])
24 6 78 25 3.1451e+12 9.2e-03 RB 1.0e-03 6.8e+11 (_scon[95])
25 2 88 26 2.4159e+12 9.2e-03 RB 1.0e+01 6.8e+11 (_scon[95])
26 7 95 27 5.4046e+11 1.7e-01 RG 4.1e-02 1.3e+11 (_scon[101])
27 31 96 28 1.2864e+12 1.0e+00 RM 1.6e-02 6.2e+11 (_scon[79])
28 1 97 29 1.2864e+12 1.0e+00 RO 6.6e-03 6.2e+11 (_scon[79])
29 1 98 30 1.2864e+12 1.0e+00 RO 2.6e-03 6.2e+11 (_scon[79])
30 6 99 31 7.5143e+12 1.0e+00 RL 1.0e+01 3.2e+12 (_scon[15])
31 12 100 32 7.3766e+12 1.0e+00 RD 4.0e+00 3.2e+12 (_scon[15])
32 3 107 33 4.4856e+11 1.7e-01 RG 4.1e-02 1.0e+11 (_scon[123])
33 30 108 34 1.9085e+12 1.0e+00 RM 1.6e-02 6.2e+11 (_scon[80])
34 1 109 35 1.9085e+12 1.0e+00 RO 6.6e-03 6.2e+11 (_scon[80])
35 2 118 36 1.6887e+12 2.3e-02 RB 1.0e+01 6.1e+11 (_scon[80])
36 2 119 37 1.6937e+12 1.0e+00 RO 4.0e+00 6.1e+11 (_scon[80])
37 4 120 38 1.7585e+12 1.0e+00 RO 1.6e+00 5.7e+11 (_scon[79])
Restart Log
proximal_perturbation 0
crash_method none
crash_perturb yes
nms_initial_reference_factor 2
lemke_search_type slack
proximal_perturbation 1.0000e-01
Major Iteration Log
major minor func grad residual step type prox inorm (label)
37 0 127 39 4.2435e+12 R 1.0e-01 1.0e+12 (_scon[94])
Basis not invertible at best point.
38 51 128 40 4.2435e+12 1.0e+00 TO 1.0e+01 1.0e+12 (_scon[94])
39 1 129 41 4.6311e+12 1.0e+00 SM 4.0e+00 1.1e+12 (_scon[96])
40 18 130 42 4.6430e+12 1.0e+00 RM 1.6e+00 1.1e+12 (_scon[94])
41 38 131 43 4.5499e+12 1.0e+00 RM 6.4e-01 1.1e+12 (_scon[95])
42 30 132 44 4.5416e+12 1.0e+00 RM 2.6e-01 1.1e+12 (_scon[95])
43 27 133 45 4.5520e+12 1.0e+00 RM 1.0e-01 1.1e+12 (_scon[95])
44 4 134 46 4.7217e+12 1.0e+00 RM 1.0e+01 1.1e+12 (_scon[95])
45 2 140 47 3.5928e+12 2.6e-01 RG 1.0e+01 8.2e+11 (_scon[104])
46 31 141 48 3.5886e+12 1.0e+00 RM 4.0e+00 8.2e+11 (_scon[104])
47 16 142 49 4.4321e+12 1.0e+00 RM 1.6e+00 1.4e+12 (_scon[54])
48 7 143 50 4.2535e+12 1.0e+00 RM 6.4e-01 1.4e+12 (_scon[54])
49 7 144 51 4.2029e+12 1.0e+00 RM 2.6e-01 1.3e+12 (_scon[54])
50 3 158 52 4.2192e+12 1.2e-06 RB 1.0e-01 1.3e+12 (_scon[54])
51 11 163 53 3.1195e+12 4.1e-01 RG 4.0e+00 6.5e+11 (_scon[73])
52 31 164 54 4.4628e+12 1.0e+00 RM 1.6e+00 1.0e+12 (_scon[96])
53 6 165 55 4.4020e+12 1.0e+00 RM 6.4e-01 1.0e+12 (_scon[96])
54 2 166 56 4.4038e+12 1.0e+00 RM 2.6e-01 1.0e+12 (_scon[96])
55 6 179 57 4.4016e+12 4.4e-05 RB 1.0e-01 1.0e+12 (_scon[96])
56 2 180 58 4.4016e+12 1.0e+00 RO 4.1e-02 1.0e+12 (_scon[96])
57 3 187 59 2.3724e+12 1.7e-01 RG 4.0e+00 6.6e+11 (_scon[118])
58 26 188 60 4.1742e+12 1.0e+00 SM 1.6e+00 1.2e+12 (_scon[54])
59 1 189 61 4.1742e+12 1.0e+00 RO 6.4e-01 1.2e+12 (_scon[54])
60 4 190 62 2.1508e+12 1.0e+00 RM 2.6e-01 5.6e+11 (_scon[54])
61 9 191 63 2.6520e+11 1.0e+00 RM 1.0e-01 7.5e+10 (_scon[25])
62 9 192 64 2.6481e+11 1.0e+00 RM 4.1e-02 7.5e+10 (_scon[25])
63 11 193 65 1.4756e+11 1.0e+00 RM 1.6e-02 4.5e+10 (_scon[25])
64 6 199 66 1.3032e+11 2.6e-01 RG 1.0e+01 3.2e+10 (_scon[23])
65 25 200 67 1.0570e+11 1.0e+00 SM 4.0e+00 3.1e+10 (_scon[138])
66 16 201 68 3.5330e+11 1.0e+00 SM 1.6e+00 8.5e+10 (_scon[140])
67 19 202 69 3.4392e+11 1.0e+00 CM 6.4e-01 8.3e+10 (_scon[140])
68 9 203 70 3.2580e+11 1.0e+00 RM 2.6e-01 7.9e+10 (_scon[140])
69 3 204 71 3.2580e+11 1.0e+00 RO 1.0e-01 7.9e+10 (_scon[140])
70 5 205 72 3.2580e+11 1.0e+00 RO 4.1e-02 7.9e+10 (_scon[140])
71 4 206 73 3.2580e+11 1.0e+00 RO 1.6e-02 7.9e+10 (_scon[140])
72 4 213 74 6.8152e+10 1.7e-01 RG 4.0e+00 2.3e+10 (_scon[25])
73 26 214 75 1.1305e+11 1.0e+00 SM 1.6e+00 4.1e+10 (_scon[24])
74 12 215 76 1.1253e+11 1.0e+00 RM 6.4e-01 4.1e+10 (_scon[22])
75 8 216 77 1.1001e+11 1.0e+00 RM 2.6e-01 3.9e+10 (_scon[22])
76 13 217 78 1.1001e+11 1.0e+00 RO 1.0e-01 3.9e+10 (_scon[22])
77 3 218 79 1.1001e+11 1.0e+00 RO 4.1e-02 3.9e+10 (_scon[22])
78 13 219 80 1.1021e+11 1.0e+00 RM 1.6e-02 4.0e+10 (_scon[22])
Restart Log
proximal_perturbation 0
crash_method none
crash_perturb no
nms_initial_reference_factor 10
nms_memory_size 2
nms_mstep_frequency 1
lemke_search_type slack
Major Iteration Log
major minor func grad residual step type prox inorm (label)
78 0 227 81 4.2435e+12 R 0.0e+00 1.0e+12 (_scon[94])
79 58 228 82 4.2435e+12 1.0e+00 RM 0.0e+00 1.0e+12 (_scon[94])
80 8 229 83 4.2435e+12 1.0e+00 RM 0.0e+00 1.0e+12 (_scon[94])
81 67 234 84 2.5462e+12 3.3e-01 RB 0.0e+00 6.0e+11 (_scon[127])
82 18 235 85 2.6263e+12 1.0e+00 SM 1.0e+01 6.1e+11 (_scon[96])
83 8 251 86 8.9649e+10 1.0e+00 SG 0.0e+00 5.7e+10 (_scon[52])
84 50 252 87 8.9649e+10 1.0e+00 RM 0.0e+00 5.7e+10 (_scon[52])
85 47 253 88 1.2140e-03 1.0e+00 SM 0.0e+00 1.1e-03 (_scon[151])
86 1 254 89 1.1970e-14 1.0e+00 SM 0.0e+00 1.1e-14 (_scon[138])
FINAL STATISTICS
Inf-Norm of Complementarity . . 1.0658e-14 eqn: (_scon[138])
Inf-Norm of Normal Map. . . . . 1.0658e-14 eqn: (_scon[138])
Inf-Norm of Minimum Map . . . . 3.5527e-15 eqn: (_scon[24])
Inf-Norm of Fischer Function. . 1.0658e-14 eqn: (_scon[138])
Inf-Norm of Grad Fischer Fcn. . 1.1990e-14 eqn: (_scon[94])
Two-Norm of Grad Fischer Fcn. . 2.4099e-14
FINAL POINT STATISTICS
Maximum of X. . . . . . . . . . 1.0000e+12 var: (_svar[116])
Maximum of F. . . . . . . . . . 1.0000e+12 eqn: (_scon[31])
Maximum of Grad F . . . . . . . 1.0000e+00 eqn: (_scon[120])
var: (_svar[1])
** EXIT - solution found.
Major Iterations. . . . 86
Minor Iterations. . . . 2069
Restarts. . . . . . . . 2
Crash Iterations. . . . 0
Gradient Steps. . . . . 13
Function Evaluations. . 254
Gradient Evaluations. . 89
Basis Time. . . . . . . 0.031000
Total Time. . . . . . . 0.062000
Residual. . . . . . . . 1.196990e-14
Path 4.7.01: Solution found.
86 iterations (0 for crash); 2069 pivots.
254 function, 89 gradient evaluations.
Problem:
- Lower bound: -inf
Upper bound: inf
Number of objectives: 1
Number of constraints: 0
Number of variables: 171
Sense: unknown
Solver:
- Status: ok
Message: Path 4.7.01\x3a Solution found.; 86 iterations (0 for crash); 2069 pivots.; 254 function, 89 gradient evaluations.
Termination condition: optimal
Id: 0
Error rc: 0
Time: 0.12801289558410645
Solution:
- number of solutions: 0
number of solutions displayed: 0
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I tried to re-open and re-run the program for several times.
And I did find sometimes the second iteration works but with warnings as follows:
WARNING: Implicitly replacing the Component attribute bv (type=<class 'pyomo.core.base.var.SimpleVar'>) on block LRcontract[8] with a new Component (type=<class 'pyomo.core.base.var.SimpleVar'>).
This is usually indicative of a modelling error.
To avoid this warning, use block.del_component() and block.add_component().
Can you understand from these where went wrong in my programming?
Yours
Cecilia