rpgoldman / europa-pso

Automatically exported from code.google.com/p/europa-pso
0 stars 0 forks source link

Add constraint-violation explanations to NDDL #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Having constraint-violation explanations in the nddl model can be very useful, 
for example :

{{{
end <= dueDate - releaseBuffer : "Due date is not met" 
use (resource,qty,start,end) : " Not enough fuel"
}}}

getting the messages like "Due date is not met" and  "Not enough fuel" will be 
much more useful 
than the generic messages referring to variables and object ids that we can 
currently generate.

the initial syntax is 
':' string

it can be made more sophisticated liter to allow for expressions that refer to 
the scope when the 
constraint is created.

the mechanisms for this are already in place in C++ (see 
Constraint::getViolationExpl()). this 
mostly entails exposing it through nddl

Original issue reported on code.google.com by javier.barreiro@gmail.com on 11 Aug 2009 at 12:07

GoogleCodeExporter commented 9 years ago
I meant to say this is an optional construct in the language, if the user 
doesn't want to provide an explanation, a 
generic one is generated under the covers today

Original comment by javier.barreiro@gmail.com on 11 Aug 2009 at 9:58

GoogleCodeExporter commented 9 years ago

Original comment by javier.barreiro@gmail.com on 22 Nov 2010 at 10:29