File tree 7 files changed +18
-22
lines changed 7 files changed +18
-22
lines changed Original file line number Diff line number Diff line change 1
1
//! Provides functionality for optimisation constraints.
2
- use super :: variable_definition:: VariableDefinition ;
2
+ use crate :: variable_definition:: VariableDefinition ;
3
3
use polars:: prelude:: * ;
4
4
use std:: path:: Path ;
5
5
Original file line number Diff line number Diff line change 1
1
//! Provides the main entry point to the highs_example_rust program.
2
2
3
- mod highs_example_rust;
3
+ mod constraint;
4
+ mod optimisation;
5
+ mod settings;
6
+ mod solver;
7
+ mod variable_definition;
8
+
9
+ #[ cfg( test) ]
10
+ mod test_common;
4
11
5
12
use std:: env;
6
13
use std:: path:: Path ;
@@ -12,5 +19,5 @@ fn main() {
12
19
panic ! ( "Must provide path to model configuration TOML file." ) ;
13
20
}
14
21
15
- highs_example_rust :: run ( Path :: new ( & args[ 1 ] ) )
22
+ optimisation :: run ( Path :: new ( & args[ 1 ] ) )
16
23
}
Original file line number Diff line number Diff line change 1
1
//! The main crate for highs_example_rust. This contains all of MUSE's functionality.
2
- pub mod constraint;
3
- mod settings;
4
- mod solver;
5
- pub mod variable_definition;
6
-
7
- #[ cfg( test) ]
8
- pub mod test_common;
9
-
10
- use settings:: read_settings;
11
- use solver:: { solve_highs, Sense } ;
2
+ use crate :: settings:: read_settings;
3
+ use crate :: solver:: { solve_highs, Sense } ;
12
4
use std:: path:: Path ;
13
5
14
6
/// Run an optimisation.
Original file line number Diff line number Diff line change 1
1
//! Data structures representing settings files and a function for reading them.
2
- use super :: constraint:: Constraint ;
3
- use super :: variable_definition:: VariableDefinition ;
2
+ use crate :: constraint:: Constraint ;
3
+ use crate :: variable_definition:: VariableDefinition ;
4
4
use std:: path:: Path ;
5
5
6
6
use serde:: Deserialize ;
Original file line number Diff line number Diff line change 1
1
//! Provides data structures and functions for performing optimisation.
2
- use super :: constraint:: Constraint ;
3
- use super :: variable_definition:: VariableDefinition ;
2
+ use crate :: constraint:: Constraint ;
3
+ use crate :: variable_definition:: VariableDefinition ;
4
4
pub use highs:: Sense ;
5
5
use highs:: { HighsModelStatus , RowProblem } ;
6
6
Original file line number Diff line number Diff line change 1
1
//! Common functionality used by tests.
2
- use super :: constraint:: Constraint ;
3
- use super :: variable_definition:: VariableDefinition ;
2
+ use crate :: constraint:: Constraint ;
3
+ use crate :: variable_definition:: VariableDefinition ;
4
4
use std:: f64:: INFINITY ;
5
5
use std:: path:: { Path , PathBuf } ;
6
6
@@ -11,8 +11,6 @@ pub fn get_example_path() -> PathBuf {
11
11
. unwrap ( )
12
12
. parent ( )
13
13
. unwrap ( )
14
- . parent ( )
15
- . unwrap ( )
16
14
. join ( "example" )
17
15
}
18
16
Original file line number Diff line number Diff line change 1
1
//! Provides variable definition data structures for optimisation.
2
- use csv;
3
2
use serde:: Deserialize ;
4
3
use std:: path:: Path ;
5
4
You can’t perform that action at this time.
0 commit comments