russcip
russcip copied to clipboard
Rust interface for SCIP
#[test] fn create_sol() { let mut model = Model::new() .hide_output() .include_default_plugins() .create_prob("test") .set_obj_sense(ObjSense::Minimize); let x1 = model.add_var(0., 1., 3., "x1", VarType::Binary); let x2 = model.add_var(0., 1., 4., "x2", VarType::Binary); let...
We currently use SOS1 with coin-cbc in good_lp, but would like to be able to try out SOS1 with SCIP instead. It seems that it's [implemented by SCIP](https://scipopt.org/doc/html/cons__sos1_8h.php), and good_lp...
Hey, I want to use the function of "SCIPcreateExprPow". It is not available currently. Therefore, I want to add it by my self. pub(crate) fn create_pow_expr( &mut self, base: &Variable,...
Fixes #138
```rust use russcip::prelude::*; fn main() { // Create model let mut model = Model::new() .hide_output() .include_default_plugins() .create_prob("test") .set_obj_sense(ObjSense::Maximize); // Add variables let x1 = model.add_var(0., f64::INFINITY, 3., "x1", VarType::Integer); let...
Using the new feature [from-source](https://github.com/scipopt/russcip?tab=readme-ov-file#from-source-feature), available since 0.3.3, I'm unable to run the built binary. Here's my MRE: Dockerfile: ```dockerfile FROM rust:1.77 WORKDIR /work RUN apt-get update && apt-get install...
Add an example for solving the TSP using a branch-and-cut approach by iteratively solving the model and calling `free_transform()` and adding sub-tour elimination constraints.