question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

freeing fixed variables

See original GitHub issue

Is it possible to “free” a variable in an existing model, such that its value is removed, and the corresponding model, when solved, treats that variable as a free variable?

In an existing model m, I tried m["C_L"].key.descr.pop("value"), but it doesn’t actually remove the value from the descr. I also don’t know if other changes would be needed to Model to implement this robustly.

… or maybe there’s a much smarter way to accomplish converting fixed variables in an existing model to free variables?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
bqpdcommented, Dec 6, 2016

We test this in t_model/test_cost_freeing

0reactions
bqpdcommented, Dec 6, 2016
Read more comments on GitHub >

github_iconTop Results From Across the Web

Free variables and bound variables - Wikipedia
In computer programming, the term free variable refers to variables used in a function that are neither local variables nor parameters of that...
Read more >
Free and Basic Variables - math.wsu.edu
A variable is a basic variable if it corresponds to a pivot column. Otherwise, the variable is known as a free variable. In...
Read more >
Determine Basic (Leading) Variables and Free ... - YouTube
This video explains how to determine the basic and free variables by determining the pivots and pivot columns of an augmented matrix is ......
Read more >
Mplus Class Notes Freeing, Constraining, and Testing ...
Although parameters can be fixed manually, to simplify model input, Mplus often fixes parameters to a given value by default. By convention, these...
Read more >
Fixing and freeing variables o JuMP - Julia Discourse
I am studying a combinatorial optimization problem with JuMP and Gurobi. I need to fix some decision variables for a given number of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found