Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 617 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 617 Bytes

Model2GeoGebra

Graphically solves JuMP model (with two decision variables) using GeoGebra

Usage

include("conversion.jl")

model = Model()
@variable(model, x_1 >= 0)
@variable(model, x_2 >= 0)

@objective(model, Max, 2x_1 + x_2)
@constraint(model, -x_1 + x_2 <= 2)
@constraint(model, x_1 + x_2 <= 6)
@constraint(model, x_1 <= 4)

conversion(model)

A GeoGebra file named geogebra.ggb is generated: alt text