Dear AMPL teams,
I am currently conducting an experiment that requires the use of the "Bootstrap Method" technique. Despite consulting the instruction manual and various online forums, I have not been able to find any information or methodology related to its application. I have attached some of the code that I have written, and I would greatly appreciate your assistance in guiding me and offering suggestions on this matter.

Thank you very much for your time and consideration.
Best regards,
Alan
Hi AMPL teams,
I am conducting an experiment that requires the technique of "Bootstrap Method." I have consulted the instruction manual and various online forums, but have not found any information or methodology related to its application. I have attached some of the code that I have written and would like to inquire where I can receive guidance or suggestions. Could you please advise me on this matter? Thank you very much.
Best Regards,
Alan
AMPL is a language and system for solving optimization problems. But did you define an optimization problem in hospital.mod? In hospital.run, you set "option solver cplex;", but you do not have a "solve" anywhere. The bootstrap method is "a statistical technique for estimating quantities about a population" so it's not clear how it would involve optimization.
In any case, you will need to correct "set S := {rand(1,n) | i in 1..726};" so that it is a proper statement in the AMPL language. Do you want S to be a set of 726 random values in the range 1..n? Then you can write
set S = setof {i in 1..726} Uniform(1,n);
You will need to put this before "for {b in 1..B}" however, so that set S is defined only once and not every time through the loop.
--
Robert Fourer
We're switching to a new, enhanced user forum.
Join it now at discuss.ampl.com.