Dear Richard,
im very sorry for twice sending you code that doesnt work. I had always just copy pasted the code into the comand promt and overlooked the error you report since this way ampl continues despite errors. Anyway, since the dual value whose assignment faild is always zero, this error didnt influence the results further down the code.
I corrected the problem and checked runing the model file and i hope now it should work. Also i wasnt aware of the KNITRO_OPTIONS compatability problem (i use windows). I hope I finally dot it all right and you can now reproduce what I observe.
Thanks for your patience,
Dominik
This is what i get displayed: First the check if all equations hold (yes), then the solver run.
Nonsquare complementarity system:
1450 complementarities including 1015 equations
1739 variables
max{iE in NE, iEY in NEY} abs(dev1[iE,iEY]) = 1.21037e-12
max{iE in NE, iEY in NEY} abs(dev2[iE,iEY]) = 6.73062e-12
max{iE in NE, iEY in NEY} abs(dev3[iE,iEY]) = 3.34967e-10
max{iE in NE, iEY in NEY} abs(dev4[iE,iEY]) = 3.34967e-10
max{iE in NE, iEY in NEY} abs(dev5[iE,iEY]) = 3.52769e-10
max{iE in NE, iEY in NEY} abs(dev6[iE,iEY]) = 2.22182e-11
max{iE in NE, iEY in NEY} min(exc11[iE,iEY],exc12[iE,iEY]) = 3.25706e-11
max{iE in NE, iEY in NEY} min(exc21[iE,iEY],exc22[iE,iEY]) = 1.25842e-10
max{iE in NE, iEY in NEY} min(exc31[iE,iEY],exc32[iE,iEY]) = 9.9504e-11
min{iE in NE, iEY in NEY} exc5[iE,iEY] = 0.168881
min{iE in NE, iEY in NEY} l1[iE,iEY] = 1.71286e-19
min{iE in NE, iEY in NEY} l2[iE,iEY] = 3.0967e-17
min{iE in NE, iEY in NEY} l5[iE,iEY] = 1.31304e-20
KNITRO 9.0.0: opttol= 1e-7
feastol=1e-6
feastol_abs=1e-6
xtol=0
outlev=4
bar_initpt=2
scale=0
honorbnds=0
alg=3
KNITRO: Number of threads = 1
======================================
Commercial Ziena License
KNITRO 9.0.0
Ziena Optimization
======================================
KNITRO presolve eliminated 0 variables and 0 constraints.
algorithm: 3
bar_initpt: 2
feastol_abs: 1e-006
hessian_no_f: 1
honorbnds: 0
opttol: 1e-007
outlev: 4
par_concurrent_evals: 0
scale: 0
xtol: 0
The problem is identified as an MPEC.
KNITRO changing linsolver from AUTO to 4.
Problem Characteristics
-----------------------
Objective goal: Maximize
Number of variables: 2016
bounded below: 1152
bounded above: 144
bounded below and above: 720
fixed: 0
free: 0
Number of constraints: 2736
linear equalities: 576
nonlinear equalities: 1008
linear inequalities: 0
nonlinear inequalities: 1152
range: 0
Number of complementarities: 432
Number of nonzeros in Jacobian: 11088
Number of nonzeros in Hessian: 3600
Iter fCount Objective FeasError OptError ||Step|| CGits
-------- -------- -------------- ---------- ---------- ---------- -------
0 1 0.000000e+000 1.851e+000
1 4 0.000000e+000 1.000e+000 1.363e+001 9.805e+000 3
2 7 0.000000e+000 1.013e+000 9.418e+001 4.600e+000 2
3 8 0.000000e+000 3.514e+000 1.368e+002 4.667e+000 1
4 9 0.000000e+000 1.193e+000 4.355e+002 4.304e+000 1
5 10 0.000000e+000 9.950e-001 3.536e+003 4.208e+000 1
6 11 0.000000e+000 6.843e-001 2.942e+004 4.787e+000 1
7 12 0.000000e+000 3.986e-001 2.524e+005 4.378e+000 1
8 13 0.000000e+000 3.619e-001 9.229e+005 4.526e+000 4
9 14 0.000000e+000 3.484e-001 1.121e+006 3.158e+000 2
10 15 0.000000e+000 1.380e+000 6.585e+005 5.925e+000 1
11 16 0.000000e+000 6.770e-001 5.294e+006 4.898e+000 1
12 17 0.000000e+000 3.411e-001 1.397e+005 8.891e-001 1
13 18 0.000000e+000 2.106e-001 9.974e+005 5.607e-001 0
14 23 0.000000e+000 2.876e-001 3.928e+005 4.141e-001 3
15 26 0.000000e+000 2.259e-001 1.770e+005 3.102e-001 2
16 27 0.000000e+000 1.429e-001 9.278e+005 4.949e-001 1
17 34 0.000000e+000 1.180e-001 4.485e+005 1.237e-001 4
18 37 0.000000e+000 1.326e-001 7.812e+005 6.186e-002 2
19 42 0.000000e+000 1.209e-001 3.733e+005 3.093e-002 3
20 43 0.000000e+000 1.218e-001 1.824e+004 3.093e-002 1
21 44 0.000000e+000 1.227e-001 2.297e+005 1.620e-001 1
22 45 0.000000e+000 1.486e-002 1.763e+005 2.402e-001 1
23 46 0.000000e+000 4.433e-003 1.513e-009 2.886e-002 0
24 47 0.000000e+000 4.433e-003 9.313e-010 6.163e-005 1
25 48 0.000000e+000 4.433e-003 6.985e-010 5.099e-010 1
EXIT: Convergence to an infeasible point. Problem appears to be locally
infeasible. If problem is believed to be feasible, try multistart
to search for feasible points.
Final Statistics
----------------
Final objective value = 0.00000000000000e+000
Final feasibility error (abs / rel) = 4.43e-003 / 2.40e-003
Final optimality error (abs / rel) = 3.73e-009 / 3.73e-009
# of iterations = 25
# of CG iterations = 39
# of function evaluations = 50
# of gradient evaluations = 26
# of Hessian evaluations = 37
Total program time (secs) = 4.705 ( 4.688 CPU time)
Time spent in evaluations (secs) = 3.068
===============================================================================
ampl: