On Nov 7, 7:39 pm, Diana <
dixig...@hotmail.com> wrote:
> Hello, when I try to solve the modelo, I get a error message:
>
> file -
> line 46
> offset 1667
> cumpl_labor is not defined
You define a parameter named cumpl_lab but refer to a parameter named
cumpl_labor. Since there are no references to cumpl_lab other than in
its declaration, I suspect you meant them to be the same thing.
You also need to insert a statement
data;
before the start of the data declarations (around where you have the
comment #DATA). Otherwise AMPL thinks the data statements are actually
trying to redefine your sets and parameters.
> file -
> line 292
> offset 7619
> expected :=
> file -
> line 303
> offset 8007
> cap_horas is already defined
> Error executing "solve" command:
> error processing constraint capa_horas[5047]:
> no value for tiempo_ej[5047,409]
I don't get this far, because you did not provide data for the
parameter cap_uso.
/Paul