I tried using
option solution_precision 16
option minos_options 'scale=no feasibility_tolerance=1e-15';
I have made sure that the coefficients on the constraints themselves have a
precision of 16 digits as well.
but I am still getting solutions ( in rare cases ) where the solution that
ampl gives violates the constraints by as much as 1e-5.
Help would be appreciated. Thanks!
--
View this message in context: http://www.nabble.com/solution-precision-tp24541614p24541614.html
Sent from the AMPL mailing list archive at Nabble.com.
Apparently the MINOS directive feasibility_tolerance applies to variable
bounds and linear constraints. For nonlinear constraints the corresponding
directive is row_tolerance: "This directive specifies how accurately the
nonlinear constraints should be satisfied at an optimal solution, relative
to the magnitudes of the variables." The default value is 1e-6, but since
it is a relative tolerance the absolute violation might be greater. A
tolerance of 1e-15 might be unrealistically tight, but you can experiment
with different settings.
Bob Fourer
4...@ampl.com
On the other hand, does the precision/quality of the solution depend on the
value of solve_result_num? The ampl documentation says that a value of 0-99
means an optimal solution is found; but does a larger solve_result_num (say
99) mean that a somewhat "inferior" solution was found?
--
View this message in context: http://www.nabble.com/solution-precision-tp24541614p24619583.html
Value Message
0 optimal solution
1 primal has unbounded optimal face
2 optimal integer solution
3 optimal integer solution within mipgap or absmipgap
4 primal optimal (no dual solution available)
100 best solution found, primal-dual feasible
102 optimal (non-)integer solution
103 optimal (non-)integer solution within mipgap or absmipgap
and so forth. Values not listed are not used by CPLEX and have no meaning.
For other solvers the values used and their meanings may be completely
different. In general it is not the case that a higher value of
solve_result_num between 0 and 99 corresponds to a poorer solution.
Bob Fourer
4...@ampl.com
> -----Original Message-----
> From: am...@googlegroups.com [mailto:am...@googlegroups.com]
> On Behalf Of bydesign [saman...@gmail.com]