pub fn simulate(input_json: &Value) -> Result<Value>Expand description
Simulate Scenarios and Model using the OpenFAIR framework. Use the returned data with any charting tool
ยงExample usage
use openfair::{simulate, Result};
use std::fs::read_to_string;
fn main() -> Result<()> {
let input = read_to_string("data/input.json")?;
let result = simulate(&serde_json::from_str(&input)?)?;
println!("{:#?}", result);
Ok(())
}