refactors Problem, adds Solution
This commit is contained in:
@@ -5,20 +5,19 @@ extern crate cookbook;
|
||||
|
||||
use std::time;
|
||||
use std::fmt::Debug;
|
||||
use std::fmt::Display;
|
||||
use std::hash::Hash;
|
||||
use cookbook::*;
|
||||
use planner::{
|
||||
*, Value,
|
||||
solver::{
|
||||
Variables,
|
||||
Solution,
|
||||
Domain,
|
||||
Problem
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
fn pretty_output<K: Eq + Hash + Debug>(res: &Variables<Value, K>) -> String {
|
||||
fn pretty_output<K: Eq + Hash + Debug>(res: &Solution<Value, K>) -> String {
|
||||
let mut repr = String::new();
|
||||
for (var,value) in res {
|
||||
let value = match value {
|
||||
|
||||
Reference in New Issue
Block a user