This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Welcome to the CBC MILP Solver | |
Version: devel | |
Build Date: Nov 15 2020 | |
Starting solution of the Linear programming relaxation problem using Primal Simplex | |
Clp0000I Optimal - objective value 20 | |
Clp0032I Optimal objective 20 - 0 iterations time 0.002, Idiot 0.00 | |
Starting MIP optimization |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Welcome to the CBC MILP Solver | |
Version: devel | |
Build Date: Nov 10 2020 | |
command line - /home/rs/src/coinbrew/dist/bin/cbc invalid_index.lp mips invalid_index.mst solve (default strategy 1) | |
### CoinLpIO::readLp(): Variable u_0 does not appear in objective function or constraints | |
### CoinLpIO::readLp(): Variable u_1 does not appear in objective function or constraints | |
### CoinLpIO::readLp(): Variable u_2 does not appear in objective function or constraints | |
### CoinLpIO::readLp(): Variable u_3 does not appear in objective function or constraints | |
### CoinLpIO::readLp(): Variable u_4 does not appear in objective function or constraints |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[deps] | |
MathOptInterface = "b8f27783-ece8-5eb3-8dc8-9495eed66fee" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using JuMP | |
using SCIP | |
function run1(N) | |
m = Model(SCIP.Optimizer) | |
JuMP.set_optimizer_attribute(m, "display/verblevel", 0) | |
@variable(m, x[1:N]) | |
@objective(m, Min, sum(x)) | |
@constraint(m, x .>= 1) | |
JuMP.optimize!(m) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
julia> test() | |
ERROR: In `@constraint(model, ind, ind_fun in ind_set)`: unable to add the constraint because we don't recognize MathOptInterface.VectorAffineFunction{Float64}(MathOptInterface.VectorAffineTerm{Float64}[VectorAffineTerm{Float64}(1, ScalarAffineTerm{Float64}(1.0, VariableIndex(3))), VectorAffineTerm{Float64}(2, ScalarAffineTerm{Float64}(0.2, VariableIndex(1))), VectorAffineTerm{Float64}(2, ScalarAffineTerm{Float64}(1.0, VariableIndex(2)))], [0.0, 0.0]) as a valid JuMP function. | |
Stacktrace: | |
[1] error(::String, ::String) at ./error.jl:42 | |
[2] _macro_error(::Symbol, ::Array{Any,1}, ::String) at /home/rs/.julia/packages/JuMP/iGamg/src/macros.jl:1091 | |
[3] (::getfield(JuMP, Symbol("#_error#55")){Symbol})(::String) at /home/rs/.julia/packages/JuMP/iGamg/src/macros.jl:565 | |
[4] build_constraint(::getfield(JuMP, Symbol("#_error#55")){Symbol}, ::MathOptInterface.VectorAffineFunction{Float64}, ::MathOptInterface.IndicatorSet{ACTIVATE_ON_ONE::ActivationCondition = 1,MathOptInterface.LessThan{Float64}}) at /h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# rs@t440p:~/.julia/dev/SCIP/test/MINLPTests [git:master o] [14:01:23] | |
$ julia --project=. | |
_ | |
_ _ _(_)_ | Documentation: https://docs.julialang.org | |
(_) | (_) (_) | | |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help. | |
| | | | | | |/ _` | | | |
| | |_| | | | (_| | | Version 1.1.0 (2019-01-21) | |
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release | |
|__/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# rs@t440p:~/.julia/dev/MathOptInterface/docs [git:master o] [8:21:53] | |
$ git pull | |
Already up-to-date. | |
# rs@t440p:~/.julia/dev/MathOptInterface/docs [git:master o] [8:21:59] | |
$ julia | |
_ | |
_ _ _(_)_ | Documentation: https://docs.julialang.org | |
(_) | (_) (_) | | |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help. | |
| | | | | | |/ _` | | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "scip/scip.h" | |
/* | |
* To create nonlinear constraints in SCIP, one creates an expression tree whose | |
* nodes are of type SCIP_EXPR*. To create these nodes, there is a variadic | |
* function, SCIPexprCreate: | |
* | |
* SCIP_RETCODE SCIPexprCreate(BMS_BLKMEM* blkmem, SCIP_EXPR** expr, | |
* SCIP_EXPROP op, ...); | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ julia | |
_ | |
_ _ _(_)_ | Documentation: https://docs.julialang.org | |
(_) | (_) (_) | | |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help. | |
| | | | | | |/ _` | | | |
| | |_| | | | (_| | | Version 1.1.0 (2019-01-21) | |
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release | |
|__/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "scip/scip.h" | |
#include "scip/scipdefplugins.h" | |
int main() { | |
SCIP* scip = NULL; | |
SCIP_CALL( SCIPcreate(&scip) ); | |
SCIP_CALL( SCIPincludeDefaultPlugins(scip) ); | |
SCIP_CALL( SCIPcreateProbBasic(scip, "lp") ); |
NewerOlder