Hello,

Looking in my bare bone model, see this error down, can you help me?

$ glpsol -m nurse.mod
GLPSOL: GLPK LP/MIP Solver, v4.43
Parameter(s) specified in the command line:
 -m nurse.mod
Reading model section from nurse.mod...
Reading data section from nurse.mod...
32 lines were read
Reading shifts_cost...
SELECT id,cost FROM shifts
nurse.mod:14: Shifts_cost requires numeric data
MathProg model processing error

/* nurse.mod - Solve simple NSP - Nurse Scneduling Problem
/*** Variables ***/
set SHIFTS;

/*** Parameters ***/
/* Custo por turno */
param Shifts_cost{i in SHIFTS};
table shifts_cost IN "MySQL" 'Database=nsp;UID=nsp;PWD=nurseproblem'
 'SELECT id,cost FROM shifts' : SHIFTS <- [id], Shifts_cost~cost;

param Time_work >= 0;

/*** solve section ***/
solve;
for {i in SHIFTS}
{
 printf "%d",Shifts_cost[i];
 printf "\n";
}

/*** data  section ***/
data;

#param Shifts_cost  := 1 1, 2 2, 3 4.3;
end;

-- 
Marcello Henrique
Blog - http://faraohh.wordpress.com
Associação Software Livre de Goiás (www.aslgo.org.br)
Cercomp - UFG (www.cercomp.ufg.br)

_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to