Make removeConstraint and updateVariables methods public

This commit is contained in:
Alex Birkett 2016-01-30 18:52:28 +01:00
parent 528196dad5
commit e5ebfc1b95
1 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ public class Solver {
optimize(objective);
}
void removeConstraint(Constraint constraint) throws UnknownConstraintException, InternalSolverError{
public void removeConstraint(Constraint constraint) throws UnknownConstraintException, InternalSolverError{
Tag tag = cns.get(constraint);
if(tag == null){
throw new UnknownConstraintException(constraint);
@ -271,7 +271,7 @@ public class Solver {
/**
* Update the values of the external solver variables.
*/
void updateVariables() {
public void updateVariables() {
for (Map.Entry<Variable, Symbol> varEntry : vars.entrySet()) {
Variable variable = varEntry.getKey();