 
 solver.endEdit()
 
-#results = $ '#results'
-#$("<p>cost: #{cost.value}</p>").appendTo results
-#$("<p>quality: #{quality.value}</p>").appendTo results
-#$("<p>time: #{time.value}</p>").appendTo results
-
-
 createSlider = (model) ->
     sliderControl = $('<div class="control"/>').slider
         min: model.min
         max: model.max
         value: model.value
         start: (event, ui) =>
-            solver.addEditVar(model.variable, c.Strength.high).beginEdit()
+            solver.addEditVar(model.variable, c.Strength.strong).beginEdit()
         stop: (event, ui) =>
-            solver.endEdit();
+            solver.suggestValue(model.variable, ui.value)
+            solver.endEdit()
         slide: (event, ui) =>
             solver.suggestValue(model.variable, ui.value).resolve()
 
-    valueContainer = $("<div class=value>#{model.value}</div>")
+    valueContainer = $("<div class=value>#{model.variable.value}</div>")
 
     controlList.push
-        variable: model
+        variable: model.variable
         control: sliderControl
         valueContainer: valueContainer
 
     $('<div class=slider-container clearfix></div>')
-        .append("<div class=label>#{model.name}</div>")
+        .append("<div class=label>#{model.variable.name}</div>")
         .append(valueContainer)
         .append(sliderControl)
 


varList = new ModelList(solver)

feature = varList.addVariable 'Features', 0, 0, 100
cost = varList.addVariable 'Cost', 0, -100, 100
time = varList.addVariable 'Time', 0, -100, 100

#solver.addConstraint (new c.Equation c.minus(feature, c.divide(time, 2))), 0, c.Strength.weak, 0


balance = new c.Equation formula, 0, c.Strength.required, 0
solver.addConstraint balance

solver.addEditVar(cost, c.Strength.strong)
solver.addEditVar(feature, c.Strength.strong)
solver.addEditVar(time, c.Strength.strong).beginEdit()
solver.suggestValue(cost, 0)
solver.suggestValue(feature, 0)
